Hide Forgot
Description of problem: debugger says DW_FORM_strp pointing outside of .debug_str section [in module /tmp/split-dwarf-test/a.dwo] and can't install breakpoint on main etc Version-Release number of selected component (if applicable): g++ (GCC) 6.1.1 20160621 (Red Hat 6.1.1-3) How reproducible: reproduction depends on file path among other things, if it will not reproduce, try in the same directory as me Steps to Reproduce: 1. echo 'int main(){}' > a.cpp && g++ -std=c++14 -g3 -gsplit-dwarf a.cpp -o a && gdb a Actual results: GNU gdb (GDB) Fedora 7.11.1-75.fc24 Copyright (C) 2016 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. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from a...done. DW_FORM_strp pointing outside of .debug_str section [in module /tmp/split-dwarf-test/a.dwo] (gdb) start DW_FORM_strp pointing outside of .debug_str section [in module /tmp/split-dwarf-test/a.dwo] (gdb) Expected results: $ echo 'int main(){}' > a.cpp && g++ -std=c++14 -g -gsplit-dwarf a.cpp -o a && gdb a GNU gdb (GDB) Fedora 7.11.1-75.fc24 Copyright (C) 2016 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. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from a...done. (gdb) start Temporary breakpoint 1 at 0x40059a: file a.cpp, line 1. Starting program: /tmp/split-dwarf-test/a Temporary breakpoint 1, main () at a.cpp:1 1 int main(){} (gdb) Additional info: removing -std=c++14 fixes this particular test (it will break on other parameters or on other source content), changing -g3 to -g fixes this issue permanently
Better don't use -gsplit-dwarf, I think it isn't generally useful unless you link hundreds of thousands or more object files.
This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.