Operating System - HP-UX
1834022 Members
2578 Online
110063 Solutions
New Discussion

core file created on starting sshd

 
Tang Poh Leong
New Member

core file created on starting sshd

I am using openssh-3.1p1. Run ./opt/openssh2/sbin/sshd&
The ssh daemon ran successfully but a core file is also created. Meanwhile, the ssh daemon seemed to be working OK.

Anyone got any idea what is wrong ?
7 REPLIES 7
U.SivaKumar_2
Honored Contributor

Re: core file created on starting sshd

hi,
Try running sshd in foreground and look for any errors reported.
#./opt/openssh2/sbin/sshd

regards,
U.SivaKumar
Innovations are made when conventions are broken
Tang Poh Leong
New Member

Re: core file created on starting sshd

I ran sshd on foreground. No errors appear. Core file is still created whenever I start sshd.
Steve Steel
Honored Contributor

Re: core file created on starting sshd

Hi

maybe it is something sshd calls.

do
file core

show us the output


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Tang Poh Leong
New Member

Re: core file created on starting sshd

Below is the output:

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

Steven Sim Kok Leong
Honored Contributor

Re: core file created on starting sshd

Hi,

What is the timestamp of the generated core (same time as sshd daemon startup)? Did sshd wrote any error messages into syslog?

Hope this helps. Regards.

Steven Sim Kok Leong
Bill McNAMARA_1
Honored Contributor

Re: core file created on starting sshd

Where did you get it from?
The hpux porting archive:
http://hpux.cs.utah.edu/ ?

Later,
Bill
It works for me (tm)
Tang Poh Leong
New Member

Re: core file created on starting sshd

Hi,

I found the reason behind the core file. It is not caused by sshd. The acct facility was trying to write the login session into the wtmp file. The file was corrupted => memory core dump when "last" tries to access it.

I recreate the wtmp file and everything was OK. No more core file when sshd was started up.

Thanks to all who replied.