[LLVMdev] undefined symbols in AddressSanitizer tests on darwin

Jack Howarth howarth at bromo.med.uc.edu
Tue Nov 6 06:08:31 PST 2012


 At 167457 on x86_64-apple-darwin12, I am seeing a slew of AddressSanitizer failures due to
unresolved symbols such as...

Exit Code: 1
Command Output (stderr):
--
Undefined symbols for architecture x86_64:
  "___asan_init", referenced from:
      _asan.module_ctor in shared-lib-test-so-moBSTe.o
  "___asan_register_globals", referenced from:
      _asan.module_ctor in shared-lib-test-so-moBSTe.o
  "___asan_report_load4", referenced from:
      _inc in shared-lib-test-so-moBSTe.o
  "___asan_report_store4", referenced from:
      _inc in shared-lib-test-so-moBSTe.o
  "___asan_unregister_globals", referenced from:
      _asan.module_dtor in shared-lib-test-so-moBSTe.o
ld: symbol(s) not found for architecture x86_64
clang-3: error: linker command failed with exit code 1 (use -v to see invocation)
--

********************
FAIL: AddressSanitizer :: sleep_before_dying.c (27 of 12557)
******************** TEST 'AddressSanitizer :: sleep_before_dying.c' FAILED ********************
Script:
--
/sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/bin/clang -g -fsanitize=address -O2 /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/sleep_before_dying.c -o /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/sleep_before_dying.c.tmp
ASAN_OPTIONS="sleep_before_dying=1" /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/sleep_before_dying.c.tmp 2>&1 | FileCheck /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/sleep_before_dying.c
--
Exit Code: 1
Command Output (stderr):
--
Undefined symbols for architecture x86_64:
  "___asan_init", referenced from:
      _asan.module_ctor in sleep_before_dying-x9Fh1M.o
  "___asan_report_load1", referenced from:
      _main in sleep_before_dying-x9Fh1M.o
ld: symbol(s) not found for architecture x86_64
clang-3: error: linker command failed with exit code 1 (use -v to see invocation)
--

********************
FAIL: AddressSanitizer :: stack-overflow.cc (28 of 12557)
******************** TEST 'AddressSanitizer :: stack-overflow.cc' FAILED ********************
Script:
--
/sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O0 /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/stack-overflow.cc -o /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/stack-overflow.cc.tmp && /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/stack-overflow.cc.tmp 2>&1 |  /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py | c++filt | FileCheck /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/stack-overflow.cc

etc. Is this occuring on linux as well?
             Jack



More information about the llvm-dev mailing list