Operating System - HP-UX
1835296 Members
3238 Online
110078 Solutions
New Discussion

swlist + "Memory fault(coredump)"

 
Stephen Wallace
Occasional Advisor

swlist + "Memory fault(coredump)"

Hi,

I have HP-UX 11.11 running on an rp3440 server.
I recently installed expect-5.43 and tcltk-8.4.9, both downloaded as gzipped binary depots from the Software Porting and Archive Centre for HP-UX.
I later found that both sam and swlist returned errors and would not function:

[root@server] >swlist
Memory fault(coredump)

[root@server] >sam
/usr/lib/dld.sl: Unresolved symbol: ui_heartbeat (code) from /usr/sam/lib/libsam.sl
/usr/lib/dld.sl: Unresolved symbol: my_name (storage) from samx
/usr/sbin/sam[220]: 15312 Abort(coredump)


After a lot of searching and irrelevant changes to maxdsiz and maxdsiz_64bit kernel parameters, I found that the culprit was the /usr/obam/lib/libobam.1 shared library.
I copied across a version of this shared library from an identical server (with the correct size and cksum info) and found that sam and swlist worked again. However, expect now coredumped:

# /usr/local/bin/expect -v
/usr/lib/dld.sl: Unresolved symbol: Tcl_Release (plabel) from /usr/local/lib/libexpect.sl
/usr/lib/dld.sl: Unresolved symbol: Tcl_ErrnoMsg (plabel) from /usr/local/lib/libexpect.sl
Abort(coredump)

My question is: what do I need to do to get both sam and expect to work?
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: swlist + "Memory fault(coredump)"

1) It is normally not good practice to move system shared libraries from one box to another because you can get the sw database in a very confused state. Of course, if the swxxxx utilities are dead, you can't easily run swxxxxx.

2) The problems may be totally unrelated. Do an ldd /usr/local/bin/expect to identify the missing libraries.
If it ain't broke, I can fix that.
Stephen Wallace
Occasional Advisor

Re: swlist + "Memory fault(coredump)"

The problem was down to the tcltk installation.
Re-installed tcltk and expect worked fine.