https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78878
Bug ID: 78878 Summary: stacktrace engine can't use compressed/separated debug info for extracting symbols. Product: gcc Version: 6.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: pawel_sikora at zoho dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone: --- Created attachment 40384 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40384&action=edit testcase hi, i've noticed that compressed debuginfo (or externally accessible via .gnu_debuglink section) is not used for decorating sanitizer stacktrace. e.g.: ================================================================= ==6290==ERROR: LeakSanitizer: detected memory leaks Direct leak of 4 byte(s) in 1 object(s) allocated from: #0 0x7f4d243840ce in operator new(unsigned long) (/lib64/liblsan.so.0+0xe0ce) #1 0x400693 (/home/pawels/bugs/mem-leak/m+0x400693) #2 0x40069f (/home/pawels/bugs/mem-leak/m+0x40069f) #3 0x7f4d23728400 in __libc_start_main (/lib64/libc.so.6+0x20400) without compression/debuglink the stacktrace is more readable: ================================================================= ==6318==ERROR: LeakSanitizer: detected memory leaks Direct leak of 4 byte(s) in 1 object(s) allocated from: #0 0x7efe533370ce in operator new(unsigned long) (/lib64/liblsan.so.0+0xe0ce) #1 0x400693 in leak() /home/pawels/bugs/mem-leak/m.cpp:4 #2 0x40069f in main /home/pawels/bugs/mem-leak/m.cpp:8 #3 0x7efe526db400 in __libc_start_main (/lib64/libc.so.6+0x20400)