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]

cc1plus segv on alpha-linux-gnu


This is on the release branch, with updated from cvs late evening 29th.

    ftp://ftp.cygnus.com/pub/home/rth/nsplugin.ii.gz

The immediate problem is that TREE_TYPE is called for a TREE_LIST, 
yielding garbage.  The variable's name (function) would seem to
indicate that shouldn't have happened.

A backtrace follows.


r~


#0  build_addr_func (function=0x1205dfc70)
    at ../../../../egcs-rel/gcc/cp/call.c:501
#1  0x120002698 in build_call (function=0x120e21b20, result_type=0x1203a9fc0, 
    parms=0x0) at ../../../../egcs-rel/gcc/cp/call.c:537
#2  0x120062a70 in get_typeid_1 (type=0x1205dfc70)
    at ../../../../egcs-rel/gcc/cp/rtti.c:398
#3  0x1200636b0 in expand_si_desc (tdecl=0x1205dfa70, type=0x120e21b20)
    at ../../../../egcs-rel/gcc/cp/rtti.c:709
#4  0x120064e8c in synthesize_tinfo_fn (fndecl=0x12038d238)
    at ../../../../egcs-rel/gcc/cp/rtti.c:1125
#5  0x120046530 in finish_file () at ../../../../egcs-rel/gcc/cp/decl2.c:3325
#6  0x1200926c8 in finish_translation_unit ()
    at ../../../../egcs-rel/gcc/cp/semantics.c:1149
#7  0x12005b98c in yyparse () at parse.y:334
#8  0x12009c730 in compile_file (name=0x11ffffada "../../../nsplugin.ii")
    at ../../../egcs-rel/gcc/toplev.c:2768
#9  0x1200a04e4 in main (argc=2, argv=0x11ffff8c8, envp=0x0)
    at ../../../egcs-rel/gcc/toplev.c:4838
(gdb) call debug_tree(function)
 <tree_list 0x1205dfc70 allocated from permanent_obstack
    permanent
    value <function_decl 0x120bc1548 __tf11nsISupports
        type <function_type 0x1203aa078 type <reference_type 0x1203a9fc0>
            allocated from permanent_obstack
            permanent TI
            size <integer_cst 0x12039a1c0 constant permanent 128>
            align 64 symtab 0 alias set -1
            arg-types <tree_list 0x12039dfa0 allocated from permanent_obstack
                unsigned permanent value <void_type 0x12039de10 void>>
            pointer_to_this <pointer_type 0x12097fc18>>
        allocated from permanent_obstack
        permanent public external regdecl packed decl_5 DI file nsplugin.cpp line 744
        context <record_type 0x120e21b20 nsISupports>
        mutable 
        decl-main-variant 0x120bc1548
        (mem:DI (symbol_ref:DI ("__tf11nsISupports")))>
    chain <tree_list 0x120622390 allocated from permanent_obstack
        permanent
        value <function_decl 0x120622228 __tf32NPILiveConnectPluginInstancePeer type <function_type 0x1203aa078>
            allocated from permanent_obstack
            addressable used permanent public external regdecl packed decl_5 DI file nsplugin.cpp line 744
            context <record_type 0x120d8f520 NPILiveConnectPluginInstancePeer>
            mutable 
            decl-main-variant 0x120622228
            (mem:DI (symbol_ref:DI ("__tf32NPILiveConnectPluginInstancePeer"))) chain <var_decl 0x120622028 __ti20nsPluginInstancePeer>>
        chain <tree_list 0x120621d08 allocated from permanent_obstack
            permanent value <function_decl 0x120621ba0 __tf22NPIPluginManagerStream>
            chain <tree_list 0x12097fbf0 allocated from permanent_obstack
                permanent value <function_decl 0x12097fac8 __tf27NPISeekablePluginStreamPeer>
                chain <tree_list 0x120455908 allocated from permanent_obstack
                    permanent value <function_decl 0x120455678 __as>
                    chain <tree_list 0x1204552d0 allocated from permanent_obstack
                        permanent value <function_decl 0x120467ef8 NSRepository>
                        chain <tree_list 0x120467a98 allocated from permanent_obstack
                            permanent value <function_decl 0x120467868 NSRepository> chain <tree_list 0x1204d62a0>>>>>>>>


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