[Bug fortran/24866] New: internal compiler error

uttamp at us dot ibm dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 14 23:59:00 GMT 2005


Following program cause internal compiler error. I wasn't sure if this has been
seen/filed before.

$ cat test_module.f90
module test_module
 contains
   subroutine sub_module(str)
     external :: str
   end subroutine sub_module
   subroutine str()
   end subroutine str
end module test_module

$ gfortran -v -c test_module.f90
test_module.f90:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Using built-in specs.
Target: powerpc64-linux
Configured with: /home/gccbuild/gcc_trunk_anonsvn/trunk/configure
--prefix=/opt/gcc-nightly/trunk-20051110 --build=powerpc64-linux
--host=powerpc64-linux --target=powerpc64-linux --with-cpu=default32
--with-as=/opt/gcc-nightly/trunk-20051110/bin/as
--with-ld=/opt/gcc-nightly/trunk-20051110/bin/ld --enable-threads=posix
--enable-shared --enable-__cxa_atexit
--enable-languages=c,c++,f95,java,objc,obj-c++ --enable-checking
--with-mpfr=/opt/gcc-nightly/trunk-20051110
Thread model: posix
gcc version 4.1.0 20051110 (experimental)
 /home/gcc-nightly/trunk-20051110/bin/../libexec/gcc/powerpc64-linux/4.1.0/f951
test_module.f90 -quiet -dumpbase test_module.f90 -auxbase test_module -version
-o /tmp/ccUJBiuf.s
GNU F95 version 4.1.0 20051110 (experimental) (powerpc64-linux)
        compiled by GNU C version 4.1.0 20051110 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096

backtrace is

142                   if (sym->result->ts.type == BT_UNKNOWN)
(gdb) p sym
$1 = (gfc_symbol *) 0x1075be20
(gdb) p sym->result
$2 = (struct gfc_symbol *) 0x0
(gdb) bt
#0  resolve_formal_arglist (proc=0x1075bda0) at
/home/gccbuild/gcc_trunk_anonsvn/trunk/gcc/fortran/resolve.c:142
#1  0x10059c70 in traverse_ns (st=0x107408b0, func=0x1004a310 <find_arglists>)
    at /home/gccbuild/gcc_trunk_anonsvn/trunk/gcc/fortran/symbol.c:2416
#2  0x1004f008 in gfc_resolve (ns=0x1075b670) at
/home/gccbuild/gcc_trunk_anonsvn/trunk/gcc/fortran/resolve.c:267
#3  0x24000482 in ?? ()
#4  0x10045244 in gfc_parse_file () at
/home/gccbuild/gcc_trunk_anonsvn/trunk/gcc/fortran/parse.c:2664
#5  0x10064e04 in gfc_be_parse_file (set_yydebug=Variable "set_yydebug" is not
available.
) at /home/gccbuild/gcc_trunk_anonsvn/trunk/gcc/fortran/f95-lang.c:286
#6  0x10340a5c in toplev_main (argc=Variable "argc" is not available.
) at /home/gccbuild/gcc_trunk_anonsvn/trunk/gcc/toplev.c:990
#7  0x10092540 in main (argc=Variable "argc" is not available.
) at /home/gccbuild/gcc_trunk_anonsvn/trunk/gcc/main.c:35


-- 
           Summary: internal compiler error
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: uttamp at us dot ibm dot com
 GCC build triplet: powerpc64-linux
  GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24866



More information about the Gcc-bugs mailing list