Re: panic when removing pccard

From: Niki Denev <nike_d_at_cytexbg.com>
Date: Tue, 26 Jun 2007 02:03:19 +0300
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

M. Warner Losh wrote:
> In message: <467F7A69.9000909_at_cytexbg.com>
>             Niki Denev <nike_d_at_cytexbg.com> writes:
> : -----BEGIN PGP SIGNED MESSAGE-----
> : Hash: SHA1
> : 
> : M. Warner Losh wrote:
> : > I've done some testing with the recently improved in-tree usb stack,
> : > and it doesn't panic for me when I remove a CardBus USB card, both
> : > with and without devices.  It also does remove the extra /dev/usb*
> : > entries properly.  I couldn't cause any crashes with the latest
> : > -current.
> : > 
> : > Warner
> : 
> : Unfortunately it still does panic for me by simply inserting the card
> : (Huawei E630 3g card a.k.a Vodafone Mobile Connect), waiting for the
> : usb busses to be added and the ucom0 device to be recognized ( it takes
> : a few seconds) and then ejecting the card.
> : Again the message is :
> : 
> :   ucom0: detached
> :   (null): at uhub2 port 1 (addr 2) disconnected
> : 
> :   Fatal trap 12: page fault while in kernel mode
> :   fault virtual address   = 0x400
> :   fault code              = supervisor read, page not presend
> :   instruction pointer     = 0x20:0xc0595b2d
> :   stack pointer           = 0x28:0xd2f4db34
> :   frame pointer           = 0x28:0xd2f4db5c
> :   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         = 28 (cbb0 event thread)
> :   trap number             = 12
> :   panic: page fault
> : 
> : This problem does not exist if i compile my kernel with the HPS Usb Stack.
> 
> I don't suppose you could compile a kernel with DDB and get me a
> traceback?
> 
> Warner

Here it is :

Fatal trap 12: page fault while in kernel mode
fault virtual address    = 0x400
fault code               = supervisor read, page not present
instruction pointer      = 0x20:0xc059daed
stack pointer            = 0x28:0xd2f4db34
frame pointer            = 0x28:0xd2f4db5c
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          = 28 (cbb0 event thread)
[thread pid 28 tid 100023 ]
Stopped at     kobj_delete+0x1d:         movl 0x400(%eax),%esi
db> bt
Tracing pid 28 tid 100023 td 0xc2836cc0
kobj_delete(c2e0b300,c07ec8e0,c2e0b300,c2e0b600,d2f4dba0,...) at
kobj_delete+0x1d
device_delete_child(c2de8c00,c2e0b400,c2928900,c2de8d30,c2928900,...)
at device_delete_child+0x82
usb_disconnect_port(c2de8d30,c2de8c00,0,c29f5500,c2de8d00,...) at
usb_disconnect_port+0x9c
uhub_detach(c2de8c00,c28a8850,c08e2dac,d2f4dbf4,c0597987,...) at
uhub_detach+0x75
device_detach(c2de8c00,c2e0b300,c2bc4000,c2de9480,d2f4dc24,...) at
device_detach+0x6d
device_delete_child(c2de9380,c2de8c00,c2bc4000,c2de9480,d2f4dc44,...)
at device_delete_child+0x3a
device_delete_child(c2de9480,c2de9380,c2b8e400,d2f4dc44,c2de9480,...)
at device_delete_child+0x23
ohci_pci_detach(c2de9480,c27bf050,c07e2dac,d2f4dc70,c0595768,...) at
ohci_pci_detach+0x8e
device_detach(c2de9480,d2f4dca4,d2f4dca8,c2836cc0,d2f4dcb8,...) at
device_detach+0x6d
cardbus_detach_card(c2a15500,c29183d4,fa,d2f4dd24,d2f4dce4,...) at
cardbus_detach_card+0x274
cbb_event_thread(c2918000,d2f4dd38,0,0,0,...) at cbb_event_thread+0x3df
fork_exit(c04bac70,c2918000,d2f4dd38) at fork_exit+0x8d
fork_trampoline() at fork_trampoline+0x8
- --- trap 0, eip = 0, esp = 0xd2f4dd70, ebp = 0 ---
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGgEm3HNAJ/fLbfrkRAqqfAKCDOfaiKVCeIyJEfYcJZ7n4dBpDPQCgzY1s
pVypMkiwMRLWX3agBHRCi2s=
=Kryt
-----END PGP SIGNATURE-----
Received on Tue Jun 26 2007 - 04:14:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:13 UTC