[LLVMbugs] [Bug 23539] New: ASan broken on Mac OS X 10.8 after merge with UBsan run-time

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 15 11:08:40 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23539

            Bug ID: 23539
           Summary: ASan broken on Mac OS X 10.8 after merge with UBsan
                    run-time
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: hans at chromium.org
                CC: glider at google.com, kuba.brecka at gmail.com,
                    llvmbugs at cs.uiuc.edu, nicolasweber at gmx.de,
                    vonosmas at gmail.com
    Classification: Unclassified

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.
http://reviews.llvm.org/D6960).

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]
http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_asan_rel_ng/builds/223/steps/compile%20%28with%20patch%29/logs/stdio

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150515/71a2ecf7/attachment.html>


More information about the llvm-bugs mailing list