<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi everyone,<div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>I'm running into a bug described pretty well by this bug report. <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56393">http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56393</a></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>So I have a generally successful install of Clang V3.3 via macports on OS X 10.8.3.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>I can compile and run my large application successfully with Clang.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>I can test small example programs with AddressSanitizer successfully.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>I <b>cannot</b> use AddressSanitizer with my large application.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>I get a Segmentation Fault on program startup in the same <font face="Courier" style="white-space: pre-wrap; ">boost::exception_detail::get_static_exception_object()</font><span style="white-space: pre-wrap;"> function mentioned in the linked bug report above.</span></div><div><span style="white-space: pre-wrap;"><br></span></div><div><span style="white-space: pre-wrap;">Two questions.</span></div><div><span style="white-space: pre-wrap;">1) Is that bug report also likely to lead to a fix for Clang? Or is it specific to gcc? If a separate bug report is needed, where?</span></div><div><span style="white-space: pre-wrap;"><br></span></div><div><span style="white-space: pre-wrap;">2) Can I do anything to get AddressSanitizer working with my large application which uses BOOST?</span></div><div><span style="white-space: pre-wrap;"><br></span></div><div><span style="white-space: pre-wrap;"><br></span></div><div><span style="white-space: pre-wrap;">I did look at the linking command from clang++ -v …, then replaced </span></div><div><font face="Courier New">clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib</font></div><div>with </div><div><font face="Courier New">clang/3.3/lib/darwin/libclang_rt.osx.a </font></div><div>(Having already seen:<font face="Courier New"> clang: warning: argument unused during compilation: '-static-libasan'</font>)</div><div>The link phase still succeeds. But I get the same segmentation fault.</div><div><br></div><div>Thanks, </div><div>Noah.</div></body></html>