<div dir="ltr">does this happen with the fresh clang trunk? </div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 26, 2013 at 11:43 AM, Alexey Samsonov <span dir="ltr"><<a href="mailto:samsonov@google.com" target="_blank">samsonov@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Pedro!<br>
<br>
Yes, this is most likely the problem in ASan (ASan stack unwinder uses<br>
pointers to stack top/bottom in a given thread, and these<br>
pointers are not yet initialized in your case). Can you make a<br>
standalone reproducer for this issue?<br>
I'll take a look at the code to see if we can properly fix it, or at<br>
least add a workaround.<br>
<br>
(side note: once again we are hit by calling functions from libpthread<br>
in GetThreadStackTopAndBottom, sigh).<br>
<br>
On Tue, Nov 26, 2013 at 3:01 AM, pedro pinto <<a href="mailto:pedro.e.pinto@gmail.com">pedro.e.pinto@gmail.com</a>> wrote:<br>
> Hi there,<br>
><br>
> I just started running address sanitize AddressSanitizer and I received a<br>
> report that I am having trouble parsing:<br>
><br>
> ASAN:SIGSEGV<br>
> =================================================================<br>
> ==23580==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc<br>
> 0x2b3f29713a90 sp 0x2b3f3b526450 bp 0x2b3f3b526ca0 T38)<br>
> AddressSanitizer can not provide additional info.<br>
>     #0 0x2b3f29713a8f in __sanitizer::StackTrace::FastUnwindStack(unsigned<br>
> long, unsigned long, unsigned long, unsigned long) ??:?<br>
>     #1 0x2b3f29704dac in free ??:?<br>
>     #2 0x2b3f3118f8ac in __pthread_attr_destroy<br>
> /build/buildd/eglibc-2.17/nptl/pthread_attr_destroy.c:41<br>
>     #3 0x2b3f29711917 in __sanitizer::GetThreadStackTopAndBottom(bool,<br>
> unsigned long*, unsigned long*) ??:?<br>
>     #4 0x2b3f29711d8d in __sanitizer::GetThreadStackAndTls(bool, unsigned<br>
> long*, unsigned long*, unsigned long*, unsigned long*) ??:?<br>
>     #5 0x2b3f2970b72d in __asan::AsanThread::Init() ??:?<br>
>     #6 0x2b3f2970b98f in __asan::AsanThread::ThreadStart(unsigned long) ??:?<br>
>     #7 0x2b3f3118df6d in start_thread<br>
> /build/buildd/eglibc-2.17/nptl/pthread_create.c:311<br>
>     #8 0x2b3f320c79cc in clone<br>
> /build/buildd/eglibc-2.17/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:113<br>
> Thread T38 created by T0 here:<br>
>     #0 0x2b3f296fa7eb in __interceptor_pthread_create ??:?<br>
>     #1 0x2b3f301edd67 in tbb::internal::tbb_thread_v3::internal_start(void*<br>
> (*)(void*), void*)<br>
> /home/ppinto/external/tbb/tbb41_20130314oss/build/linux_intel64_gcc_cc4.1.2_libc2.5_kernel3.2.0_debug/../../src/tbb/tbb_thread.cpp:130<br>
><br>
> ....<br>
> ==23580==ABORTING<br>
><br>
> Seems like the top of the stack was within Address Sanitizer itself, does<br>
> this indicate a bug in sanitizer or am I missing something here?<br>
><br>
> Thanks in advance,<br>
> -pp<br>
><br>
> $ clang --version<br>
> Ubuntu clang version 3.4-1ubuntu1 (trunk) (based on LLVM 3.4)<br>
> Target: x86_64-pc-linux-gnu<br>
> Thread model: posix<br>
><br>
><br>
><br>
> _______________________________________________<br>
> cfe-users mailing list<br>
> <a href="mailto:cfe-users@cs.uiuc.edu">cfe-users@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Alexey Samsonov, MSK<br>
</font></span></blockquote></div><br></div>