[Bug sanitizer/77631] no symbols in backtrace shown by ASan when debug info is split
d.khalikov at partner dot samsung.com
gcc-bugzilla@gcc.gnu.org
Mon Mar 13 16:44:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77631
--- Comment #3 from Denis Khalikov <d.khalikov at partner dot samsung.com> ---
Created attachment 40963
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40963&action=edit
patch for PR sanitizer/77631
Hello everyone, i have a patch for this issue.
(see attachment PR_sanitizer_77631)
List of implemented functionality:
1.Reading .gnu_debuglink section from ELF file:
a. Reading name of debug info file.
b. Verifying crc32 sum.
2. Searching for separate debug info file from paths:
a. /usr/lib/debug/path/to/executable
b. /path/to/executable
c. /path/to/executable/.debug
Assumed that debug info file generated by objcopy from binutils.
objcopy --only-keep-debug foo foo.debug
strip -g foo
objcopy --add-gnu-debuglink=foo.debug foo
More information about the Gcc-bugs
mailing list