Operating System - HP-UX
1753798 Members
8031 Online
108805 Solutions
New Discussion юеВ

Re: LD_PRELOAD seems to cause trouble

 
SOLVED
Go to solution
Pankaj Agrawal
Occasional Advisor

LD_PRELOAD seems to cause trouble

Hi,

I am observing a very strange error on my HP-UX 11.11 box.

I need to set LD_PRELOAD to the path to libjvm.sl. Doing this as shown below and then executing "ls" command throws errors

# export LD_PRELOAD=::/lod/CAWilySiteMinderManager/jre/lib/PA_RISC2.0/server/libjvm.sl
# ls
/usr/lib/dld.sl: Unresolved symbol: __text_start (data) from /lod/CAWilySiteMinderManager/jre/lib/PA_RISC2.0/server/libjvm.sl
/usr/lib/dld.sl: Unresolved module for symbol: __shlinit (code) from /usr/lib/libCsup.2
Abort(coredump)

Any idea? I have applied the latest "ld(1) and linker tools cumulative patch" i.e. PHSS_35383
4 REPLIES 4
Pankaj Agrawal
Occasional Advisor

Re: LD_PRELOAD seems to cause trouble

An update:

If I set LD_PRELOAD to the path to libjvm.sl and invoke the application, it works ok.

/>export LD_PRELOAD=;application.exe

However, if I do the above in two steps it fails:

/>export LD_PRELOAD=
/>application.exe

Any idea?
Dennis Handly
Acclaimed Contributor
Solution

Re: LD_PRELOAD seems to cause trouble

You never ever want to export LD_PRELOAD. This causes executables (ls) that just won't work to be run with this.

The proper way is to only change the environment for just the one command. Use:
$ LD_PRELOAD=... application.exe ...
Pankaj Agrawal
Occasional Advisor

Re: LD_PRELOAD seems to cause trouble

Thanks for your suggestion. It was bang on target !!!

Pankaj
Pankaj Agrawal
Occasional Advisor

Re: LD_PRELOAD seems to cause trouble

Dannis suggestion worked