Open GoogleCodeExporter opened 9 years ago
Looks like a wall of text after posting, but see the stack traces I annotated
with --> at the beginning of the line for the changes I'd expect, i.e.:
--> line number where the temporary was freed from (this line was left out):
and
--> actual stack trace from where the temporary was allocated (instead of a
strange unnamed function from within libstdc++):
Original comment by mpe...@gmail.com
on 8 Aug 2014 at 8:55
FYI Asan uses something called "fast unwinder" to collect stack traces for
memory allocations. Fast unwinder has to be, well, fast so relies on frame
pointer which is not always available on most platforms so it may (and does on
x64 and ARM) lack precision unless you recompile all your code with
-fno-omit-frame-pointer. Another option would be running with
ASAN_OPTIONS=fast_unwind_on_malloc=0 but that would incur bigger perf
penalties. Setting fast_unwind_on_malloc=1 by default is a long debate but Asan
team prefers it to be that way.
Original comment by tetra2...@gmail.com
on 11 Aug 2014 at 4:35
BTW what about printing a message after reporting heap-related bug that would
tell user to compile with -fno-omit-frame-pointer for detailed stacks?
Original comment by tetra2...@gmail.com
on 11 Aug 2014 at 4:36
Original comment by ramosian.glider@gmail.com
on 30 Jul 2015 at 9:05
Adding Project:AddressSanitizer as part of GitHub migration.
Original comment by ramosian.glider@gmail.com
on 30 Jul 2015 at 9:06
Original issue reported on code.google.com by
mpe...@gmail.com
on 8 Aug 2014 at 8:52Attachments: