https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81317
--- Comment #22 from Randy MacLeod <randy.macleod at windriver dot com> ---
Yes, the host is an x86-64-linux system running Ubuntu-16.04.1.
The cross-compiler was built using the Open Embedded (OE) build system so of
course, it's not part of Ubuntu.
I did get a better backtrace as shown below but no full symbol table/line
numbers yet.
The OE build puts the toolchain in a sysroot directory structure so I tried
running gdb using the original executable:
$ file
/buildarea/rmacleod/src/distro/yocto/b/sd-ppc/tmp-glibc/work/x86_64-linux/gcc-cross-powerpc/7.1.0-r0/gcc-7.1.0/build.x86_64-linux.powerpc-oe-linux/gcc/cc1
/LONGPATH/build.x86_64-linux.powerpc-oe-linux/gcc/cc1: ELF 64-bit LSB
executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter
/lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32,
BuildID[sha1]=e4f4e565fcaeee1a3c291899d42d96b7fd76db1d, not stripped
$ gdb /LONGPATH/build.x86_64-linux.powerpc-oe-linux/gcc/cc1
(gdb) run -fpreprocessed second.i
...
Program received signal SIGSEGV, Segmentation fault.
[6/1951]
0x000000000075f743 in store_expr_with_bounds(tree_node*, rtx_def*, int, bool,
bool, tree_node*) ()
(gdb) bt full
#0 0x000000000075f743 in store_expr_with_bounds(tree_node*, rtx_def*, int,
bool, bool, tree_node*) ()
No symbol table info available.
#1 0x00000000007604e0 in expand_assignment(tree_node*, tree_node*, bool) ()
No symbol table info available.
#2 0x00000000006728fb in expand_gimple_stmt(gimple*) ()
No symbol table info available.
#3 0x00000000006742f1 in expand_gimple_basic_block(basic_block_def*, bool) ()
No symbol table info available.
#4 0x0000000000678ddf in (anonymous
namespace)::pass_expand::execute(function*) ()
No symbol table info available.
#5 0x000000000092be4b in execute_one_pass(opt_pass*) ()
No symbol table info available.
#6 0x000000000092c668 in execute_pass_list_1(opt_pass*) [clone .constprop.88]
()
No symbol table info available.
#7 0x000000000092c6c5 in execute_pass_list(function*, opt_pass*) ()
No symbol table info available.
#8 0x00000000006a360d in cgraph_node::expand() ()
No symbol table info available.
#9 0x00000000006a4b3d in symbol_table::compile() [clone .part.51] ()
No symbol table info available.
#10 0x00000000006a6598 in symbol_table::finalize_compilation_unit() ()
No symbol table info available.
#11 0x00000000009e75b0 in compile_file() ()
No symbol table info available.
#12 0x0000000000577a4c in toplev::main(int, char**) ()
No symbol table info available.
#13 0x0000000000579dd7 in main ()
No symbol table info available.
(gdb) info register
rax 0x0 0
rbx 0x7ffff658ed80 140737326411136
rcx 0x0 0
rdx 0x7fffffffa8b0 140737488332976
rsi 0x7fffffffa8a0 140737488332960
rdi 0x0 0
rbp 0x7ffff6722930 0x7ffff6722930
rsp 0x7fffffffa880 0x7fffffffa880
r8 0x0 0
r9 0x0 0
r10 0x7ffff658d798 140737326405528
r11 0x0 0
r12 0x0 0
r13 0x0 0
r14 0x0 0
r15 0x7ffff658d480 140737326404736
rip 0x75f743 0x75f743 <store_expr_with_bounds(tree_node*, rtx_def*,
int, bool, bool, tree_node*)+211>
eflags 0x10246 [ PF ZF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb)
I'm not sure why the symbol table isn't available but I can work on that
tomorrow if needed.