<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - ASan broken on Mac OS X 10.8 after merge with UBsan run-time"
href="https://llvm.org/bugs/show_bug.cgi?id=23539">23539</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ASan broken on Mac OS X 10.8 after merge with UBsan run-time
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hans@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>glider@google.com, kuba.brecka@gmail.com, llvmbugs@cs.uiuc.edu, nicolasweber@gmx.de, vonosmas@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>After the merge with UBSan run-time r233860, r233861, etc., the ASan run-time
no longer builds or runs on Mac OS X 10.8.
In Chromium, we have builders running ASan-ified tests on 10.8.5. They are now
failing with an unresolved symbol: (from [1])
dyld: Symbol not found: __ZTISt9type_info
Referenced from:
/Volumes/data/b/build/slave/mac_chromium_asan_rel_ng/build/src/gpu/../out/Release/libclang_rt.asan_osx_dynamic.dylib
Expected in: /usr/lib/libc++.1.dylib
in
/Volumes/data/b/build/slave/mac_chromium_asan_rel_ng/build/src/gpu/../out/Release/libclang_rt.asan_osx_dynamic.dylib
It seems this symbol is expected to be available in either
/usr/lib/libc++.dylib or /usr/lib/libc++abi.dylib (this is apparently a known
tricky symbol, and the run-time is linked against both; see e.g.
<a href="http://reviews.llvm.org/D6960">http://reviews.llvm.org/D6960</a>).
However, the symbol is exported from neither of these on our buildbots:
$ nm /usr/lib/libc++.dylib | grep __ZTISt9type_info
$ nm /usr/lib/libc++abi.dylib | grep __ZTISt9type_info
000000000002eb40 s __ZTISt9type_info
(Note the lower-case 's' means it's an internal symbol.)
Since this symbol isn't available, can we make ASan not rely on it?
$ sw_vers -productVersion
10.8.5
$ uname -a
Darwin vm723-m4.golo.chromium.org 12.6.0 Darwin Kernel Version 12.6.0: Wed Dec
17 19:11:40 PST 2014; root:xnu-2050.48.15~1/RELEASE_X86_64 x86_64
[1]
<a href="http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_asan_rel_ng/builds/223/steps/compile%20%28with%20patch%29/logs/stdio">http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_asan_rel_ng/builds/223/steps/compile%20%28with%20patch%29/logs/stdio</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>