Adjustable array segfaults
Jerry DeLisle
jvdelisle@verizon.net
Tue Aug 17 05:11:00 GMT 2004
On Sun, 2004-08-15 at 19:17, Scott Brown wrote:
> Hi,
>
> When I have one subroutine that passes an adjustable array to another
> subroutine, I get a segfault. I have attached minimal source code to
> reproduce the bug. I am using gcc-3.5 on Mac OS X 10.3 (full version
> details below). Same code compiles fine using, say, intel's ifc on
> linux/x86.
>
> > gfortran -v
> Reading specs from
> /usr/local/lib/gcc/powerpc-apple-darwin6.8/3.5-tree-ssa-ln/specs
> Configured with: ../gcc/configure --enable-threads=posix
> --enable-languages=c,f95
> Thread model: posix
> gcc version 3.5-tree-ssa-lno 20040811 (merged 20040718)
>
>
> Thanks in advance for your help.
>
> Scott Brown.
I also am getting this segfault with your code as well as some other
code I was trying to debug. The segfault occurs when trying to assign
values to the array in my code.
I have not been able to trim the source code down to a reasonable
snippit to send in yet.
Using:
Reading specs from
/home/jerry/gftest/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/3.5.0/specs
Configured with: ../gcc-3.5-20040801/configure
Thread model: posix
gcc version 3.5.0 20040801 (experimental)
jerry
More information about the Fortran
mailing list