Ticket #46638: macports-clang-vptr.log

File macports-clang-vptr.log, 5.8 KB (added by mouse07410 (Mouse), 10 years ago)

Log of compilation and run of a test-program with vptr sanitizer enabled.

Line 
1$ clang++-mp-3.5 -v -fsanitize=undefined -fsanitize=address -o tj tj.cpp -lc++abi
2clang version 3.5.1 (tags/RELEASE_351/final)
3Target: x86_64-apple-darwin13.4.0
4Thread model: posix
5 "/opt/local/libexec/llvm-3.5/bin/clang" -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 -target-linker-version 236.3 -v -dwarf-column-info -resource-dir /opt/local/libexec/llvm-3.5/bin/../lib/clang/3.5.1 -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 -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-d1238a.o -x c++ tj.cpp
6clang -cc1 version 3.5.1 based upon LLVM 3.5.1 default target x86_64-apple-darwin13.4.0
7ignoring nonexistent directory "/usr/include/c++/v1"
8#include "..." search starts here:
9#include <...> search starts here:
10 /opt/local/libexec/llvm-3.5/bin/../include/c++/v1
11 /usr/local/include
12 /opt/local/libexec/llvm-3.5/bin/../lib/clang/3.5.1/include
13 /usr/include
14 /System/Library/Frameworks (framework directory)
15 /Library/Frameworks (framework directory)
16End of search list.
17 "/opt/local/libexec/llvm-3.5/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.9.0 -o tj /var/folders/pd/mxn5kp_55jg23x7jjd10gtwm0000gn/T/tj-d1238a.o -lc++abi -lc++ /opt/local/libexec/llvm-3.5/bin/../lib/clang/3.5.1/lib/darwin/libclang_rt.ubsan_osx.a -lc++ -lc++ /opt/local/libexec/llvm-3.5/bin/../lib/clang/3.5.1/lib/darwin/libclang_rt.asan_osx_dynamic.dylib -lSystem /opt/local/libexec/llvm-3.5/bin/../lib/clang/3.5.1/lib/darwin/libclang_rt.osx.a
18$ ./tj
19/opt/local/libexec/llvm-3.5/bin/../include/c++/v1/locale:1509:13: runtime error: member call on address 0x7fff7b62f068 which does not point to an object of type 'std::__1::basic_streambuf<char, std::__1::char_traits<char> >'
200x7fff7b62f068: note: object is of type 'std::__1::__stdoutbuf<char>'
21 00 00 00 00  10 05 63 7b ff 7f 00 00  70 fc 62 7b ff 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00
22              ^~~~~~~~~~~~~~~~~~~~~~~
23              vptr for 'std::__1::__stdoutbuf<char>'
24/opt/local/libexec/llvm-3.5/bin/../include/c++/v1/streambuf:360:12: runtime error: member call on address 0x7fff7b62f068 which does not point to an object of type 'std::__1::basic_streambuf<char, std::__1::char_traits<char> >'
250x7fff7b62f068: note: object is of type 'std::__1::__stdoutbuf<char>'
26 00 00 00 00  10 05 63 7b ff 7f 00 00  70 fc 62 7b ff 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00
27              ^~~~~~~~~~~~~~~~~~~~~~~
28              vptr for 'std::__1::__stdoutbuf<char>'
29/opt/local/libexec/llvm-3.5/bin/../include/c++/v1/iterator:906:53: runtime error: member call on address 0x7fff7b62f068 which does not point to an object of type 'std::__1::basic_streambuf<char, std::__1::char_traits<char> >'
300x7fff7b62f068: note: object is of type 'std::__1::__stdoutbuf<char>'
31 00 00 00 00  10 05 63 7b ff 7f 00 00  70 fc 62 7b ff 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00
32              ^~~~~~~~~~~~~~~~~~~~~~~
33              vptr for 'std::__1::__stdoutbuf<char>'
34/opt/local/libexec/llvm-3.5/bin/../include/c++/v1/streambuf:349:9: runtime error: member access within address 0x7fff7b62f068 which does not point to an object of type 'std::__1::basic_streambuf<char, std::__1::char_traits<char> >'
350x7fff7b62f068: note: object is of type 'std::__1::__stdoutbuf<char>'
36 00 00 00 00  10 05 63 7b ff 7f 00 00  70 fc 62 7b ff 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00
37              ^~~~~~~~~~~~~~~~~~~~~~~
38              vptr for 'std::__1::__stdoutbuf<char>'
39/opt/local/libexec/llvm-3.5/bin/../include/c++/v1/streambuf:349:20: runtime error: member access within address 0x7fff7b62f068 which does not point to an object of type 'std::__1::basic_streambuf<char, std::__1::char_traits<char> >'
400x7fff7b62f068: note: object is of type 'std::__1::__stdoutbuf<char>'
41 00 00 00 00  10 05 63 7b ff 7f 00 00  70 fc 62 7b ff 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00
42              ^~~~~~~~~~~~~~~~~~~~~~~
43              vptr for 'std::__1::__stdoutbuf<char>'
44/opt/local/libexec/llvm-3.5/bin/../include/c++/v1/streambuf:350:16: runtime error: member call on address 0x7fff7b62f068 which does not point to an object of type 'std::__1::basic_streambuf<char, std::__1::char_traits<char> >'
450x7fff7b62f068: note: object is of type 'std::__1::__stdoutbuf<char>'
46 00 00 00 00  10 05 63 7b ff 7f 00 00  70 fc 62 7b ff 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00
47              ^~~~~~~~~~~~~~~~~~~~~~~
48              vptr for 'std::__1::__stdoutbuf<char>'
49This is a test
50/opt/local/libexec/llvm-3.5/bin/../include/c++/v1/ostream:965:21: runtime error: member call on address 0x7fff7b62f068 which does not point to an object of type 'std::__1::basic_streambuf<char, std::__1::char_traits<char> >'
510x7fff7b62f068: note: object is of type 'std::__1::__stdoutbuf<char>'
52 00 00 00 00  10 05 63 7b ff 7f 00 00  70 fc 62 7b ff 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00
53              ^~~~~~~~~~~~~~~~~~~~~~~
54              vptr for 'std::__1::__stdoutbuf<char>'
55/opt/local/libexec/llvm-3.5/bin/../include/c++/v1/streambuf:273:12: runtime error: member call on address 0x7fff7b62f068 which does not point to an object of type 'std::__1::basic_streambuf<char, std::__1::char_traits<char> >'
560x7fff7b62f068: note: object is of type 'std::__1::__stdoutbuf<char>'
57 00 00 00 00  10 05 63 7b ff 7f 00 00  70 fc 62 7b ff 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00
58              ^~~~~~~~~~~~~~~~~~~~~~~
59              vptr for 'std::__1::__stdoutbuf<char>'
60$
61