Summary: | GDB 8.2 crashes while loading symbols of an LTO application | ||
---|---|---|---|
Product: | gdb | Reporter: | Liviu Ionescu <ilg> |
Component: | gdb | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | alan.hayward, keiths, ramana |
Priority: | P2 | ||
Version: | 8.2 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: |
The project that crashes with segmentation fault
The project that trows the assert |
Description
Liviu Ionescu
2019-01-28 14:05:02 UTC
Created attachment 11577 [details]
The project that crashes with segmentation fault
Created attachment 11578 [details]
The project that trows the assert
> The project that trows the assert
throws
For cross reference, this is the original launchpad bug report: https://bugs.launchpad.net/gcc-arm-embedded/+bug/1813553 One more detail that might help: the problem apparently affects only C++ projects, since I tried a similar C project generated by my Eclipse templates and GDB no longer crashed. It looks like GDB gets confused by the C++ debug information generated by the linker LTO code. Both reported problems have been fixed. The first reported problem is the NULL builder patch, fixed by the patch for gdb/23773: commit c24bdb023c8e1fa969d6eb945059fa8ed0d490c7 Author: Keith Seitz <keiths@redhat.com> Date: Wed Jan 16 11:38:06 2019 -0800 Introduce dwarf2_cu::get_builder The second one, the assertion failure, was fixed by the patch for 23010, 23712, and more: commit d3cb68081112a4976979df3f8eae7ca926e76519 Author: Keith Seitz <keiths@redhat.com> Date: Thu Jan 10 13:57:08 2019 -0800 gdb/23712: Remove dw2_add_symbol_to_list I have confirmed that the attached f4b-lto.elf file loads successfully into gdb built off HEAD: $ gdb -v GNU gdb (GDB) 8.2.50.20190116-git Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. $ gdb ~/Downloads/f4b-lto/Debug/f4b-lto.elf -readnow Reading symbols from /home/keiths/Downloads/f4b-lto/Debug/f4b-lto.elf... Expanding full symbols from /home/keiths/Downloads/f4b-lto/Debug/f4b-lto.elf... (gdb) *** This bug has been marked as a duplicate of bug 23712 *** Thank you, Keith, for the quick reply. I'll build a new toolchain and confirm if everything is ok. What's the policy with respect to backports of bugs / regression fixes to release branches ? Ramana -----Original Message----- From: keiths at redhat dot com <sourceware-bugzilla@sourceware.org> Sent: 29 January 2019 14:46 To: ramana@sourceware.org Subject: [Bug gdb/24145] GDB 8.2 crashes while loading symbols of an LTO application https://sourceware.org/bugzilla/show_bug.cgi?id=24145 Keith Seitz <keiths at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |keiths at redhat dot com Resolution|--- |DUPLICATE --- Comment #6 from Keith Seitz <keiths at redhat dot com> --- Both reported problems have been fixed. The first reported problem is the NULL builder patch, fixed by the patch for gdb/23773: commit c24bdb023c8e1fa969d6eb945059fa8ed0d490c7 Author: Keith Seitz <keiths@redhat.com> Date: Wed Jan 16 11:38:06 2019 -0800 Introduce dwarf2_cu::get_builder The second one, the assertion failure, was fixed by the patch for 23010, 23712, and more: commit d3cb68081112a4976979df3f8eae7ca926e76519 Author: Keith Seitz <keiths@redhat.com> Date: Thu Jan 10 13:57:08 2019 -0800 gdb/23712: Remove dw2_add_symbol_to_list I have confirmed that the attached f4b-lto.elf file loads successfully into gdb built off HEAD: $ gdb -v GNU gdb (GDB) 8.2.50.20190116-git Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. $ gdb ~/Downloads/f4b-lto/Debug/f4b-lto.elf -readnow Reading symbols from /home/keiths/Downloads/f4b-lto/Debug/f4b-lto.elf... Expanding full symbols from /home/keiths/Downloads/f4b-lto/Debug/f4b-lto.elf... (gdb) *** This bug has been marked as a duplicate of bug 23712 *** -- You are receiving this mail because: You are on the CC list for the bug. I confirm that with the latest commit from 20190129 I can debug my test projects. So far, so good. Thank you again, Keith! |