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

[Bug lto/83719] [8 Regression] ICE (segfault) in hash_table<indirect_string_hasher, xcallocator>::elements()


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83719

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|i686-linux-gnu              |i686-linux-gnu,
                   |                            |x86_64-linux-gnu
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-01-08
                 CC|                            |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with Richi's r251220.
One can reproduce it on x86_64 with empty file and:
$ ./xg++ -B. pr83719.ii -c -std=c++11 -c -gsplit-dwarf -g -flto

$ (gdb) p skeleton_debug_str_hash
$2 = (hash_table<indirect_string_hasher, xcallocator> *) 0x0
(gdb) bt
#0  0x0000000000a630e2 in hash_table<indirect_string_hasher,
xcallocator>::elements (this=0x0) at ../../gcc/hash-table.h:388
#1  0x0000000000a5a511 in hash_table<indirect_string_hasher,
xcallocator>::traverse<dwarf_form,
&(output_indirect_string(indirect_string_node**, dwarf_form))> (this=0x0,
argument=DW_FORM_strp) at ../../gcc/hash-table.h:987
#2  0x0000000000a4790d in output_indirect_strings () at
../../gcc/dwarf2out.c:27799
#3  0x0000000000a4e580 in dwarf2out_early_finish (filename=0x2481a50
"/home/marxin/Programming/testcases/pr83719.ii") at ../../gcc/dwarf2out.c:30894
#4  0x00000000009b31f9 in symbol_table::finalize_compilation_unit
(this=0x7ffff6817100) at ../../gcc/cgraphunit.c:2713
#5  0x0000000000df359b in compile_file () at ../../gcc/toplev.c:480
#6  0x0000000000625c25 in do_compile () at ../../gcc/toplev.c:2081
#7  toplev::main (this=this@entry=0x7fffffffd93e, argc=<optimized out>,
argc@entry=16, argv=<optimized out>, argv@entry=0x7fffffffda38) at
../../gcc/toplev.c:2216
#8  0x000000000062806b in main (argc=16, argv=0x7fffffffda38) at
../../gcc/main.c:39

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