From owner-freebsd-current Sat Dec 13 07:26:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA28322 for current-outgoing; Sat, 13 Dec 1997 07:26:39 -0800 (PST) (envelope-from owner-freebsd-current) Received: from didda.est.is (ppp-21.est.is [194.144.208.121]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA28313 for ; Sat, 13 Dec 1997 07:26:25 -0800 (PST) (envelope-from totii@est.is) Received: from est.is (didda.est.is [192.168.255.1]) by didda.est.is (8.8.7/8.8.7) with ESMTP id PAA00350; Sat, 13 Dec 1997 15:25:19 GMT (envelope-from totii@est.is) Message-ID: <3492A8DE.27B270DB@est.is> Date: Sat, 13 Dec 1997 15:25:18 +0000 From: "Þorður Ivarsson" X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: Pierre Beyssac CC: freebsd-current@FreeBSD.ORG Subject: Re: panics when stopping pppd References: <19971213140407.LZ64565@@> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Pierre Beyssac wrote: > > I have a problem when using -current /usr/sbin/pppd, which panics > the machine when pppd is killed at the end of the connection. It > doesn't happen quite every time I try: I once killed pppd just > after connecting and it didn't panic. It makes me think this might > have to do with dynamic routes (I'm running gated to announce the > route to my /28 subnet to the outside and receive several others > /28 routes). > > I have no idea if this bug is recent or not, this machine was a > FreeBSD 2.2.2 until yesterday. > > Here's the kernel stack trace (ctm patch 3166 or 3167). > > #3 0xf0190db4 in trap_pfault () > #4 0xf0190a1f in trap () > #5 0x6e655000 in ?? () > #6 0xf014dd3c in in_ifadownkill () > #7 0xf0147740 in rn_walktree () > #8 0xf014dd80 in in_ifadown () > #9 0xf015470b in rip_ctlinput () > #10 0xf0123c2d in pfctlinput () > #11 0xf013f3c9 in if_down () > #12 0xf013f716 in ifioctl () > #13 0xf011b39e in soo_ioctl () > #14 0xf0118d43 in ioctl () > #15 0xf01915b3 in syscall () > > The address in in_ifadownkill (0xf014dd3c) is the instruction just > after the call to rtroute, which seems to indicate that the real > culprit is rtroute: > > 0xf014dd35 : pushl $0x2 > 0xf014dd37 : call 0xf01482b0 > 0xf014dd3c : addl $0x18,%esp > 0xf014dd3f : testl %eax,%eax > > I'm trying to investigate some more. I'll keep the crash dump in > case anyone wants more details (registers or other). > > Here are the routes when I'm not connected: > > Destination Gateway Flags Refs Use Netif Expire > 127 127.0.0.1 URc 0 0 lo0 > 127.0.0.1 127.0.0.1 UH 10 135 lo0 > 193.56.58.96/28 link#1 UC 0 0 > > Just after I connected: > > Destination Gateway Flags Refs Use Netif Expire > default 193.56.58.33 UGSc 4 0 ppp0 > 127 127.0.0.1 URc 0 0 lo0 > 127.0.0.1 127.0.0.1 UH 10 136 lo0 > 193.56.58.33 193.56.58.97 UH 7 16 ppp0 > 193.56.58.96/28 link#1 UC 0 0 > > After gated receives the RIP announce for the other routes: > > Destination Gateway Flags Refs Use Netif Expire > default 193.56.58.33 UGSc 3 0 ppp0 > 127 127.0.0.1 URc 0 0 lo0 > 127.0.0.1 127.0.0.1 UH 10 137 lo0 > 193.56.58.32/28 193.56.58.33 UGc 0 0 ppp0 > 193.56.58.33 193.56.58.97 UH 11 16 ppp0 > 193.56.58.48/28 193.56.58.33 UGc 0 0 ppp0 > 193.56.58.96/28 link#1 UC 0 0 > 193.56.58.112/28 193.56.58.33 UGc 0 0 ppp0 > 193.56.58.240/28 193.56.58.33 UGc 1 0 ppp0 > -- > Pierre Beyssac pb@fasterix.frmug.org pb@fasterix.freenix.org > {Free,Net,Open}BSD, Linux : il y a moins bien, mais c'est plus cher > Free domains: http://www.eu.org/ or mail dns-manager@EU.org This might have been in some installation of 2.1.X also. I remember problem I did notice more than two years ago I think, FreeBSD rebooting in disconnection of pppd. -- Þórður Ívarsson Thordur Ivarsson Rafeindavirki Electronic technician Norðurgötu 30 Nordurgotu 30 Box 309 Box 309 602 Akureyri 602 Akureyri Ísland Iceland --------------------------------------------- FreeBSD has good features, Some others are full of unwanted features! ---------------------------------------------