From owner-freebsd-bugs Mon Aug 21 16:20:24 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5179737B618 for ; Mon, 21 Aug 2000 16:20:06 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA14026; Mon, 21 Aug 2000 16:20:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from genius.systems.pavilion.net (genesis.tao.org.uk [194.242.131.254]) by hub.freebsd.org (Postfix) with ESMTP id 471DE37B423 for ; Mon, 21 Aug 2000 16:13:06 -0700 (PDT) Received: by genius.systems.pavilion.net (Postfix, from userid 100) id E9A1A9B07; Tue, 22 Aug 2000 00:13:00 +0100 (BST) Message-Id: <20000821231300.E9A1A9B07@genius.systems.pavilion.net> Date: Tue, 22 Aug 2000 00:13:00 +0100 (BST) From: joe@pavilion.net Reply-To: joe@pavilion.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/20765: Crash in bdgtakeifaces when performing kldunload if_tap.ko Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 20765 >Category: kern >Synopsis: Crash in bdgtakeifaces when performing kldunload if_tap.ko >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 21 16:20:05 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Joe Karthauser >Release: FreeBSD 5.0-CURRENT i386 >Organization: FreeBSD >Environment: % dmesg Copyright (c) 1992-2000 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 5.0-CURRENT #106: Mon Aug 21 09:09:56 BST 2000 joe@genius.systems.pavilion.net:/usr/obj/usr/src/sys/GENIUS Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (397.90-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x66d Stepping = 13 Features=0x183f9ff real memory = 201261056 (196544K bytes) avail memory = 191975424 (187476K bytes) Preloaded elf kernel "kernel" at 0xc034c000. Pentium Pro MTRR support enabled md0: Malloc disk apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pci0: at 0.0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xfcd0-0xfcdf at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 7.2 irq 9 pci0: at 7.3 pci0: at 8.0 irq 9 pcm0: mem 0xfec00000-0xfecfffff,0xfe000000-0xfe3fffff irq 9 at device 8.1 on pci0 pci0: at 9.0 irq 9 pcic-pci0: at device 10.0 on pci0 pcic-pci1: at device 10.1 on pci0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> pcic0: at port 0x3e0 iomem 0xd0000 irq 10 on isa0 pcic0: management irq 10 pccard0: on pcic0 pccard1: on pcic0 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1: configured irq 3 not in bitmap of probed irqs 0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources BRIDGE 990810, have 7 interfaces pccard: card inserted, slot 1 ata1-slave: ata_command: timeout waiting for intr ata1-slave: identify failed ad0: 19077MB [38760/16/63] at ata0-master using UDMA33 acd0: DVD-ROM at ata1-master using UDMA33 Mounting root from ufs:/dev/ad0s2a WARNING: / was not properly dismounted xe0 at port 0x240-0x24f iomem 0xd0000-0xd0fff irq 3 slot 1 on pccard1 xe0: Xircom CE3, bonding version 0x45, 100Mbps capable xe0: DingoID = 0, RevisionID = 0, VendorID = 0 xe0: Ethernet address 00:80:c7:f5:24:e0 BRIDGE 990810, have 8 interfaces -- index 8 type 6 phy 0 addrl 6 addr 00.80.c7.f5.24.e0 /dev/vmmon: Module vmmon: registered with major=200 minor=0 tag=$Name: build-570 $ /dev/vmmon: Module vmmon: initialized BRIDGE 990810, have 9 interfaces -- index 8 xe0:1 type 6 phy 0 addrl 6 addr 00.80.c7.f5.24.e0 -- index 9 type 6 phy 0 addrl 6 addr 00.bd.90.62.00.01 BRIDGE 990810, have 9 interfaces -- index 8 xe0:1 type 6 phy 0 addrl 6 addr 00.80.c7.f5.24.e0 -- index 9 vmnet1:1 type 6 phy 0 addrl 6 addr 00.bd.90.62.00.01 xe0: promiscuous mode enabled >Description: My machine crashes when I: # kldunload if_tap.ko In normal practice this gets tickled when I try and suspend the machine. >How-To-Repeat: See above. >Fix: No fix. gdb -k: genius# gdb -k kernel.debug /var/crash/vmcore.3 GNU gdb 4.18 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 3530752 initial pcb at 2cc880 panicstr: from debugger panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0x34 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01ac9a7 stack pointer = 0x10:0xcc825e98 frame pointer = 0x10:0xcc825eb4 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 = 3169 (kldunload) interrupt mask = net panic: from debugger panic: from debugger Uptime: 2h44m31s /dev/vmmon: Module vmmon: unloaded dumping to dev #ad/0x30001, offset 630912 dump ata0: resetting devices .. done 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 --- #0 boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:303 303 dumppcb.pcb_cr3 = rcr3(); (kgdb) bt #0 boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:303 #1 0xc016f0f9 in panic (fmt=0xc02577d4 "from debugger") at /usr/src/sys/kern/kern_shutdown.c:553 #2 0xc0131121 in db_panic (addr=-1071986265, have_addr=0, count=-1, modif=0xcc825d04 "") at /usr/src/sys/ddb/db_command.c:433 #3 0xc01310c1 in db_command (last_cmdp=0xc0287ef0, cmd_table=0xc0287d50, aux_cmd_tablep=0xc02c691c) at /usr/src/sys/ddb/db_command.c:333 #4 0xc0131186 in db_command_loop () at /usr/src/sys/ddb/db_command.c:455 #5 0xc0133343 in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_trap.c:71 #6 0xc0233e62 in kdb_trap (type=12, code=0, regs=0xcc825e58) at /usr/src/sys/i386/i386/db_interface.c:158 #7 0xc023feac in trap_fatal (frame=0xcc825e58, eva=52) at /usr/src/sys/i386/i386/trap.c:946 #8 0xc023fb85 in trap_pfault (frame=0xcc825e58, usermode=0, eva=52) at /usr/src/sys/i386/i386/trap.c:844 #9 0xc023f6fb in trap (frame={tf_fs = 16, tf_es = -863895536, tf_ds = -1072234480, tf_edi = 0, tf_esi = -1054286120, tf_ebp = -863871308, tf_isp = -863871356, tf_ebx = -1055557504, tf_edx = 0, tf_ecx = 0, tf_eax = 9, tf_trapno = 12, tf_err = 0, tf_eip = -1071986265, tf_cs = 8, tf_eflags = 66199, tf_esp = -1054073344, tf_ss = -1054073344}) at /usr/src/sys/i386/i386/trap.c:443 #10 0xc01ac9a7 in bdgtakeifaces () at /usr/src/sys/net/bridge.c:474 #11 0xc01af02d in ether_ifdetach (ifp=0xc12c1e00, bpf=1) at /usr/src/sys/net/if_ethersubr.c:693 #12 0xc12bc47d in ?? () #13 0xc016b4d9 in module_unload (mod=0xc12a6680) at /usr/src/sys/kern/kern_module.c:195 #14 0xc0168392 in linker_file_unload (file=0xc12a8900) at /usr/src/sys/kern/kern_linker.c:449 #15 0xc0168a65 in kldunload (p=0xcc762380, uap=0xcc825f80) at /usr/src/sys/kern/kern_linker.c:747 #16 0xc0240185 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 7, tf_esi = -1077936842, tf_ebp = -1077937148, tf_isp = -863871020, tf_ebx = 0, tf_edx = 0, tf_ecx = 134560192, tf_eax = 305, tf_trapno = 12, tf_err = 2, tf_eip = 134514116, tf_cs = 31, tf_eflags = 663, tf_esp = -1077938248, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1150 #17 0xc02347a5 in Xint0x80_syscall () #18 0x8048139 in ?? () (kgdb) l /usr/src/sys/net/bridge.c:474 469 *bridge_cfg = '\0'; 470 471 printf("BRIDGE 990810, have %d interfaces\n", if_index); 472 for (i = 0 , ifp = ifnet.tqh_first ; i < if_index ; 473 i++, ifp = ifp->if_link.tqe_next) 474 if (ifp->if_type == IFT_ETHER) { /* ethernet ? */ 475 bp = &ifp2sc[ifp->if_index] ; 476 ac = (struct arpcom *)ifp; 477 sprintf(bridge_cfg + strlen(bridge_cfg), 478 "%s%d:1,", ifp->if_name, ifp->if_unit); >Release-Note: >Audit-Trail: >Unformatted: >> now xe0 promisc ON if_flags 0xffff8943 bdg_flags 0x5 vmnet1: promiscuous mode enabled >> now vmnet1 promisc ON if_flags 0xffff8943 bdg_flags 0x5 xe0: watchdog timeout; resetting card pid 481 (wmglobe), uid 100: exited on signal 10 (core dumped) pid 483 (lavaps), uid 100: exited on signal 6 cd9660: Joliet Extension BRIDGE 990810, have 10 interfaces -- index 8 xe0:1 type 6 phy 0 addrl 6 addr 00.80.c7.f5.24.e0 Fatal trap 12: page fault while in kernel mode fault virtual address = 0x34 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01ac9a7 stack pointer = 0x10:0xcc825e98 frame pointer = 0x10:0xcc825eb4 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 = 3169 (kldunload) interrupt mask = net panic: from debugger panic: from debugger Uptime: 2h44m31s /dev/vmmon: Module vmmon: unloaded dumping to dev #ad/0x30001, offset 630912 dump ata0: resetting devices .. done 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 12 8 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 succeeded Automatic reboot in 15 seconds - press a key on the console to abort Rebooting... # kldstat Id Refs Address Size Name 1 8 0xc0100000 24a3d0 kernel 2 1 0xc11a6000 c000 msdos.ko 3 1 0xc1365000 4000 logo_saver.ko 4 3 0xc136f000 11000 linux.ko 5 1 0xc13b2000 2000 rtc.ko 6 1 0xc13eb000 9000 vmmon_up.ko 7 1 0xc13f6000 4000 if_tap.ko To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message