|
Bugzilla – Full Text Bug Listing |
| Summary: | gdb crashes (SIGABRT) debugging firefox when issuing 'info threads' command | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Michael Pujos <pujos.michael> |
| Component: | Development | Assignee: | Tom de Vries <tdevries> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | martin.liska, matz, pujos.michael |
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Michael Pujos
2021-10-17 10:32:43 UTC
Note that this crash happens only when debuginfod is enabled (DEBUGINFOD_URLS environmnent variable set), which is the default. Latest gdb from git compiled with --with-debuginfod does not crash. gdb internally aborting: something for Tom :-) Thanks for the report. Sorry, I can't reproduce this. Please either: - provide more complete instructions on how to reproduce - a script that reproduces the problem - a log of a debugging session that demonstrates the problem OK, I got a reproducer:
...
$ gdb -q -batch \
/usr/lib/debug/usr/lib64/firefox/libxul.so-93.0-1.1.x86_64.debug \
-ex "maint expand-symtabs gfx/wr/webrender/src/lib.rs" \
-ex "maint expand-symtabs gfx/wr/webrender/src/lib.rs"
Dwarf Error: Cannot find DIE at 0x563dca71 referenced from DIE at 0x56a674c0 [in module /usr/lib/debug/usr/lib64/firefox/libxul.so-93.0-1.1.x86_64.debug]
Aborted (core dumped)
...
I noticed:
$ readelf -w /home/marxin/.cache/debuginfod_client/61dc5d47ba1789f494278644181a1b6099fd140b/debuginfo
...
readelf: Warning: Location lists in .debug_loc section start at 0x10
Contents of the .debug_loc section:
Offset Begin End Expression
0000000c v000000000000000 v000000000000000 location view pair
0000000e v000000000000000 v000000000000000 location view pair
00000010 v000000000000000 v000000000000000 views at 0000000c for:
0000000000000040 00000000000000ea (DW_OP_reg4 (rsi); DW_OP_piece: 8)
00000025 <End of list>
readelf: Warning: Hole and overlap detection requires adjacent view lists and loclists.
00000027 v000000000000000 v000000000000000 location view pair
00000029 v000000000000000 v000000000000000 location view pair
0000002b v000000000000000 v000000000000000 views at 00000027 for:
0000000000000000 ffffffffffff0000 ((Unknown location op 0xd0))
0001003c v000000000000000 v000000000000000 views at 00000029 for:
0000000004edb4a0 00000000000022a8 ((Unknown location op 0x0)) (start > end)
000122fe v000000000000000 v000000000000000 views at 0000002b for:
c700000000000028 0a00000000000028 ((Unknown location op 0xc0)) (start > end)
00019a10 v000000000000000 v000000000000000 views at 0000002d for:
000001b300000000 9353000600000000 (DW_OP_piece: 8; (Unknown location op 0x0))
0001f82a v000000000000000 v000000000000000 views at 0000002f for:
000000040b08935c 000000044e000000 ()
0001f83c v000000000000000 v000000000000000 views at 00000031 for:
935208935c000600 000000000004da08 ((Unknown location op 0x4)) (start > end)
0002df4e v000000000000000 v000000000000000 views at 00000033 for:
0100000000000002 0000000008445600 () (start > end)
0002df60 readelf: Error: ../../binutils/dwarf.c:6405: read LEB value is too large to store in destination variable
vd0ffffffffffffff v000000000000000 views at 00000035 for:
0000000000000855 0000000000500001 ()
0002df72 v000000000000000 v000000000000000 views at 00000042 for:
On trunk, this bisects to: ... commit 8457e5ecc45295bc9550c4f705a276d5ca90d908 Author: Tom de Vries <tdevries@suse.de> Date: Wed Jun 16 12:44:30 2021 +0200 [gdb/symtab] Fix infinite recursion in dwarf2_cu::get_builder(), again ... I did another bisect carrying that patch, and got to: ... commit bf6e5d01d7b149e116a008bd4348983c6f56e9ba Author: Simon Marchi <simon.marchi@polymtl.ca> Date: Thu Nov 12 17:42:55 2020 -0500 gdb/dwarf: fix call to dwarf2_queue_guard in dw2_do_instantiate_symtab ... So, the first patch was backported to the package, the second one not, and that caused the failure on the package. Should be fixed by the upcoming update to 11.1, which contains both patches. *** Bug 1191864 has been marked as a duplicate of this bug. *** It's fixed now after gdb update to 11.1. |