HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Question about LD_PRELOAD
Operating System - HP-UX
1830749
Members
2009
Online
110015
Solutions
Forums
Categories
Company
Local Language
back
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
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
01-02-2003 07:17 AM
01-02-2003 07:17 AM
Question about LD_PRELOAD
The man page for dld.so contains the following note:
Note: Using LD_PRELOAD can cause a core dump when used with applications which mix shared and archived libraries, especially when both the shared library and the application are built with aC++ or use libc.
Can someone provide more insight in this? Or an example of such behavior? Even a piece of C source code that explains the problem is ok.
Thanks,
Bernardo.
Note: Using LD_PRELOAD can cause a core dump when used with applications which mix shared and archived libraries, especially when both the shared library and the application are built with aC++ or use libc.
Can someone provide more insight in this? Or an example of such behavior? Even a piece of C source code that explains the problem is ok.
Thanks,
Bernardo.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2003 04:17 AM
01-03-2003 04:17 AM
Re: Question about LD_PRELOAD
I suppose this situation would occur if your application was linked with an archive version of libc (for example), and you used LD_PRELOAD to load a library that was linked with the shared libc.sl. Some calls to libc functions would be resolved from the archive version, and others from the shared version. This is obviously an unsupported situation, worse if the libc.a you're linked with is a different rev to the libc.sl currently on your system.
There's a good discussion about the problems with mixing archived and shared libraries in the linker and libraries guide:
http://www.docs.hp.com/hpux/onlinedocs/B2355-90655/B2355-90655.html
See the section in the "Creating and using libraries" chapter.
Regards,
Steve
There's a good discussion about the problems with mixing archived and shared libraries in the linker and libraries guide:
http://www.docs.hp.com/hpux/onlinedocs/B2355-90655/B2355-90655.html
See the section in the "Creating and using libraries" chapter.
Regards,
Steve
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP