This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/40005] New: segfault in gt_ggc_mx_lang_tree_node


GNU Fortran (GCC) version 4.5.0 20090422 (experimental) [trunk revision 146549]

at -O0 segfaults on a recent CP2K:

http://www.pci.uzh.ch/vandevondele/tmp/CP2K_2009-05-01.f90.gz

with the following bt from within gdb:

gdb
/data03/vondele/gcc_trunk/build/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/f951
GNU gdb 6.8
Copyright (C) 2008 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 "x86_64-suse-linux"...
(gdb) run CP2K_2009-05-01.f90 -quiet -dumpbase all.f90 -mtune=generic -auxbase
all -version -fintrinsic-modules-path
/data03/vondele/gcc_trunk/build/lgcc/x86_64-unknown-linux-gnu/4.5.0/finclude -o
/tmp/ccxw5dCZ.s
Starting program:
/data03/vondele/gcc_trunk/build/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/f951
CP2K_2009-05-01.f90 -quiet -dumpbase all.f90 -mtune=generic -auxbase all
-version -fintrinsic-modules-path
/data03/vondele/gcc_trunk/build/lgcc/x86_64-unknown-linux-gnu/4.5.0/finclude -o
/tmp/ccxw5dCZ.s
GNU Fortran (GCC) version 4.5.0 20090422 (experimental) [trunk revision 146549]
(x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.5.0 20090422 (experimental) [trunk revision
146549], GMP version 4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU Fortran (GCC) version 4.5.0 20090422 (experimental) [trunk revision 146549]
(x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.5.0 20090422 (experimental) [trunk revision
146549], GMP version 4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096

Program received signal SIGSEGV, Segmentation fault.
gt_ggc_mx_lang_tree_node (x_p=0x7f5aed321540) at ./gt-fortran-f95-lang.h:46
46      {
(gdb) bt
#0  gt_ggc_mx_lang_tree_node (x_p=0x7f5aed321540) at ./gt-fortran-f95-lang.h:46
#1  0x00000000005283d9 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>)
at ./gt-fortran-f95-lang.h:314
#2  0x000000000052841f in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>)
at ./gt-fortran-f95-lang.h:319
#3  0x0000000000528487 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>)
at ./gt-fortran-f95-lang.h:337
#4  0x0000000000528487 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>)
at ./gt-fortran-f95-lang.h:337

looks like some crazy recursion:

#31575 0x0000000000528487 in gt_ggc_mx_lang_tree_node (x_p=<value optimized
out>) at ./gt-fortran-f95-lang.h:337
#31576 0x0000000000528487 in gt_ggc_mx_lang_tree_node (x_p=<value optimized
out>) at ./gt-fortran-f95-lang.h:337
#31577 0x0000000000528487 in gt_ggc_mx_lang_tree_node (x_p=<value optimized
out>) at ./gt-fortran-f95-lang.h:337
#31578 0x0000000000528487 in gt_ggc_mx_lang_tree_node (x_p=<value optimized
out>) at ./gt-fortran-f95-lang.h:337
#31579 0x0000000000528487 in gt_ggc_mx_lang_tree_node (x_p=<value optimized
out>) at ./gt-fortran-f95-lang.h:337


-- 
           Summary: segfault in gt_ggc_mx_lang_tree_node
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]