Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 311 by [email protected]: ASAN coverage missing DTORs
http://code.google.com/p/address-sanitizer/issues/detail?id=311
#include <stdio.h>
struct AAA { virtual ~AAA() { printf("~AAA\n"); } };
struct BBB : public AAA {};
struct CCC: public BBB { virtual ~CCC() { printf("~CCC\n"); } };
AAA *a = new CCC;
int main() { delete a; }
clang++ -O1 -g -fsanitize=address -mllvm -asan-coverage=1 ~/tmp/dtor3.cc
Objdump shows the following DTORs (do not demangle the symbols to see the
differences):
_ZN3AAAD0Ev
_ZN3AAAD2Ev
_ZN3BBBD0Ev
_ZN3CCCD0Ev
_ZN3CCCD2Ev
When coverage is run, only these are covered -- no BBB is present:
_ZN3CCCD2Ev
_ZN3CCCD0Ev
_ZN3AAAD2Ev
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.