Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 1996 21:32:15 -0700 (MST)
From:      Marc Slemko <marcs@znep.com>
To:        Jake Hamby <jehamby@lightside.com>
Cc:        hackers@freebsd.org
Subject:   Re: How do I diagnose user-mode PPP coredumps?
Message-ID:  <Pine.BSF.3.95.961208212440.3105F-100000@alive.ampr.ab.ca>
In-Reply-To: <Pine.BSF.3.95.961208133801.447A-100000@hamby1>

next in thread | previous in thread | raw e-mail | index | archive | help
While I can't comment on the problem, one possible reason why it doesn't
core dump is that it is running setuid.  

ppp installs its own signal handler for various signals, including SEGV. 
What it does is clean things up, then (in the case of sig 11) call
abort(3).  abort would dump core, except for the fact that the program is
setuid.  You should (or might;  you can on 2.1.5, there have been some
changes made in that are in -current, but I don't _think_ this should be
one) be able to get around this by running ppp as root.

As to the reason why it doesn't exit by itself, it is probably getting
hung up somewhere in the signal handler trying to close the line and
terminate the connection; if you wait long enough, it may sort itself out. 

On Sun, 8 Dec 1996, Jake Hamby wrote:

> I use the user-mode PPP daemon extensively on my FreeBSD-current box, and
> often, after a number of HDLC errors, it will coredump.  The ppp.log looks
> like: 
> 
> 12-08 13:30:21 [143] HDLC errors -> FCS: 5 ADDR: 0 COMD: 0 PROTO: 0
> 12-08 13:31:21 [143] HDLC errors -> FCS: 1 ADDR: 0 COMD: 0 PROTO: 0
> 12-08 13:32:21 [143] HDLC errors -> FCS: 4 ADDR: 0 COMD: 0 PROTO: 0
> 12-08 13:33:21 [143] HDLC errors -> FCS: 1 ADDR: 0 COMD: 0 PROTO: 0
> 12-08 13:35:21 [143] HDLC errors -> FCS: 1 ADDR: 0 COMD: 0 PROTO: 0
> 12-08 13:36:21 [143] HDLC errors -> FCS: 1 ADDR: 0 COMD: 0 PROTO: 0
> 12-08 13:36:21 [143] Signal 11, core dump.
> 
> The weird thing is that process 143 is still alive, and I must manually
> "kill -9" it, in order for the phone line to hang up.  The other problem
> is that I don't get a core file anywhere, because it seems to be trapping
> the SIGSEGV.  Does anyone else have this problem?  What steps should I
> follow to start tracing it?  I don't know why I'm getting the HDLC errors
> in the first place, but I have seen CRC errors using PPP with other OS's,
> so it's possible there's a dirty connection on my ISP's end, or on mine.
> Any help will be greatly appreciated, and I will post a send-pr when I've
> found the culprit.
> 
> -- Jake
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.961208212440.3105F-100000>