Operating System - HP-UX
1777350 Members
3228 Online
109069 Solutions
New Discussion юеВ

libjsig.sl (JDK 1.6.0.04) causes code to crash.

 
Skandh
Occasional Contributor

libjsig.sl (JDK 1.6.0.04) causes code to crash.

I am working on JNI application on HP-PARISC64 which uses extnesive signal chaining. Earlier I was using JDK 1.6.0.02, and my application was working perfectly. Recently I moved from JDK 1.6.0.02 to JDK 1.6.0.04 and trouble began for me. My application was crashing as soon as I start it. I debug the issue and recognized that the problem is coming from LD_PRELOAD=$JDK1.6.0.04_HOME/jre/lib/PA_RISC2.0W/libjsig.sl.

To debug the issue further I wrote simple JNI program as mentioned at http://docs.hp.com/en/JAVAPROGUIDE/JNI_java2.html

I tested following 4 scenario:

Scenario 1:

When I set LD_PRELOAD=$JDK1.6.0.04_HOME/jre/lib/PA_RISC2.0W/libjvm.sl

Program works perfectly

libjvm.sl from JDK 1.6.0.04.


Scenario 2:

When I set LD_PRELOAD=$JDK1.6.0.04_HOME/jre/lib/PA_RISC2.0W/server/libjvm.sl:$JDK1.6.0.04_HOME/jdk/jre/lib/PA_RISC2.0W/libjsig.sl

Program terminated immediately after giving following error:

"bash-3.00$ ./loadjava
call_os_sigaction - cannot find libc: No such file or directory"

libjvm.sl and libjsig.sl are both from JDK 1.6.0.04.


Scenario 3:

When I set LD_PRELOAD=$JDK1.6.0.04_HOME/jdk/jre/lib/PA_RISC2.0W/server/libjvm.sl:$JDK1.6.0.02_HOME/jre/lib/PA_RISC2.0W/libjsig.sl

$JDK1.6.0.02_HOME/jre/lib/PA_RISC2.0W/libjsig.sl is from JDK 1.6.0.02

Program works perfectly.

libjvm.sl from JDK 1.6.0.04 and libjsig.sl from JDK 1.6.0.02.

Scenario 4:

When I set LD_PRELOAD=$JDK1.6.0.02_HOME/jdk/jre/lib/PA_RISC2.0W/server/libjvm.sl:$JDK1.6.0.02_HOME/jre/lib/PA_RISC2.0W/libjsig.sl

libjvm.sl and libjsig.sl are both from JDK 1.6.0.02


So culprit seems to be while specifying libjsig.sl.

Can someone please help me to get rid of following error while using libjsig.sl from JDK 1.6.0.04:

"bash-3.00$ ./loadjava
call_os_sigaction - cannot find libc: No such file or directory"

What does it mean specifically?


5 REPLIES 5

Re: libjsig.sl (JDK 1.6.0.04) causes code to crash.

I know nothing about Java or signal chaining, but is this relevant?

http://docs.hp.com/en/JAVAPROGUIDE/signals.html

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Skandh
Occasional Contributor

Re: libjsig.sl (JDK 1.6.0.04) causes code to crash.

That's what I am wondering, how this is relevant here and how it is affecting my application upto such an extent to crash.

Re: libjsig.sl (JDK 1.6.0.04) causes code to crash.

Well the note implies you should use LD_PRELOAD_ONCE for the jsig lib, as in:

LD_PRELOAD_ONCE=$JDK1.6.0.04_HOME/jre/lib/PA_RISC2.0W/libjsig.sl
LD_PRELOAD=$JDK1.6.0.04_HOME/jdk/jre/lib/PA_RISC2.0W/server/libjvm.sl

and then try starting the app...

of course this pre-supposes you have the patches for LD_PRELOAD_ONCE (although they are pretty old so you probably do - check if its mentioned on the dld.sl man page)

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Skandh
Occasional Contributor

Re: libjsig.sl (JDK 1.6.0.04) causes code to crash.

Thanks for reply.
I tried LD_PRELOAD_ONCE, but it didn't work.

The main point is how it is working with JDK 1.6.0.02 and not with 1.6.0.04? And the problem is only with one .sl file?
Dennis Handly
Acclaimed Contributor

Re: libjsig.sl (JDK 1.6.0.04) causes code to crash.

>The main point is how it is working with JDK 1.6.0.02 and not with 1.6.0.04?

If you have problems with java, you should be contacting the Response Center.