[Bug target/35655] [m68hc11] Segmentation fault when compiling libgcc2.c

mstein dot lists at googlemail dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 28 14:52:00 GMT 2008



------- Comment #1 from mstein dot lists at googlemail dot com  2008-03-28 14:51 -------
backtrace:

mstein@gcc14:~/build/m68hc11-elf/build/gcc$ gdb -args
/home/mstein/build/m68hc11-elf/build/./gcc/cc1 -quiet -nostdinc -v -I. -I.
-I../.././gcc -I/home/mstein/combined-trunk/libgcc
-I/home/mstein/combined-trunk/libgcc/.
-I/home/mstein/combined-trunk/libgcc/../gcc
-I/home/mstein/combined-trunk/libgcc/../include -iprefix
/home/mstein/build/m68hc11-elf/build/gcc/../lib/gcc/m68hc11-elf/4.4.0/ -isystem
/home/mstein/build/m68hc11-elf/build/./gcc/include -isystem
/home/mstein/build/m68hc11-elf/build/./gcc/include-fixed -MD _negdi2.d -MF
_negdi2.dep -MP -MT _negdi2.o -D__INT__=32 -Dmc6811 -DMC6811 -Dmc68hc11
-DUSE_GAS -DIN_GCC -Dinhibit_libc -DIN_LIBGCC2 -DHAVE_CC_TLS -DL_negdi2
-isystem /home/mstein/build/m68hc11-elf/build/m68hc11-elf/newlib/targ-include
-isystem /home/mstein/combined-trunk/newlib/libc/include -isystem
/home/mstein/cross-local/m68hc11-elf-new/m68hc11-elf/include -isystem
/home/mstein/cross-local/m68hc11-elf-new/m68hc11-elf/sys-include
/home/mstein/combined-trunk/libgcc/../gcc/libgcc2.c -quiet -dumpbase libgcc2.c
-mrelax -auxbase-strip _negdi2.o -g -g -O2 -Os -version -o /tmp/ccQivAqe.s
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...Using host libthread_db library
"/lib/libthread_db.so.1".

Breakpoint 1 at 0x5029f0: file /home/mstein/combined-trunk/gcc/diagnostic.c,
line 683.
Breakpoint 2 at 0x502920: file /home/mstein/combined-trunk/gcc/diagnostic.c,
line 624.
Function "exit" not defined.
Function "abort" not defined.
(gdb) r
Starting program: /home/mstein/build/m68hc11-elf/build/gcc/cc1 -quiet -nostdinc
-v -I. -I. -I../.././gcc -I/home/mstein/combined-trunk/libgcc
-I/home/mstein/combined-trunk/libgcc/.
-I/home/mstein/combined-trunk/libgcc/../gcc
-I/home/mstein/combined-trunk/libgcc/../include -iprefix
/home/mstein/build/m68hc11-elf/build/gcc/../lib/gcc/m68hc11-elf/4.4.0/ -isystem
/home/mstein/build/m68hc11-elf/build/./gcc/include -isystem
/home/mstein/build/m68hc11-elf/build/./gcc/include-fixed -MD _negdi2.d -MF
_negdi2.dep -MP -MT _negdi2.o -D__INT__=32 -Dmc6811 -DMC6811 -Dmc68hc11
-DUSE_GAS -DIN_GCC -Dinhibit_libc -DIN_LIBGCC2 -DHAVE_CC_TLS -DL_negdi2
-isystem /home/mstein/build/m68hc11-elf/build/m68hc11-elf/newlib/targ-include
-isystem /home/mstein/combined-trunk/newlib/libc/include -isystem
/home/mstein/cross-local/m68hc11-elf-new/m68hc11-elf/include -isystem
/home/mstein/cross-local/m68hc11-elf-new/m68hc11-elf/sys-include
/home/mstein/combined-trunk/libgcc/../gcc/libgcc2.c -quiet -dumpbase libgcc2.c
-mrelax -auxbase-strip _negdi2.o -g -g -O2 -Os -version -o /tmp/ccQivAqe.s
ignoring nonexistent directory
"/home/mstein/build/m68hc11-elf/build/m68hc11-elf/newlib/targ-include"
ignoring nonexistent directory
"/home/mstein/cross-local/m68hc11-elf-new/m68hc11-elf/include"
ignoring nonexistent directory
"/home/mstein/cross-local/m68hc11-elf-new/m68hc11-elf/sys-include"
ignoring duplicate directory "."
ignoring nonexistent directory "../.././gcc"
ignoring duplicate directory "/home/mstein/combined-trunk/libgcc/."
#include "..." search starts here:
#include <...> search starts here:
 .
 /home/mstein/combined-trunk/libgcc
 /home/mstein/combined-trunk/libgcc/../gcc
 /home/mstein/combined-trunk/libgcc/../include
 /home/mstein/build/m68hc11-elf/build/./gcc/include
 /home/mstein/build/m68hc11-elf/build/./gcc/include-fixed
 /home/mstein/combined-trunk/newlib/libc/include
