------- Comment #7 from tkoenig at gcc dot gnu dot org 2007-10-06 21:36 ------- For once, the segfault is in the gfortran driver, not the f951 binary.
Backtrace, plus some more debug info: $ gdb ~/bin/gfortran GNU gdb 6.6.90.20070912-debian Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1". (gdb) r foo.f90 -v -M Starting program: /home/ig25/bin/gfortran foo.f90 -v -M Program received signal SIGSEGV, Segmentation fault. 0xb7e23513 in strlen () from /lib/i686/cmov/libc.so.6 (gdb) bt #0 0xb7e23513 in strlen () from /lib/i686/cmov/libc.so.6 #1 0x08056b56 in lang_specific_driver (in_argc=0xbfde2b08, in_argv=0xbfde2b04, in_added_libraries=0x8079b94) at ../../../gcc/trunk/gcc/fortran/gfortranspec.c:431 #2 0x0804f910 in process_command (argc=4, argv=0x807e938) at ../../../gcc/trunk/gcc/gcc.c:3581 #3 0x0805364e in main (argc=4, argv=0xbfde2c54) at ../../../gcc/trunk/gcc/gcc.c:6244 (gdb) up #1 0x08056b56 in lang_specific_driver (in_argc=0xbfde2b08, in_argv=0xbfde2b04, in_added_libraries=0x8079b94) at ../../../gcc/trunk/gcc/fortran/gfortranspec.c:431 431 p = XNEWVEC (char, strlen (argv[i + 1]) + 2); (gdb) p i $1 = 4 (gdb) p argv[0] $2 = 0xbfde47c5 "/home/ig25/bin/gfortran" (gdb) p argv[1] $3 = 0xbfde47dd "foo.f90" (gdb) p argv[2] $4 = 0xbfde47e5 "-v" (gdb) p argv[3] $5 = 0xbfde47e8 "-M" (gdb) p argv[4] $6 = 0x0 -- tkoenig at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkoenig at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31588