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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to