While compiling pool_allocator.o, cc1plus catches SIGSEGV:
In file included from ../../../../gcc/libstdc++-v3/src/pool_allocator.cc:31:0:
/home/artem/testing/gcc-build/i686-slackware-linux/libstdc++-v3/include/ext/pool_allocator.h: In constructor '__gnu_cxx::__pool_alloc<_Tp>::__pool_alloc() [with _Tp = char]':
../../../../gcc/libstdc++-v3/src/pool_allocator.cc:171:18: instantiated from here
/home/artem/testing/gcc-build/i686-slackware-linux/libstdc++-v3/include/ext/pool_allocator.h:140:30: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Here is the backtrace:
#0 0xb6ff08c7 in raise () from /lib/libc.so.6
#1 0xb6ff2132 in abort () from /lib/libc.so.6
#2 0x08269204 in real_abort () at ../../gcc/gcc/diagnostic.c:738
#3 diagnostic_action_after_output () at ../../gcc/gcc/diagnostic.c:201
#4 0x08269b09 in diagnostic_report_diagnostic (context=0x89ee8e0, diagnostic=0xbfcbfa94) at ../../gcc/gcc/diagnostic.c:423
#5 0x0826986a in internal_error (gmsgid=0x885c7ad "%s") at ../../gcc/gcc/diagnostic.c:674
#6 0x083fefe0 in crash_signal (signo=11) at ../../gcc/gcc/toplev.c:629
#7 <signal handler called>
#8 0x080c8ea4 in build_new_method_call (instance=0xb6aaf508, fns=0x0, args=0xbfcc019c, conversion_path=0xb6c886c8, flags=3,
complain=3, fn_p=0x0) at ../../gcc/gcc/cp/call.c:6209
#9 0x080ca084 in build_special_member_call (instance=0xb6aaf508, name=0xb6cf90d0, args=0xbfcc019c,
binfo=<value optimized out>, flags=3, complain=3) at ../../gcc/gcc/cp/call.c:6115
#10 0x0817aa69 in expand_default_init (binfo=<value optimized out>, true_exp=<value optimized out>,
exp=<value optimized out>, init=<value optimized out>, flags=3, complain=3) at ../../gcc/gcc/cp/init.c:1355
#11 expand_aggr_init_1 (binfo=<value optimized out>, true_exp=<value optimized out>, exp=<value optimized out>,
init=<value optimized out>, flags=3, complain=3) at ../../gcc/gcc/cp/init.c:1441
#12 0x0817e8f7 in emit_mem_initializers (mem_inits=0xb6abade0) at ../../gcc/gcc/cp/init.c:836
#13 0x080fd327 in tsubst_expr (t=<value optimized out>, args=<value optimized out>, complain=<value optimized out>,
in_decl=0xb6a9b1a0, integral_constant_expression_p=0 '\000') at ../../gcc/gcc/cp/pt.c:11392
#14 0x080fc6b7 in tsubst_expr (t=<value optimized out>, args=0xb6ab1768, complain=3, in_decl=0xb6a9b1a0,
integral_constant_expression_p=0 '\000') at ../../gcc/gcc/cp/pt.c:11387
#15 0x080fd225 in tsubst_expr (t=0xb6c900fc, args=0xb6ab1768, complain=3, in_decl=0xb6a9b1a0,
integral_constant_expression_p=0 '\000') at ../../gcc/gcc/cp/pt.c:11543
#16 0x0810b73d in instantiate_decl (d=<value optimized out>, defer_ok=<value optimized out>, expl_inst_class_mem_p=0 '\000')
at ../../gcc/gcc/cp/pt.c:16710
#17 0x08116630 in instantiate_pending_templates (retries=0) at ../../gcc/gcc/cp/pt.c:16807
#18 0x08130ca8 in cp_write_global_declarations () at ../../gcc/gcc/cp/decl2.c:3538
#19 0x083fe4d0 in compile_file (argc=41, argv=0xbfcc0674) at ../../gcc/gcc/toplev.c:1065
#20 do_compile (argc=41, argv=0xbfcc0674) at ../../gcc/gcc/toplev.c:2405
#21 toplev_main (argc=41, argv=0xbfcc0674) at ../../gcc/gcc/toplev.c:2447
#22 0x081fee3b in main (argc=41, argv=0xbfcc0674) at ../../gcc/gcc/main.c:35
I configured GCC rev. 156770 with the following options:
../gcc/configure --prefix= /home/artem/ testing/ gcc45 --enable-shared --enable-bootstrap --enable- languages= c,c++ --enable- threads= posix --enable- checking= release --with-system-zlib --disable- libunwind- exceptions --enable- __cxa_atexit --enable-libssp --with-gnu-ld --with-lto --disable-nls --verbose --with-arch=i686 --target= i686-slackware- linux --build= i686-slackware- linux --host= i686-slackware- linux
With this configuration 'make' completes successfully, but 'make profiledbootstrap' fails.
The last command which gets executed is
/home/artem/ testing/ gcc-build/ ./gcc/xgcc -shared-libgcc -B/home/ artem/testing/ gcc-build/ ./gcc -nostdinc++ -L/home/ artem/testing/ gcc-build/ i686-slackware- linux/libstdc+ +-v3/src -L/home/ artem/testing/ gcc-build/ i686-slackware- linux/libstdc+ +-v3/src/ .libs -B/home/ artem/testing/ gcc45/i686- slackware- linux/bin/ -B/home/ artem/testing/ gcc45/i686- slackware- linux/lib/ -isystem /home/artem/ testing/ gcc45/i686- slackware- linux/include -isystem /home/artem/ testing/ gcc45/i686- slackware- linux/sys- include -I/home/ artem/testing/ gcc-build/ i686-slackware- linux/libstdc+ +-v3/include/ i686-slackware- linux -I/home/ artem/testing/ gcc-build/ i686-slackware- linux/libstdc+ +-v3/include -I/home/ artem/testing/ gcc/libstdc+ +-v3/libsupc+ + -fno-implicit- templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics- show-location= once -ffunction-sections -fdata-sections -g -O2 -D_GNU_SOURCE -c ../../. ./../gcc/ libstdc+ +-v3/src/ pool_allocator. cc -fPIC -DPIC -o .libs/pool_ allocator. o
While compiling pool_allocator.o, cc1plus catches SIGSEGV:
In file included from ../../. ./../gcc/ libstdc+ +-v3/src/ pool_allocator. cc:31:0: testing/ gcc-build/ i686-slackware- linux/libstdc+ +-v3/include/ ext/pool_ allocator. h: In constructor '__gnu_ cxx::__ pool_alloc< _Tp>::_ _pool_alloc( ) [with _Tp = char]': ./../gcc/ libstdc+ +-v3/src/ pool_allocator. cc:171: 18: instantiated from here testing/ gcc-build/ i686-slackware- linux/libstdc+ +-v3/include/ ext/pool_ allocator. h:140:30: internal compiler error: Segmentation fault gcc.gnu. org/bugs. html> for instructions.
/home/artem/
../../.
/home/artem/
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://
Here is the backtrace:
#0 0xb6ff08c7 in raise () from /lib/libc.so.6 gcc/diagnostic. c:738 action_ after_output () at ../../gcc/ gcc/diagnostic. c:201 report_ diagnostic (context=0x89ee8e0, diagnostic= 0xbfcbfa94) at ../../gcc/ gcc/diagnostic. c:423 gcc/diagnostic. c:674 gcc/toplev. c:629 method_ call (instance= 0xb6aaf508, fns=0x0, args=0xbfcc019c, conversion_ path=0xb6c886c8 , flags=3, gcc/cp/ call.c: 6209 member_ call (instance= 0xb6aaf508, name=0xb6cf90d0, args=0xbfcc019c, gcc/cp/ call.c: 6115 gcc/cp/ init.c: 1355 gcc/cp/ init.c: 1441 initializers (mem_inits= 0xb6abade0) at ../../gcc/ gcc/cp/ init.c: 836 decl=0xb6a9b1a0 , integral_ constant_ expression_ p=0 '\000') at ../../gcc/ gcc/cp/ pt.c:11392 constant_ expression_ p=0 '\000') at ../../gcc/ gcc/cp/ pt.c:11387 constant_ expression_ p=0 '\000') at ../../gcc/ gcc/cp/ pt.c:11543 class_mem_ p=0 '\000') gcc/cp/ pt.c:16710 pending_ templates (retries=0) at ../../gcc/ gcc/cp/ pt.c:16807 global_ declarations () at ../../gcc/ gcc/cp/ decl2.c: 3538 gcc/toplev. c:1065 gcc/toplev. c:2405 gcc/toplev. c:2447 gcc/main. c:35
#1 0xb6ff2132 in abort () from /lib/libc.so.6
#2 0x08269204 in real_abort () at ../../gcc/
#3 diagnostic_
#4 0x08269b09 in diagnostic_
#5 0x0826986a in internal_error (gmsgid=0x885c7ad "%s") at ../../gcc/
#6 0x083fefe0 in crash_signal (signo=11) at ../../gcc/
#7 <signal handler called>
#8 0x080c8ea4 in build_new_
complain=3, fn_p=0x0) at ../../gcc/
#9 0x080ca084 in build_special_
binfo=<value optimized out>, flags=3, complain=3) at ../../gcc/
#10 0x0817aa69 in expand_default_init (binfo=<value optimized out>, true_exp=<value optimized out>,
exp=<value optimized out>, init=<value optimized out>, flags=3, complain=3) at ../../gcc/
#11 expand_aggr_init_1 (binfo=<value optimized out>, true_exp=<value optimized out>, exp=<value optimized out>,
init=<value optimized out>, flags=3, complain=3) at ../../gcc/
#12 0x0817e8f7 in emit_mem_
#13 0x080fd327 in tsubst_expr (t=<value optimized out>, args=<value optimized out>, complain=<value optimized out>,
in_
#14 0x080fc6b7 in tsubst_expr (t=<value optimized out>, args=0xb6ab1768, complain=3, in_decl=0xb6a9b1a0,
integral_
#15 0x080fd225 in tsubst_expr (t=0xb6c900fc, args=0xb6ab1768, complain=3, in_decl=0xb6a9b1a0,
integral_
#16 0x0810b73d in instantiate_decl (d=<value optimized out>, defer_ok=<value optimized out>, expl_inst_
at ../../gcc/
#17 0x08116630 in instantiate_
#18 0x08130ca8 in cp_write_
#19 0x083fe4d0 in compile_file (argc=41, argv=0xbfcc0674) at ../../gcc/
#20 do_compile (argc=41, argv=0xbfcc0674) at ../../gcc/
#21 toplev_main (argc=41, argv=0xbfcc0674) at ../../gcc/
#22 0x081fee3b in main (argc=41, argv=0xbfcc0674) at ../../gcc/