Operating System - HP-UX
1833053 Members
2875 Online
110049 Solutions
New Discussion

LSOF - when executing get core memory dump

 
SOLVED
Go to solution
Alex Grigore
Advisor

LSOF - when executing get core memory dump

Hi guys,

I work on a HP-UX B.11.11 RP server, 64bits.
In order to verify which applications open which ports, i installed LSOF from http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/lsof-4.75/.

First, I installed version 4.76 - with interactive swinstall. Everything goes nice and smooth, but when i do
#lsof
I get "Memory fault(coredump)"
and a coredump file
-rw------- 1 root sys 886348 Oct 19 17:50 core

Uninstalled version 4.76 and installed version 4.75. The same memory dump occured when trying to call lsof.

Is there something I am missing?

Thanks and regards,
Alex.
9 REPLIES 9
Kent Ostby
Honored Contributor

Re: LSOF - when executing get core memory dump

do 'file core'

What signal are we catching.

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Alex Grigore
Advisor

Re: LSOF - when executing get core memory dump

# file core
core: core file from 'lsof' - received SIGSEGV


Alex Lavrov.
Honored Contributor
Solution

Re: LSOF - when executing get core memory dump

You downloaded 32bit version of lsfo and you try to run it on 64bit OS.


Download it from here:
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/B.11.11/

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Alex Grigore
Advisor

Re: LSOF - when executing get core memory dump

I tried to install but it seems that there is smth. wrong w/ the file.


# tail /var/adm/sw/swagentd.log
* Started source agent on "/d1/lsof_4.76" for root@server,
pid=14928, 10/19/05 18:24:13 EETDST
ERROR: tar: /d1/lsof_4.76 : This doesn't look like a tar archive
ERROR: tar: /d1/lsof_4.76 : Skipping to next file...
ERROR: The INDEX file on the source did not exist or could not be
read.
ERROR: The target "/d1/lsof_4.76" could not be opened. pid=14928
10/19/05 18:24:14 EETDST
* Agent pid=14928 completed. 10/19/05 18:24:14 EETDST
* Agent pid=14925 completed. 10/19/05 18:24:14 EETDST
Alex Lavrov.
Honored Contributor

Re: LSOF - when executing get core memory dump

No no, it's not a depot file, it's a binary.

Just rename it to "lsof"
No installation required.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Marco Santerre
Honored Contributor

Re: LSOF - when executing get core memory dump

I'm getting the same thing.. but it seems that lsof alone with no options is giving me this issue.. anytime I use lsof with any options like -v or -? gives me the proper response without a core
Cooperation is doing with a smile what you have to do anyhow.
Alex Lavrov.
Honored Contributor

Re: LSOF - when executing get core memory dump

Marco, it's because with "-v" option no actuall work is done there, only print out to the screen.

When it tries to analyzy the system, than you get the core, because all the memrory addressing is wrong, since it's 32bit binary.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Alex Grigore
Advisor

Re: LSOF - when executing get core memory dump

Thank you Alex, Marco, Kent.

It works now - i renamed the file to lsof, make it an executable and i am able to get the needed info.


Regards,
Alex.
Eric Raeburn
Trusted Contributor

Re: LSOF - when executing get core memory dump

FWIW, I had a similar problem, so I downloaded the source and compiled it. Problem gone.

-Eric