This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/77631] no symbols in backtrace shown by ASan when debug info is split
- From: "d.khalikov at partner dot samsung.com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 13 Mar 2017 16:44:51 +0000
- Subject: [Bug sanitizer/77631] no symbols in backtrace shown by ASan when debug info is split
- Auto-submitted: auto-generated
- References: <bug-77631-4@http.gcc.gnu.org/bugzilla/>
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