From owner-freebsd-current@FreeBSD.ORG Fri Jun 8 08:59:05 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 534AF16A469 for ; Fri, 8 Jun 2007 08:59:05 +0000 (UTC) (envelope-from nike_d@cytexbg.com) Received: from sellinet.net (galileo.sellinet.net [82.199.192.2]) by mx1.freebsd.org (Postfix) with SMTP id A44B713C455 for ; Fri, 8 Jun 2007 08:59:04 +0000 (UTC) (envelope-from nike_d@cytexbg.com) Received: (qmail 21363 invoked by uid 1009); 8 Jun 2007 11:32:22 +0300 Received: from nike_d@cytexbg.com by galileo by uid 1002 with qmail-scanner-1.22 (spamassassin: 3.0.3. Clear:RC:1(82.199.197.152):. Processed in 0.581798 secs); 08 Jun 2007 08:32:22 -0000 Received: from unknown (HELO ndenev.totalterror.net) (82.199.197.152) by galileo.sellinet.net with SMTP; 8 Jun 2007 11:32:21 +0300 Received: (qmail 45910 invoked from network); 8 Jun 2007 11:31:44 +0300 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by ndenev.totalterror.net with SMTP; 8 Jun 2007 11:31:44 +0300 Message-ID: <466913F0.2060200@cytexbg.com> Date: Fri, 08 Jun 2007 11:31:44 +0300 From: Niki Denev User-Agent: Thunderbird 1.5.0.10 (X11/20070326) MIME-Version: 1.0 To: freebsd-current@freebsd.org X-Enigmail-Version: 0.94.3.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: panic when removing pccard X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 08:59:05 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I experience the following panic on a few days old -current : If i insert and then remove a pcmcia card using the ubsa module (Vodafone Mobile Connect, which actually is Huawei E630 UMTS/HSDPA modem) the machine panics, because i think the order of removal of the devices by the kernel is not correct. I'm not sure because i don't have -STABLE machine with pcmcia now, but i think this problem does not exist there. Here is what happens when card is inserted : ohci0: mem 0xc0212000-0xc0212fff irq 11 at device 0.0 on cardbus0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb4: OHCI version 1.0 usb4: on ohci0 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 1 port with 1 removable, self powered ohci1: mem 0xc0213000-0xc0213fff irq 11 at device 0.1 on cardbus0 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb5: OHCI version 1.0 usb5: on ohci1 usb5: USB revision 1.0 uhub5: on usb5 uhub5: 1 port with 1 removable, self powered ucom0: on uhub4 ucom0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2 Then card eject : ucom0: detached (null): at uhub4 port 1 (addr 2) disconnected Fatal trap 12: page fault while in kernel mode fault virtual address = 0x400 fault code = supervisor read, page not present instruction pointer = 0x20:0xc0661e84 stack pointer = 0x28:0xd4d63b4c frame pointer = 0x28:0xd4d63b6c 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 = 31 (cbb0 event thread) [thread pid 31 tid 100027 ] Stopped at kobj_delete+0x14: movl 0x400(%eax),%ebx db> bt Tracing pid 31 tid 100027 td 0xc2a76440 kobj_delete(c2ef0000,c0955ce0,c2ef0000cc2eeee00,d4d63bac,...) at kobj_delete+0x14 device_delete_child(c2eef400,c2ef0000,c2bdfc80,c2bdfc80,4,...) at device_delete_child+0x94 usb_disconnect_port(c2eefab0,c2eef400,c0955c60,c2bdfbd0,c2eefa80,...) at usb_disconnect_port+0xdc uhub_detach(c2eef400,c29c6850,c094c12c,d4d63c00,c065ca19,...) at uhub_detach+0x74 device_detach(c2eef400,c2ef0000,c2ef3000,c2eef200,d4d63c30,...) at device_detach+0x68 device_delete_child(c2eef200,c2eef400,c2ef3000,c2eeed00,d4d63c50,...) at device_delete_child+0x31 device_delete_child(c2eeed00,c2eef200,c2935060,d4d63c50,c2eeed00,...) at device_delete_child+0x1c ohci_pci_detach(c2eeed00,c29b5050,c094c12c,c065a875,8,...) at ohci_pci_detach+0xb1 device_detach(c2eeed00,d4d63cb0,d4d63cb4,c2a76440,d4d63cc4,...) at device_detach+0x68 cardbus_detach_card(c2a7aa80,c2a5bbd4,fa,202,0,...) at cardbus_detach_card+0xcd cbb_event_thread(c2a5b800,d4d63d38,0,0,0,...) at cbb_event_thread+0x1a9 fork_exit(c05643a0,c2a5b800,d4d63d38) at fork_exit+0x2a fork_trampoline() at fork_trampoline+0x8 - --- trap 0, eip = 0, esp = 0xd4d63d70, ebp = 0 --- db> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGaRPwHNAJ/fLbfrkRAvBBAKDBvNUcw8MlcqKRfXCgfxAicdOeCgCeOkDx UPIkSmz66g2e4wWSqCiab4I= =t5Xr -----END PGP SIGNATURE-----