1835191 Members
2238 Online
110077 Solutions
New Discussion

bad magic

 
Randy_9
Regular Advisor

bad magic

launching SAM results in core dump:
/usr/sbin/sam[221]: 1618 Memory fault(coredump)

Trying to launch glance:
# glance
/usr/lib/dld.sl: Bad magic number for shared library: /opt/perf/lib/libxcurses.1
/usr/lib/dld.sl: Exec format error
Abort(coredump)

I brought the system up into single user mode
and "fsck" all the f/s's, yet is still bombs out. O/S level is 10.20. Any suggestions besides reload?

Thanks,

Randy
5 REPLIES 5
PIYUSH D. PATEL
Honored Contributor

Re: bad magic

Hi,

I think that your root harddisk has developed bad sectors.

Pls run this command and check :

dd if=/dev/rdsk/c1t0d0 of=/dev/null bs=512k

if inputs=output then no problems. Or else your disk has gone bad. Be prepared for changing it and reloading the OS. ....backup time

Piyush

Sanjay_6
Honored Contributor

Re: bad magic

Hi Randy,

Try this,

ll -d /lib

Make sure /lib is linked to /usr/lib, if not

cd /
ln -s /usr/lib lib

Also take a look at this thread,

http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000047257300

Hope this helps.

Regds
Helen French
Honored Contributor

Re: bad magic

This document (TKB# TFKBRC00004811) may be helpful:

http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000058669668

Life is a promise, fulfill it!
James R. Ferguson
Acclaimed Contributor

Re: bad magic

Hi Randy:

See if you have 'opt/perf/lib/libxcurses.1'. If so, it's permissions should look like:

-r-xr-xr-x 1 root bin 409600 Mar 16 1999 /opt/perf/lib/libxcurs
es.1

Do a:

# file /opt/perf/lib/libxcurses.1

...See if this returns:

/opt/perf/lib/libxcurses.1: s800 shared library -not stripped

Regards!

...JRF...
Randy_9
Regular Advisor

Re: bad magic

I did end up updating the LIBC Cumulative patch, but I'm still having the same problems.

James:
The file libxcurses.1 returns:

# file libx*
libxcurses.1: awk program text

Instead of "shared executable".

When I installed the patch I got the following
error messages: (see attached file)

But.....

The patch did install... but I still get the
core dump using SAM and errors similar to those
during the patch install when I do a "swlist".
##############################
WARNING: Ignoring duplicate definition for the keyword "vendor" at line
40795.
WARNING: Incomplete definition for the product "PHNE_20834", beginning
at line 40814. The following attributes are not defined:
filesets the filesets contained in the product
PHSS_21951 B.10.00.00.AA LIBCL cumulative patch
#

Still working on it...
thanks everyone so far!

Randy