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/
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
=
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:
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
*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
*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