From owner-freebsd-bugs Mon Aug 26 5:10:31 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33A0237B400 for ; Mon, 26 Aug 2002 05:10:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25D3243E81 for ; Mon, 26 Aug 2002 05:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7QCA1JU022551 for ; Mon, 26 Aug 2002 05:10:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7QCA1Qh022550; Mon, 26 Aug 2002 05:10:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D37D137B400 for ; Mon, 26 Aug 2002 05:06:24 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C37743E42 for ; Mon, 26 Aug 2002 05:06:24 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g7QC6OOT077792 for ; Mon, 26 Aug 2002 05:06:24 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g7QC6Nh8077791; Mon, 26 Aug 2002 05:06:24 -0700 (PDT) Message-Id: <200208261206.g7QC6Nh8077791@www.freebsd.org> Date: Mon, 26 Aug 2002 05:06:24 -0700 (PDT) From: "Paweł Małachowski" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/42030: panic when zebra works on detaching tun interface Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 42030 >Category: kern >Synopsis: panic when zebra works on detaching tun interface >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 26 05:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Paweł Małachowski >Release: 4.6.2-RELEASE >Organization: ZiN >Environment: FreeBSD gargantua.zin.git 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #2: Sun Aug 25 17:03:15 CEST 2002 root@gargantua.zin.git:/usr/src/sys/compile/PM-UX-AUTO i386 >Description: System acts as a Zebra-based (net/zebra) OSPF router. Tun interfaces are used with vtund (net/vtun) as virtual, compressed connections to other machines outside LAN. When the vtund disconnects tunnel, *sometimes* the kernel panic occurs. It happens a couple of times per day. When Zebra is not running, there is no problem. The other side of tunnel (FreeBSD 4.6-STABLE) is not running Zebra yet so I don't know are others affected or not. Kernel sources are up to date. Kernel config is a GENERIC with additional options as shown here: pseudo-device ccd 4 device apm0 # GENERIC apm0 with flags declaration is comment-out pseudo-device speaker pseudo-device snp 3 options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_FORWARD options IPFIREWALL_VERBOSE_LIMIT=100 options IPFIREWALL_DEFAULT_TO_ACCEPT options IPFILTER options IPFILTER_LOG options IPFILTER_DEFAULT_BLOCK options QUOTA options DUMMYNET options SHMMAXPGS=65536 options SEMMNI=40 options SEMMNS=240 options SEMUME=40 options SEMMNU=120 The example vtund.conf section is: foo-blah { pass xxx; device tun10; up { ifconfig "%% 10.61.7.254 10.61.7.253 netmask 255.255.255.255"; }; down { ifconfig "%% delete 10.61.7.254"; }; } Debug output: # ./gdbmods /sys/compile/PM-UX-AUTO/kernel.debug vmcore.0 please be patient while loaded modules are resolved gdbmods using kernel: /sys/compile/PM-UX-AUTO/kernel.debug gdbmods using core: vmcore.0 GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... IdlePTD at phsyical address 0x0050e000 initial pcb at physical address 0x0044aec0 panicstr: page fault panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0x4 fault code = supervisor read, page not present instruction pointer = 0x8:0xc0249809 stack pointer = 0x10:0xcdf81d1c frame pointer = 0x10:0xcdf81d28 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 342 (zebra) interrupt mask = trap number = 12 panic: page fault syncing disks... 16 10 5 done Uptime: 13m14s // snipped some messages when I've turned on debugging and added dumpdev and rebooted again Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.6.2-RELEASE #2: Sun Aug 25 17:03:15 CEST 2002 root@gargantua.zin.git:/usr/src/sys/compile/PM-UX-AUTO Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (952.17-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x68a Stepping = 10 Features=0x383f9ff real memory = 268353536 (262064K bytes) config> di sn0 config> di lnc0 config> di ie0 config> di fe0 config> di ed0 config> di cs0 config> di bt0 config> di aic0 config> di aha0 config> di adv0 config> q avail memory = 256073728 (250072K bytes) Preloaded elf kernel "kernel" at 0xc04ef000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc04ef09c. ccd0-3: Concatenated disk drivers Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 9 entries at 0xc00f12d0 apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib2: at device 1.0 on pci0 pci1: on pcib2 pci1: at 0.0 isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xd800-0xd80f at device 4.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd400-0xd41f irq 11 at device 4.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd000-0xd01f irq 11 at device 4.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pci0: (vendor=0x1106, dev=0x3057) at 4.4 rl0: port 0xb800-0xb8ff mem 0xf7800000-0xf78000ff irq 10 at device 7.0 on pci0 rl0: Ethernet address: 00:02:44:23:82:c4 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xb400-0xb47f mem 0xf7000000-0xf700007f irq 11 at device 10.0 on pci0 xl0: Ethernet address: 00:a0:24:aa:1b:95 miibus1: on xl0 xlphy0: <3Com internal media interface> on miibus1 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl1: <3Com 3c905B-TX Fast Etherlink XL> port 0xb000-0xb07f mem 0xf6800000-0xf680007f irq 10 at device 11.0 on pci0 xl1: Ethernet address: 00:10:5a:f0:96:77 miibus2: on xl1 xlphy1: <3Com internal media interface> on miibus2 xlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcib1: on motherboard pci2: on pcib1 orm0: