This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/77631] no symbols in backtrace shown by ASan when debug info is split


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]