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]

C++ hang! Possibly alias-related


The current cc1plus hangs forever while compiling the preprocessed
source I sent earlier (locale.i).  It hangs while compiling:

    void std::locale::_Impl::_M_init_facet

which was the function it had compiled (incorrectly) earlier today.
Gdb suggests that there's an infinite recursion in splay trees:


#0  splay_tree_foreach_helper (sp=0x869a218, node=0x869a2f0, 
    fn=0x80da220 <insert_subset_children>, data=0x869a218) at splay-tree.c:225
#1  0x81e7a37 in splay_tree_foreach_helper (sp=0x869a218, node=0x869a308, 
    fn=0x80da220 <insert_subset_children>, data=0x869a218) at splay-tree.c:217
#2  0x81e7a37 in splay_tree_foreach_helper (sp=0x869a218, node=0x869a368, 
    fn=0x80da220 <insert_subset_children>, data=0x869a218) at splay-tree.c:217

[[ ... LOTS OF SPLAY_TREE_FOREACH_HELPER ... ]]

#139 0x81e7a37 in splay_tree_foreach_helper (sp=0x869a218, node=0x869a3e0, 
    fn=0x80da220 <insert_subset_children>, data=0x869a218) at splay-tree.c:217
#140 0x81e7a37 in splay_tree_foreach_helper (sp=0x869a218, node=0x85d4638, 
    fn=0x80da220 <insert_subset_children>, data=0x869a218) at splay-tree.c:217
#141 0x81e7c6a in splay_tree_foreach (sp=0x869a218, 
    fn=0x80da220 <insert_subset_children>, data=0x869a218) at splay-tree.c:380
#142 0x80da5b8 in record_alias_subset (superset=378, subset=378)
    at ../SRC/gcc/alias.c:502
#143 0x80da64c in record_component_aliases (type=0x4ae380)
    at ../SRC/gcc/alias.c:540
#144 0x80da4c3 in get_alias_set (t=0x86c480) at ../SRC/gcc/alias.c:437
#145 0x81fdfe8 in c_apply_type_quals_to_decl (type_quals=4, decl=0x86e680)
    at ../SRC/gcc/c-common.c:3248
#146 0x8216cb3 in grokdeclarator (declarator=0x86d600, declspecs=0x3cb520, 
    decl_context=PARM, initialized=0, attrlist=0x0)
    at ../../SRC/gcc/cp/decl.c:11744
#147 0x8217057 in grokparms (first_parm=0x3cae20, funcdef_flag=0)
    at ../../SRC/gcc/cp/decl.c:12019
#148 0x82155a6 in grokdeclarator (declarator=0x2151c0, declspecs=0x3cad60, 
    decl_context=NORMAL, initialized=0, attrlist=0x0)
    at ../../SRC/gcc/cp/decl.c:10708
#149 0x8210ab8 in start_decl (declarator=0x3cb640, declspecs=0x3cad60, 
    initialized=0, attributes=0x0, prefix_attributes=0x0)
    at ../../SRC/gcc/cp/decl.c:7136
#150 0x8249535 in parse_decl (declarator=0x3cb640, attributes=0x0, 
    initialized=0) at parse.y:138
#151 0x824c279 in yyparse () at parse.y:1969
#152 0x804bb5c in compile_file (name=0x2196f0 "") at ../SRC/gcc/toplev.c:2288
#153 0x804ee73 in main (argc=20, argv=0xbffffaa4) at ../SRC/gcc/toplev.c:4702
(gdb) 




-- 
Chip Salzenberg              - a.k.a. -              <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
    but he stepped in a wormhole and had to go in early."  // MST3K

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