This is the mail archive of the gcc@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]

Re: ICE building libgcc2.c for MIPS, too


Ian Lance Taylor wrote:
Sandra Loosemore <sandra@codesourcery.com> writes:

I'm now at revision 126547, and am getting a different ICE when
building the same configuration:

/scratch/sandra/mips32-mainline/src/gcc-mainline/libstdc++-v3/src/locale.cc:
In member function 'std::string std::locale::name() const':
/scratch/sandra/mips32-mainline/src/gcc-mainline/libstdc++-v3/src/locale.cc:143:
internal compiler error: Aborted

This is most likely unrelated. If you would like to me to look at it, please send me the .ii file. Thanks.

This is still failing for me on mainline head, so I've spent some time trying to track this down.


Revision 126515 built cleanly for me.

Revision 126517 (the no_new_pseudos removal) plus this patch http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01023.html
failed with the error above.


I poked at it in GDB....

*** glibc detected *** double free or corruption (!prev): 0x08b2fe28 ***

Program received signal SIGABRT, Aborted.
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x0047b7a5 in raise () from /lib/tls/libc.so.6
#2  0x0047d209 in abort () from /lib/tls/libc.so.6
#3  0x004af71a in __libc_message () from /lib/tls/libc.so.6
#4  0x004b5fbf in _int_free () from /lib/tls/libc.so.6
#5  0x004b633a in free () from /lib/tls/libc.so.6
#6  0x0875dc03 in rest_of_handle_combine ()
    at /scratch/sandra/mips-mainline/src/gcc-mainline/gcc/combine.c:1264
#7  0x08434ee2 in execute_one_pass (pass=0x89251a0)
    at /scratch/sandra/mips-mainline/src/gcc-mainline/gcc/passes.c:1126
#8  0x0843507e in execute_pass_list (pass=0x89251a0)
    at /scratch/sandra/mips-mainline/src/gcc-mainline/gcc/passes.c:1179
#9  0x08435091 in execute_pass_list (pass=0x89221c0)
    at /scratch/sandra/mips-mainline/src/gcc-mainline/gcc/passes.c:1180
#10 0x08527728 in tree_rest_of_compilation (fndecl=0xf76d5a00)
    at /scratch/sandra/mips-mainline/src/gcc-mainline/gcc/tree-optimize.c:406
#11 0x08187ba9 in expand_body (fn=0xf76d5a00)
    at /scratch/sandra/mips-mainline/src/gcc-mainline/gcc/cp/semantics.c:3136
#12 0x086aff50 in cgraph_expand_function (node=0xf74111f8)
    at /scratch/sandra/mips-mainline/src/gcc-mainline/gcc/cgraphunit.c:1073
#13 0x086b1b5e in cgraph_optimize ()
    at /scratch/sandra/mips-mainline/src/gcc-mainline/gcc/cgraphunit.c:1142
#14 0x0810bda4 in cp_write_global_declarations ()
    at /scratch/sandra/mips-mainline/src/gcc-mainline/gcc/cp/decl2.c:3310
#15 0x084c0ce1 in toplev_main (argc=0, argv=0x0)
    at /scratch/sandra/mips-mainline/src/gcc-mainline/gcc/toplev.c:1064
#16 0x082238fe in main (argc=0, argv=0x0)
    at /scratch/sandra/mips-mainline/src/gcc-mainline/gcc/main.c:35

Looks like a job for valgrind? But I'm out of time for working on this, at least for now. Can anyone else take a stab at it?

-Sandra


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