- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: -lnsl static on hpux11 cause a core dump
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
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
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
03-09-2004 03:40 AM
03-09-2004 03:40 AM
-lnsl static on hpux11 cause a core dump
When using gethostbyname() on HP-UX 11 within a statically linked application (or dynamically with dld only) the program cores.
However, compiling with nsl linked dynamically, the program works fine. Unfortunately, this doesn't seem to be an option as static linking is required as much as possible (for various reasons that I won't enumerate here)
So my question:
- Why static linking causes a core?
- Why does this used to work with hpux 10.20?
- How can I avoid this w/out using dynamic linking on hpux11?
- And finally, if this is unavoidable, could someone point me to some documenation that clearly explain why so I can report this?
Thanks in advance for your help,
Best regards,
Olivier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 03:46 AM
03-09-2004 03:46 AM
Re: -lnsl static on hpux11 cause a core dump
In the script, add this code:
pid=$$
TF="${TRACE_FILE}.${pid}.dat"
export TF
/usr/contrib/bin/tusc -o $TF -f -p $pid &
This will initiate a tusc trace including forks on the process. Find out why you are getting a core. Maybe it has nothing to do with the OS upgrade.
OS's change, there are valid reasons for that.
Here is a link for tusc:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.5/
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 04:01 AM
03-09-2004 04:01 AM
Re: -lnsl static on hpux11 cause a core dump
Thx for your reply. Actually, the problem seems to be known (by looking at various forum archives), but I couldn't find the fix or an explanation of why dynamic linking of nsl is required on hpux11.
As for the cause, it occurs in the nsl library as shown by the debugger.
I attach a very simple test program that exhibits the described behavour.
Cheers,
Olivier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 11:14 PM
03-09-2004 11:14 PM
Re: -lnsl static on hpux11 cause a core dump
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 11:18 PM
03-09-2004 11:18 PM
Re: -lnsl static on hpux11 cause a core dump
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 11:38 PM
03-09-2004 11:38 PM
Re: -lnsl static on hpux11 cause a core dump
Sorry, I didn't mention, I'm running 11.11.
Looks like the patch equivalent for 11.11 is PHNE_29211, most recent being PHNE_29783.
I'll give that a try :) If it fixes the issue, I'll definitely post the result on this thread.
Thanks,
Olivier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 05:54 AM
03-10-2004 05:54 AM
Re: -lnsl static on hpux11 cause a core dump
At time has passed, and as time continues to pass, the ability to link applications staticly will diminish.
It would be good to start taking a closer look at the unenumerated reasons and see if something can be done about them.