Operating System - HP-UX
1847005 Members
3733 Online
110257 Solutions
New Discussion

libdld.2 causes core dump on HP11.0

 
Zoya Fuller
New Member

libdld.2 causes core dump on HP11.0

I have two systems with HPUX 11.0 which have successful compiled a set of C programs. On one machine the program runs fine on the other the machine core dumps with with libdld.2. What can I do to get the program running on this machine. I noticed that the machine that core dumps has an older library version libdld.2 dated Nov 7 1997 and the machine that works has a newer one Sept 24.
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: libdld.2 causes core dump on HP11.0

It looks like you can install patch PHSS_26262
although it you have a library that old you probably are bably in need of a General Release patchset.
If it ain't broke, I can fix that.
Zoya Fuller
New Member

Re: libdld.2 causes core dump on HP11.0

Thanks. The patch has been added but unfortunately it didn't fix the problem.
A. Clay Stephenson
Acclaimed Contributor

Re: libdld.2 causes core dump on HP11.0

First, just because the 'program runs fine' on one machine, that is no guarantee that your code is error-free. At this point, if the libraries are identical, I would compile with -g and no optimization and then let the code explode. It's then time to do a stack trace with the debugger.
If it ain't broke, I can fix that.
Zoya Fuller
New Member

Re: libdld.2 causes core dump on HP11.0

I have done a stack trace with the core file.

Program received SIGSEGV, Segmentation fault.
0x7aefcd48 in ?? () from /usr/lib/libdld.2.

libdld.2 is at the top of stack, below are other libs.

I also tried compiling with static libraries, but not all calls were available in the static libraries and I wasn't able to successfully compile.

This application runs on multiple UNIX platforms. Previously the HP build was on HPUX 10.20 and compiles and runs. I'm now building on HPUX 11.0 to test application support for NIS+ on HP (already supported for Solaris).

I realize the issue may involve more than the libdld.2 library.

Thanks again for you assistance