End of search list.
GNU C (GCC) version 4.4.0 20080320 (experimental) [trunk revision 133402]
(m68hc11-elf)
        compiled by GNU C version 4.1.2 20061115 (prerelease) (Debian
4.1.1-21), GMP version 4.2.1, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 7efcced2695484d8ae118bce9c57f4e6

Program received signal SIGSEGV, Segmentation fault.
0x00000000004f646c in df_lr_bb_local_compute (bb_index=4)
    at /home/mstein/combined-trunk/gcc/df-problems.c:846
846           for (def_rec = DF_INSN_UID_DEFS (uid); *def_rec; def_rec++)
(gdb) bt
#0  0x00000000004f646c in df_lr_bb_local_compute (bb_index=4)
    at /home/mstein/combined-trunk/gcc/df-problems.c:846
#1  0x00000000004fb04e in df_lr_local_compute (all_blocks=<value optimized
out>)
    at /home/mstein/combined-trunk/gcc/df-problems.c:947
#2  0x00000000004f4503 in df_analyze_problem (dflow=0xc95bc0,
blocks_to_consider=0xc7ab40,
    postorder=0xca4190, n_blocks=6) at
/home/mstein/combined-trunk/gcc/df-core.c:1171
#3  0x00000000004f4769 in df_analyze () at
/home/mstein/combined-trunk/gcc/df-core.c:1270
#4  0x00000000008901ed in m68hc11_reorg ()
    at /home/mstein/combined-trunk/gcc/config/m68hc11/m68hc11.c:5040
#5  0x000000000067d5ea in rest_of_handle_machine_reorg ()
    at /home/mstein/combined-trunk/gcc/reorg.c:4100
#6  0x00000000006386e6 in execute_one_pass (pass=0xc020c0)
    at /home/mstein/combined-trunk/gcc/passes.c:1127
#7  0x00000000006388ac in execute_pass_list (pass=0xc020c0)
    at /home/mstein/combined-trunk/gcc/passes.c:1180
#8  0x00000000006388be in execute_pass_list (pass=0xc01640)
    at /home/mstein/combined-trunk/gcc/passes.c:1181
#9  0x00000000006388be in execute_pass_list (pass=0xc015e0)
    at /home/mstein/combined-trunk/gcc/passes.c:1181
#10 0x000000000070d8a6 in tree_rest_of_compilation (fndecl=0x2ae5e9153b60)
    at /home/mstein/combined-trunk/gcc/tree-optimize.c:420
#11 0x00000000008994e2 in cgraph_expand_function (node=0x2ae5e9209a00)
    at /home/mstein/combined-trunk/gcc/cgraphunit.c:1157
#12 0x000000000089b8a4 in cgraph_optimize () at
/home/mstein/combined-trunk/gcc/cgraphunit.c:1220
#13 0x000000000041457d in c_write_global_declarations ()
    at /home/mstein/combined-trunk/gcc/c-decl.c:8063
#14 0x00000000006a8ed9 in toplev_main (argc=<value optimized out>, argv=<value
optimized out>)
    at /home/mstein/combined-trunk/gcc/toplev.c:968
#15 0x00002ae5e8e4f4ca in __libc_start_main () from /lib/libc.so.6
---Type <return> to continue, or q <return> to quit---
#16 0x0000000000403d1a in _start () at ../sysdeps/x86_64/elf/start.S:113


-- 


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



More information about the Gcc-bugs mailing list