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

--- Comment #5 from urs at akk dot org ---
On Wed, Nov 16, 2022 at 03:54:54PM +0000, dmalcolm at gcc dot gnu.org wrote:
> If you're familiar with gdb, would you be able to reproduce the crasher under
> gdb, by adding:
>   -wrapper gdb,--args
> to the crashing gcc invocation, and getting a backtrace at the point of the
> crash.

Program received signal SIGSEGV, Segmentation fault.
0x0000000000cf0871 in LINEMAPS_USED(line_maps const*, bool) ()
(gdb) bt
#0  0x0000000000cf0871 in LINEMAPS_USED(line_maps const*, bool) ()
#1  0x0000000002e50aa3 in LINEMAPS_MACRO_USED(line_maps const*) ()
#2  0x0000000002e50adc in LINEMAPS_MACRO_LOWEST_LOCATION(line_maps const*) ()
#3  0x0000000002e7cd2e in linemap_location_from_macro_expansion_p(line_maps
const*, unsigned int) ()
#4  0x0000000002e7c49d in linemap_lookup(line_maps const*, unsigned int) ()
#5  0x0000000002e7f752 in _cpp_warn_if_unused_macro ()
#6  0x0000000002e8a46d in ht_forall(ht*, int (*)(cpp_reader*, ht_identifier*,
void const*), void const*) ()
#7  0x0000000002e6d9e6 in cpp_forall_identifiers(cpp_reader*, int
(*)(cpp_reader*, cpp_hashnode*, void*), void*) ()
#8  0x0000000002e6f1b2 in cpp_finish(cpp_reader*, _IO_FILE*) ()
#9  0x0000000000d26427 in c_common_finish() ()
#10 0x000000000151a5f5 in finalize(bool) ()
#11 0x000000000151a966 in do_compile(bool) ()
#12 0x000000000151ad0e in toplev::main(int, char**) ()
#13 0x0000000002dded3e in main ()

> Otherwise, would you be able to try rebuilding gcc with attachment 53911, and
> then use -fdump-analyzer, which with that patch ought to dump which name it's
> failing on (the dump is written to SOURCEFILE.analyzer.txt).

See attachment

Reply via email to