Date: Sun, 07 Jun 1998 12:33:08 +0100 From: Brian Somers <brian@Awfulhak.org> To: dag-erli@ifi.uio.no (Dag-Erling Coidan Sm rgrav ) Cc: current@FreeBSD.ORG Subject: Re: Strange ppp behaviour Message-ID: <199806071133.MAA02754@awfulhak.org> In-Reply-To: Your message of "04 Jun 1998 23:36:09 %2B0200." <xzpiumg97ee.fsf@hrotti.ifi.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
[.....]
> I have had strange problems with ppp (segmenation faults, to be
> precise). I checked out an older version (31/05/1998) which exhibited
> the same symptoms: ppp <label> dials, then segfaults as it changes
> from dialing mode to login mode. The problems disappeared when I
> rewrote my ppp.conf file.
[.....]
> #0 0x7255 in chat_UpdateSet (d=0x4a01c, r=0xefbfdb48, w=0xefbfdac8,
> e=0xefbfda48, n=0xefbfda44) at /usr/src/usr.sbin/ppp/chat.c:207
> 207 needcr = c->state == CHAT_SEND && *c->argptr != '!';
[.....]
Is c->argptr == NULL ? From the code before this line, I can't see
how it can be, but from that line, it's the only thing that would
cause a dump (given that `c' is dereferenced in the code above it).
> The contents of ppp.conf and ppp.linkup follow (yes, I know ppp.conf
> is slightly bogus, but it worked fine on 2.2.6 and on 3.0-SNAP from
> 1998-02-22):
>
> (ppp.conf)
> default:
> set device /dev/cuaa0
> set speed 115200
> set ctsrts on
> disable lqr
> deny lqr
> set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATZ OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
> alias enable yes
> usit:
> allow users finrod dagsm
> set phone 22596790
> accept pap
> set authname undiclosed
> set authkey undisclosed
> set login "TIMEOUT 5 name:-\\r-name:"
> set timeout 600
> set openmode active
> dial
>
> (ppp.linkup)
> MYADDR:
> delete ALL
> add 0 0 HISADDR
>
> I rewrote ppp.conf from scratch (or rather, from a recent version of
> ppp.conf.sample):
>
> default:
> allow user finrod
> alias enable yes
> set log Phase Chat Connect Carrier LCP IPCP CCP tun command
> set device /dev/cuaa0
> set speed 115200
> set ctsrts on
> deny lqr
> set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
>
> usit:
> set phone 22596790
> accept pap
> set login
> set authname undisclosed
> set authkey undisclosed
> set timeout 120
> set ifaddr 0 0
> dial
And if you add the old ``set login'' line, does it die again ?
> --
> Noone else has a .sig like this one.
Cheers.
--
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
<http://www.Awfulhak.org>
Don't _EVER_ lose your sense of humour....
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806071133.MAA02754>
