1 | $ /usr/local/bin/clang++ -v -fsanitize=undefined -fsanitize=address -o tj tj.cpp -lc++abi |
---|
2 | clang version 3.5.0 (tags/RELEASE_350/final) |
---|
3 | Target: x86_64-apple-darwin13.4.0 |
---|
4 | Thread model: posix |
---|
5 | "/usr/local/bin/clang-3.5" -cc1 -triple x86_64-apple-macosx10.9.0 -emit-obj -mrelax-all -disable-free -main-file-name tj.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -v -dwarf-column-info -resource-dir /usr/local/bin/../lib/clang/3.5.0 -stdlib=libc++ -fdeprecated-macro -fdebug-compilation-dir /Users/uri/src -ferror-limit 19 -fmessage-length 84 -fsanitize=address,alignment,array-bounds,bool,enum,float-cast-overflow,float-divide-by-zero,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable,vla-bound,vptr -fsanitize-blacklist=/usr/local/bin/../lib/clang/3.5.0/asan_blacklist.txt -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/pd/mxn5kp_55jg23x7jjd10gtwm0000gn/T/tj-fcb93a.o -x c++ tj.cpp |
---|
6 | clang -cc1 version 3.5.0 based upon LLVM 3.5.0svn default target x86_64-apple-darwin13.4.0 |
---|
7 | ignoring nonexistent directory "/usr/include/c++/v1" |
---|
8 | #include "..." search starts here: |
---|
9 | #include <...> search starts here: |
---|
10 | /usr/local/bin/../include/c++/v1 |
---|
11 | /usr/local/include |
---|
12 | /usr/local/bin/../lib/clang/3.5.0/include |
---|
13 | /usr/include |
---|
14 | /System/Library/Frameworks (framework directory) |
---|
15 | /Library/Frameworks (framework directory) |
---|
16 | End of search list. |
---|
17 | "/opt/local/bin/ld" -dynamic -arch x86_64 -macosx_version_min 10.9.0 -o tj /var/folders/pd/mxn5kp_55jg23x7jjd10gtwm0000gn/T/tj-fcb93a.o -lc++abi -lc++ /usr/local/bin/../lib/clang/3.5.0/lib/darwin/libclang_rt.ubsan_osx.a -lc++ -lc++ /usr/local/bin/../lib/clang/3.5.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib -lSystem /usr/local/bin/../lib/clang/3.5.0/lib/darwin/libclang_rt.osx.a |
---|
18 | $ ./tj |
---|
19 | dyld: Library not loaded: @rpath/libclang_rt.asan_osx_dynamic.dylib |
---|
20 | Referenced from: /Users/uri/src/./tj |
---|
21 | Reason: image not found |
---|
22 | Trace/BPT trap: 5 |
---|
23 | $ export DYLD_LIBRARY_PATH=/usr/local/lib/clang/3.5.0/ |
---|
24 | asan_blacklist.txt include/ lib/ |
---|
25 | $ export DYLD_LIBRARY_PATH=/usr/local/lib/clang/3.5.0/lib/darwin |
---|
26 | $ ./tj |
---|
27 | This is a test |
---|
28 | $ |
---|
29 | |
---|