<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 1, 2014 at 7:04 PM, Yuri Gribov <span dir="ltr"><<a href="mailto:tetra2005@gmail.com" target="_blank">tetra2005@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">> No, it's ON. Also,<br>
<br>
</div>Hm, interesting. My understanding was that if library (libasan)<br>
depends on another library (libpthread) the latter would be loaded by<br>
ld.so as well (i.e. it's not necessary to link executable against it).<br>
Could you run ldd on executable? Does it list libpthread as well?<br>
<br>
And BTW I have no such problems on my local system.<br></blockquote><div><br></div><div>Ah, indeed</div><div><div>$ ldd projects/compiler-rt/test/asan/64bitConfig-dynamic/TestCases/Output/sanity_check_pure_c.c.tmp </div>
<div><span class="" style="white-space:pre">    </span>linux-vdso.so.1 =>  (0x00007fff673ff000)</div><div><span class="" style="white-space:pre">       </span><a href="http://libclang_rt.asan-x86_64.so">libclang_rt.asan-x86_64.so</a> => not found</div>
<div><span class="" style="white-space:pre">    </span>libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5dc4c75000)</div><div><span class="" style="white-space:pre">       </span>/lib64/ld-linux-x86-64.so.2 (0x00007f5dc5057000)</div>
</div><div> </div><div>notice the "not found" part. When we link the executable with <a href="http://libclang_rt.asan-x86_64.so">libclang_rt.asan-x86_64.so</a>, linker doesn't know where this .so would come from (we need to specify LD_LIBRARY_PATH for it), and therefore doesn't link in the transitive dependencies.</div>
</div><div><br></div>-- <br><div>Alexey Samsonov, MSK</div>
</div></div>