Re: unknown-crash with __asan_memset

2015-05-27 Thread Yuri Gribov
On Wed, May 27, 2015 at 1:52 PM, Dmitriy - wrote: > Hello all. > I try using ASan for debug jvm. > > All .so library in jvm instrumented with ASan. > But, I have some error here: > > LD_PRELOAD=/usr/lib/libclang_rt.asan-x86_64.so > LD_LIBRARY_PATH=./dist/jdk_7/debug/open/jdk/jre/lib/amd64/drlvm/

unknown-crash with __asan_memset

2015-05-27 Thread Dmitriy -
Hello all. I try using ASan for debug jvm. All .so library in jvm instrumented with ASan. But, I have some error here: LD_PRELOAD=/usr/lib/libclang_rt.asan-x86_64.so LD_LIBRARY_PATH=./dist/jdk_7/debug/open/jdk/jre/lib/amd64/drlvm/ ./dist/jdk_7/debug/open/jdk/jre/bin/java -XX:-UseG1GC -version =

Re: Issue - your application is linked against incompatible ASan runtimes.

2015-05-27 Thread Dmitriy -
Thx Yury, it worked! On Wednesday, May 27, 2015 at 2:31:40 PM UTC+6, Yury Gribov wrote: > > On 05/27/2015 11:18 AM, Dmitriy - wrote: > > But when I run program: > > $ LD_LIBRARY_PATH=. ./a.out > > > > get error: > > ./a.out: error while loading shared libraries: > libclang_rt.asan-x86_64.so:

Re: Issue - your application is linked against incompatible ASan runtimes.

2015-05-27 Thread Yury Gribov
On 05/27/2015 11:18 AM, Dmitriy - wrote: But when I run program: $ LD_LIBRARY_PATH=. ./a.out get error: ./a.out: error while loading shared libraries: libclang_rt.asan-x86_64.so: cannot open shared object file: No such file or directory with LD_LIBRARY_PATH=.:/usr/local/lib/clang/3.7.0/lib/linu

Re: Issue - your application is linked against incompatible ASan runtimes.

2015-05-27 Thread Dmitriy -
*Thanks* Alexey. This wok: $ clang++ -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -shared-libasan -fPIC -g3 -c shared.cpp $ clang++ -fsanitize=address -shared-libasan -shared -o libshared.so -g3 shared.o $ clang++ -fno-omit-frame-pointer -fno-optimize-sibling-calls -fs

Re: Issue - your application is linked against incompatible ASan runtimes.

2015-05-27 Thread Dmitriy -
*Thanks* Alexey. This wok: $ clang++ -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -shared-libasan -fPIC -g3 -c shared.cpp $ clang++ -fsanitize=address -shared-libasan -shared -o libshared.so -g3 shared.o $ clang++ -fno-omit-frame-pointer -fno-optimize-sibling-calls -fs