Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

core dump with lsof

Status
Not open for further replies.

raylin

MIS
Jun 7, 2001
177
CH
I installed lsof (lsof-4.61-4) for AIX 5.3 from the AIX Linux toolbox.

It is ok on all my machines but only on one I get a core dump.

any idea ?
 
I tried it, an it also core dumps.
Compiled for AIX 5.1

This one works:

Erase the current one you have and untar the archive you download

"If you always do what you've always done, you will always be where you've always been."
 
Use dbx to diagnose the problem

dbs lsof core

CD to the dir containing the core file & use the full path of lsof

Once dbx has started type where

Reading the man pages for dbx may also help.

Also take a look at errpt -a|pg to see if there is any useful info.

I would suspect a missing library or library path missing or incorrectley defined.

Compair the output of env between the working and non-working servers, may not show anything up but compair prtcfg too.

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
mbsxsr12:/root>/usr/sbin/lsof +f -- /u06
lsof: WARNING: access /root/.lsof_mbsxsr12: No such file or directory
lsof: WARNING: created device cache file: /root/.lsof_mbsxsr12
Segmentation fault(coredump)


-rw-r--r-- 1 root system 3833702 May 12 13:01 core
-rw------- 1 root system 13551 May 12 13:01 .lsof_mbsxsr12
mbsxsr12:/root>dbx /usr/sbin/lsof core
Type 'help' for help.
Core file "core" program "lsof64" does not match current program (ignored)
warning: cannot execute /usr/sbin/lsof
dbx: fatal error: 1283-001 cannot read "/usr/sbin/lsof"


 
Are you running a 32 or 64 bit kernel?


"If you always do what you've always done, you will always be where you've always been."
 
64bit AIX Kernel : mbsxsr12:/root>bootinfo -K
64


I compared the env with the one of the machine on which the lsof is OK and I found no difference ...
 
Ok, I downloaded
ftp://aixpdslib.seas.ucla.edu/pub/lsof/RISC/5.3/exec/lsof.4.76.tar.Z
Installed on AIX 5.3.0.3 (64-bit kernel)
It copied lsof to /usr/local/bin and it works fine
/usr/local/bin/lsof: 64-bit XCOFF executable or object module not stripped

"If you always do what you've always done, you will always be where you've always been."
 

I get the core dump only on 1 LPAR
all LPAR have the same OS level and the same lsof level


mbsnim01:/export/lppsource/aixtoolbox/lsof>dsh oslevel -s
mbsxsr04m: 5300-04-00
mbsxsr05m: 5300-04-00
mbsxsr06m: 5300-04-00
mbsxsr07m: 5300-04-00
mbsxsr08m: 5300-04-00
mbsxsr09m: 5300-04-00
mbsxsr10m: 5300-04-00
mbsxsr11m: 5300-04-00
mbsxsr12m: 5300-04-00
mbsnim01:/export/lppsource/aixtoolbox/lsof>dsh rpm -qa|grep lsof
mbsxsr04m: lsof-4.61-4
mbsxsr05m: lsof-4.61-4
mbsxsr06m: lsof-4.61-4
mbsxsr07m: lsof-4.61-4
mbsxsr08m: lsof-4.61-4
mbsxsr09m: lsof-4.61-4
mbsxsr10m: lsof-4.61-4
mbsxsr11m: lsof-4.61-4
mbsxsr12m: lsof-4.61-4

 
I installed the tar version 4.76 of lsof from the Public Domain Software Library site on the only LPAR where the AIX Linux Toolbox rpm version 4.61 core dumps and this works fine ...
 
Perhaps on the one LPAR where it coredumps there is not enough memory and a buggy version of lsof mallocs some memory, goes ahead and uses it without checking the malloc result?


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top