unwind-dw2-fde.c:437:23: internal compiler error: Segmentation fault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently doing porting work using GCC 8.2.0

I am getting an ICE: segmentation fault with no clue what could be the issue.

during RTL pass: expand
../../../gcc-8.2.0/libgcc/unwind-dw2-fde.c: In function ‘search_object’:
../../../gcc-8.2.0/libgcc/unwind-dw2-fde.c:437:23: internal compiler
error: Segmentation fault
   if ((accu->linear = malloc (size)))
                       ^~~~~~~~~~~~~

>From the gdb backtrace is it possible to tell what could be the issue ?

(gdb) r
Starting program: /home/tambewilliam/Documents/gcc-8.2.0-build/gcc/cc1
-quiet -I . -I . -I ../.././gcc -I ../../../gcc-8.2.0/libgcc -I
../../../gcc-8.2.0/libgcc/. -I ../../../gcc-8.2.0/libgcc/../gcc -I
../../../gcc-8.2.0/libgcc/../include -iprefix
/home/tambewilliam/Documents/gcc-8.2.0-build/gcc/../lib/gcc/pu32-elf/8.2.0/
-isystem /home/tambewilliam/Documents/gcc-8.2.0-build/./gcc/include
-isystem /home/tambewilliam/Documents/gcc-8.2.0-build/./gcc/include-fixed
-MD unwind-dw2-fde.d -MF unwind-dw2-fde.dep -MP -MT unwind-dw2-fde.o
-D IN_GCC -D CROSS_DIRECTORY_STRUCTURE -D IN_LIBGCC2 -D inhibit_libc
-D HAVE_CC_TLS -D USE_EMUTLS -D HIDE_EXPORTS -isystem
/opt/gcc-8.2.0-pu32/pu32-elf/include -isystem
/opt/gcc-8.2.0-pu32/pu32-elf/sys-include -isystem ./include
../../../gcc-8.2.0/libgcc/unwind-dw2-fde.c -quiet -dumpbase
unwind-dw2-fde.c -auxbase-strip unwind-dw2-fde.o -g -g -g -O2 -O2 -O2
-Wextra -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-fbuilding-libgcc -fno-stack-protector -fexceptions
-fvisibility=hidden -o /tmp/ccKZXLHa.s

Program received signal SIGSEGV, Segmentation fault.
0x000000000089f6b7 in expand_call (exp=0x7ffff5ffb5e8, target=0x0,
ignore=0) at ../../gcc-8.2.0/gcc/calls.c:4428
4428              rtx temp = gen_reg_rtx (GET_MODE (valreg));
(gdb) bt
#0  0x000000000089f6b7 in expand_call (exp=0x7ffff5ffb5e8, target=0x0,
ignore=0) at ../../gcc-8.2.0/gcc/calls.c:4428
#1  0x0000000000884540 in expand_builtin (exp=0x7ffff5ffb5e8,
target=0x7ffff5ffde58, subtarget=0x0, mode=E_SImode, ignore=0) at
../../gcc-8.2.0/gcc/builtins.c:7767
#2  0x0000000000a2a16d in expand_expr_real_1 (exp=0x7ffff5ffb5e8,
target=0x7ffff5ffde58, tmode=E_SImode, modifier=EXPAND_NORMAL,
alt_rtl=0x7fffffffc988, inner_reference_p=false)
    at ../../gcc-8.2.0/gcc/expr.c:11005
#3  0x0000000000a1f521 in expand_expr_real (exp=0x7ffff5ffb5e8,
target=0x7ffff5ffde58, tmode=E_SImode, modifier=EXPAND_NORMAL,
alt_rtl=0x7fffffffc988, inner_reference_p=false)
    at ../../gcc-8.2.0/gcc/expr.c:8232
#4  0x0000000000a17870 in store_expr_with_bounds (exp=0x7ffff5ffb5e8,
target=0x7ffff5ffde58, call_param_p=0, nontemporal=false,
reverse=false, btarget=0x7ffff5fa1900)
    at ../../gcc-8.2.0/gcc/expr.c:5635
#5  0x0000000000a16beb in expand_assignment (to=0x7ffff5fa1900,
from=0x7ffff5ffb5e8, nontemporal=false) at
../../gcc-8.2.0/gcc/expr.c:5403
#6  0x00000000008b6dbb in expand_call_stmt (stmt=0x7ffff5fad120) at
../../gcc-8.2.0/gcc/cfgexpand.c:2688
#7  0x00000000008b9a90 in expand_gimple_stmt_1 (stmt=0x7ffff5fad120)
at ../../gcc-8.2.0/gcc/cfgexpand.c:3624
#8  0x00000000008ba066 in expand_gimple_stmt (stmt=0x7ffff5fad120) at
../../gcc-8.2.0/gcc/cfgexpand.c:3790
#9  0x00000000008c0fea in expand_gimple_basic_block
(bb=0x7ffff5fa97b8, disable_tail_calls=false) at
../../gcc-8.2.0/gcc/cfgexpand.c:5819
#10 0x00000000008c24da in (anonymous namespace)::pass_expand::execute
(this=0x1c605a0, fun=0x7ffff64292c0) at
../../gcc-8.2.0/gcc/cfgexpand.c:6425
#11 0x0000000000d00e35 in execute_one_pass (pass=0x1c605a0) at
../../gcc-8.2.0/gcc/passes.c:2497
#12 0x0000000000d0119a in execute_pass_list_1 (pass=0x1c605a0) at
../../gcc-8.2.0/gcc/passes.c:2586
#13 0x0000000000d01223 in execute_pass_list (fn=0x7ffff64292c0,
pass=0x1c5c9d0) at ../../gcc-8.2.0/gcc/passes.c:2597
#14 0x000000000090a361 in cgraph_node::expand (this=0x7ffff6418e60) at
../../gcc-8.2.0/gcc/cgraphunit.c:2139
#15 0x000000000090a81c in expand_all_functions () at
../../gcc-8.2.0/gcc/cgraphunit.c:2275
#16 0x000000000090b32c in symbol_table::compile (this=0x7ffff64cb000)
at ../../gcc-8.2.0/gcc/cgraphunit.c:2624
#17 0x000000000090b5c4 in symbol_table::finalize_compilation_unit
(this=0x7ffff64cb000) at ../../gcc-8.2.0/gcc/cgraphunit.c:2717
#18 0x0000000000dedefd in compile_file () at ../../gcc-8.2.0/gcc/toplev.c:480
#19 0x0000000000df0856 in do_compile () at ../../gcc-8.2.0/gcc/toplev.c:2132
#20 0x0000000000df0b57 in toplev::main (this=0x7fffffffd2a6, argc=75,
argv=0x7fffffffd3a8) at ../../gcc-8.2.0/gcc/toplev.c:2267
#21 0x000000000152dde9 in main (argc=75, argv=0x7fffffffd3a8) at
../../gcc-8.2.0/gcc/main.c:39




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux