LD_PRELOAD librtc.so cause of jvm application crash

The setup we have is the following:

1/ an application with an api

2/ our code attached to the app via the api

In order to use the SUNWspro runtime checking, we try to set LD_PRELOAD to /opt/SUNWspro/lib/librtc.so before launching the parent process (ie the app). The idea is to attach to that process, execute our code and watch the memory.

However, defining LD_PRELOAD causes our application to fail. The login screen cannot be opened.

The hs_err logfile from the JVM complains about some __memset failure from the librtc.so

Anyone has any experience with this stuff? (using LD_PRELOAD for an app with a java based gui to do memory profiling on a c++ extension via the app's api?)

Thanks a lot.

[745 byte] By [Ivo54] at [2007-11-26 8:28:15]
# 1

I see this (or similar) error with JVM 1.2.2, but not on later versions of JVM.

Is it possible for you to run JVM under dbx with check -access turned on? Maybe this can help...

BTW: dbx memory access checking feature does not work with libjvm.so (normally, you won't need it to work, however), but make sure you have 121023-02 dbx 7.5 patch installed. It can be downloaded here: http://sunsolve.sun.com/pub-cgi/getpatch.pl

MaximKartashev at 2007-7-6 21:45:07 > top of Java-index,Development Tools,Solaris and Linux Development Tools...