<div dir="ltr">Try to add ASAN_OPTIONS=fast_unwind_on_malloc=0. It's possible that stack traces go through smth. like libstdc++ which is built without frame pointers.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 24, 2015 at 12:49 AM, Rainer Gerhards via cfe-users <span dir="ltr"><<a href="mailto:cfe-users@lists.llvm.org" target="_blank">cfe-users@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
first, thanks for the great tool, especially the address sanitizer. I<br>
have a multi-threaded program, where I get a segfault due to access to<br>
free'd memory in one thread. In the report, I see references to where<br>
this memory block was malloc'ed and free'ed. Unfortunately, these<br>
later two stack traces just include 2 and 3 stack frames, where it<br>
would need to be around 15. Most importantly, the information I really<br>
need is missing due to that.<br>
<br>
I tried to explicitely set<br>
<br>
ASAN_OPTIONS=verbosity=1:malloc_context_size=20<br>
<br>
even though malloc_context_size should be 30 by default. I know<br>
ASAN_OPTIONS is used, because my output now is verbose.<br>
<br>
I compile with<br>
<br>
-g -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith<br>
-Wmissing-format-attribute -fsanitize=address -fno-omit-frame-pointer<br>
-O0<br>
<br>
Note that I added -O0 in a desparate effort to try to get to larger<br>
stack traces. Nothing changes if I leave it out.<br>
<br>
I than wrote a small single-threaded test program, and there large<br>
stack traces are reported.<br>
<br>
Does anyone have any advise on how to get to larger stack traces? Or<br>
at least what could be the root cause of this problem?<br>
<br>
Any help would be deeply appreciated.<br>
<br>
Thanks,<br>
Rainer<br>
_______________________________________________<br>
cfe-users mailing list<br>
<a href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div></div>
</div>