- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LD_PRELOAD affect on JVM running pure java code
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2003 07:31 AM
тАО12-30-2003 07:31 AM
LD_PRELOAD affect on JVM running pure java code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2003 10:31 PM
тАО12-30-2003 10:31 PM
Re: LD_PRELOAD affect on JVM running pure java code
the patch mentioned is the linker / loader patch that supports LD_PRELOAD functionality (which i guess you already have). the latest linker/loader patches are PHSS_28869 for 11.00 and PHSS_28871 for 11.11.
----
The user might be facing a scenario as below :-
1.4 has a new feature for chaining an application's signal handlers behind the JVM's signal handlers. With signal chaining functionality, applications can now use signals that the JVM uses and not interfere with the JVM's functionality. To obtain this functionality, you need to install a patch (described below).
For signal chaining functionality, the application must load the library libjsig.sl before libc.2. libjsig.sl takes care of signal chaining when the application's signal handlers are installed before or after the VM's handlers get installed. libjsig.sl is not needed when the application installs the handlers before the JVM installs its handlers. There are two cases to consider.
1. Native application creates a JVM:
The application can either link in libjsig.sl and ensure that libjsig.sl gets loaded before libc.2 by linking them in the right order or use the LD_PRELOAD functionality provided by the linker to load libjsig.sl first.
2. Normal JAVA application invoked from the command line:
LD_PRELOAD must be used in this case. Linking the native libraries with libjsig will not work because the JVM will load libc.2 before the application's shared libraries get loaded.
For example, to use the LD_PRELOAD environment variable:
export LD_PRELOAD=/libjsig.sl; java_application (k sh)
setenv LD_PRELOAD=/libjsig.sl; java_application (c sh)
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2003 12:35 AM
тАО12-31-2003 12:35 AM
Re: LD_PRELOAD affect on JVM running pure java code
I am actually fairly surprised that I needed to set this flag just to run pure java code. I did not think that signals could be handled in java code and thought that the release note only applied to applications that utilized some native code.
Any idead what methods cannot be called safely without setting LD_PRELOAD?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-01-2004 11:34 PM
тАО01-01-2004 11:34 PM
Re: LD_PRELOAD affect on JVM running pure java code
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2004 12:50 AM
тАО01-02-2004 12:50 AM
Re: LD_PRELOAD affect on JVM running pure java code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 02:25 AM
тАО01-05-2004 02:25 AM
Re: LD_PRELOAD affect on JVM running pure java code
--
ranga