[PATCH] LLVMSymbolizer: Use alternative method if no inlining frames found.

Will Dietz w at wdtz.org
Wed Oct 16 13:51:40 PDT 2013


Fixes bug exposed by tsan lit tests where addresses fail to be
symbolized on my system (x86_64 linux).

An example of this failure can be seen with this binary[1]:

$ unxz ./thread_leak.3.c.tmp.xz

Using llvm-symbolizer from ToT:

$ echo ./thread_leak3.c.tmp 0x020560 | ~/llvm/build/bin/llvm-symbolizer
__interceptor_pthread_create
??:0:0

And after:

$ echo ./thread_leak3.c.tmp 0x020560|~/llvm/build/bin/llvm-symbolizer
__interceptor_pthread_create
/home/will/llvm/latest/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:876:0

Proposed patch attached.

~Will

[1] http://wdtz.org/files/thread_leak3.c.tmp.xz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-LLVMSymbolizer-Use-alternative-method-if-no-inlining.patch
Type: application/octet-stream
Size: 1203 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131016/67fc3743/attachment.obj>


More information about the llvm-commits mailing list