*BSD News Article 56127


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!yarrina.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!gatech2!swrinde!sdd.hp.com!news1.best.com!shellx.best.com!shellx.best.com!not-for-mail
From: paigen@shellx.best.com (David Paigen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: why is my ppp getting wedged?
Date: 29 Nov 1995 17:06:27 -0800
Organization: Forte Computer Systems, Brisbane CA
Lines: 70
Message-ID: <49j02j$c4f@shellx.best.com>
NNTP-Posting-Host: shellx.best.com
X-Newsreader: NN version 6.5.0 #6 (NOV)

Last week I upgraded my motherboard from a 386 to a P75.  While
nearly everything is working fine, I am getting some strange
errors from ppp.

In short, the damn thinks hangs every morning when it tries to make
the 09:30 mail&news fetch.  This has been very consistant for at
least four days now.  Sometimes it is sufficent to kill ppp and start
a new one, sometimes I have to reboot the machine to get rid of the
old ppp.

Attached below are stack traces (courtasy gdb) of three instances where
ppp got stuck.  These do not look like valid stack traces to me, is
there a pointer bug?  Anyone who has any info for me, or fixes, is
entitled to lots of thank-yous and a pint of beer.  I am at my wits
end on this one, and my wife is threatening to leave me over it :-)
(the joys of the computer age, it used to be about taking the garbage
out, now I have to guarentee newsflow as well)

By the way, has anyone tried running ppp from init?

===== example 1 =====
(gdb) attach 24238
Attaching to program `/usr/src/usr.sbin/ppp/ppp', process 24238
0x802ca75 in end ()
(gdb) where
#0  0x802ca75 in end ()
#1  0xa9e5 in LcpDecodeConfig (cp=0xefbfdaa4 "\f\333\277\357\020\333\277\357\026\333\277\357", 
    plen=-272639328, mode=0) at lcp.c:458
#2  0xa38d in LcpSendConfigReq (fp=0x3) at lcp.c:265

(*NB: I replaced the contents of cp with an ascii representation)
===== example 2 =====
Attaching to program `/usr/src/usr.sbin/ppp/ppp', process 8395
0x802c5d5 in end ()
(gdb) where
#0  0x802c5d5 in end ()
#1  0x8043052 in end ()
#2  0xc0ad in TtyTermMode () at main.c:127
#3  0xc196 in Hangup () at main.c:165
#4  0xcd2f in HdlcDetect (
    cp=0x1 <Error reading address 0x1: Invalid argument>, n=3) at main.c:518
#5  0x865f in FilterCheck (pip=0x15050, direction=86096) at ip.c:154
#6  0x582e in ParseUdp (argc=86096, argv=0xa) at filter.c:184
#7  0xe83a in Encode (
    output=0xe <Error reading address 0xe: Invalid argument>, input=0x0, 
    len=4022325692) at md5c.c:292
#8  0xefbfe13c in end ()
#9  0xa38d in LcpSendConfigReq (fp=0x3) at lcp.c:265

===== example 3 =====
Attaching to program `/usr/src/usr.sbin/ppp/ppp', process 13700
0x802c5d5 in end ()
(gdb) where
#0  0x802c5d5 in end ()
#1  0x8043052 in end ()
#2  0xc0ad in TtyTermMode () at main.c:127
#3  0xc196 in Hangup () at main.c:165
#4  0xcd2f in HdlcDetect (
    cp=0x1 <Error reading address 0x1: Invalid argument>, n=3) at main.c:518
#5  0x865f in FilterCheck (pip=0x15050, direction=86096) at ip.c:154
#6  0x582e in ParseUdp (argc=86096, argv=0x8) at filter.c:184
#7  0xe83a in Encode (
    output=0xe <Error reading address 0xe: Invalid argument>, input=0x0, 
    len=4022325684) at md5c.c:292
#8  0xefbfe13c in end ()
#9  0xa38d in LcpSendConfigReq (fp=0x3) at lcp.c:265
-- 
David Paigen       paigen@{best.com,forte.org}   Will answer stupid user
aka Sir Henry Lee     C, unix, X, news, and        questions for beer. 
Queen's Champion       distributed systems	       (good beer)