[Bug sanitizer/56425] New: debug info is broken with -fsanitize=address
kcc at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 22 14:23:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56425
Bug #: 56425
Summary: debug info is broken with -fsanitize=address
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: kcc@gcc.gnu.org
CC: dodji@gcc.gnu.org, dvyukov@gcc.gnu.org,
jakub@gcc.gnu.org, kcc@gcc.gnu.org
r196201
addr2line can not properly symbolize asan-ified binaries
% g++ -gdwarf-3 -fsanitize=address ./use-after-free.cc -static-libasan ;
./a.out 2>&1 | grep '#0'
#0 0x4179c2 (/home/kcc/tmp/a.out+0x4179c2)
#0 0x40f18a (/home/kcc/tmp/a.out+0x40f18a)
#0 0x40f26a (/home/kcc/tmp/a.out+0x40f26a)
% addr2line -f -e ./a.out 0x4179c2 0x40f18a 0x40f26a
main
/home/kcc/tmp/./use-after-free.cc:22
free
??:0
malloc
??:0
% g++ -g -fsanitize=address ./use-after-free.cc -static-libasan ; ./a.out
2>&1 | grep '#0'
#0 0x4179c2 (/home/kcc/tmp/a.out+0x4179c2)
#0 0x40f18a (/home/kcc/tmp/a.out+0x40f18a)
#0 0x40f26a (/home/kcc/tmp/a.out+0x40f26a)
% addr2line -f -e ./a.out 0x4179c2 0x40f18a 0x40f26a
main
??:0
free
??:0
malloc
??:0
%
More information about the Gcc-bugs
mailing list