From owner-freebsd-current Sat Dec 13 05:05:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA21993 for current-outgoing; Sat, 13 Dec 1997 05:05:16 -0800 (PST) (envelope-from owner-freebsd-current) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA21965 for ; Sat, 13 Dec 1997 05:04:52 -0800 (PST) (envelope-from pb@fasterix.frmug.org) Received: (from uucp@localhost) by frmug.org (8.8.8/frmug-2.1/nospam) with UUCP id OAA28527 for freebsd-current@freebsd.org; Sat, 13 Dec 1997 14:04:24 +0100 (CET) (envelope-from pb@fasterix.frmug.org) Received: (from pb@localhost) by fasterix.frmug.org (8.8.8/8.8.5/pb-19970302) id OAA02438; Sat, 13 Dec 1997 14:04:07 +0100 (CET) Message-ID: <19971213140407.LZ64565@@> Date: Sat, 13 Dec 1997 14:04:07 +0100 From: pb@fasterix.freenix.org (Pierre Beyssac) To: freebsd-current@freebsd.org Subject: panics when stopping pppd X-Mailer: Mutt 0.59.1e Mime-Version: 1.0 Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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