Subject: Re: problem when usb pen detached (usb0) (sd0)
To: Ja'far Railton <ibn.richard@gmail.com>
From: Ja'far Railton <ibn.richard@gmail.com>
List: current-users
Date: 06/22/2006 22:40:11
On Wed, Jun 21, 2006 at 06:54:59PM +0000, Ja'far Railton wrote:
> Hello
> 
> I have a new problem when I remove my usb pen. If in X, everything
> freezes; if not, it goes into db>. The error message before that is:
> 
> [by hand]
> uvm_fault (0xc06c7900, 0x500f000, 1) -> 0xe
> kernel: supervisor trap page fault code=0
> stopped in pid 4.1 (usb0) at netbsd:kprintf + 0x8d2: repne scasb (%esi)
> 
> I can do a bt, s, etc., in db but I don't know how to save the output.

OK. I did "bt /l", then "reboot 0x104" (thanks Chris Tribo). The
resulting dmesg has the following relevant bit:

umass0 at uhub0 port 1 configuration 1 interface 0
umass0: SanDisk Corporation Cruzer Micro, rev 2.00/0.10, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <SanDisk, Cruzer Micro, 0.1> disk
removable
sd0: 488 MB, 992 cyl, 16 head, 63 sec, 512 bytes/sect x 1000944 sectors
sd0(umass0:0:0:0): no door lock
: at uhub0 port 1 (addr 2) disconnected
uvm_fault(0xc06c7900, 0, 1) -> 0xe
config_detach(c0d8e040,1,c0c1159c,c0cea000,c0ce7d30) at
netbsd:config_detach+0x12
usb_disconnect_port(c0ce7d30,c0c11580,10,0,ca70dda0) at
netbsd:usb_disconnect_port+0x5d
uhub_explore(c0c11700,20,c06167c1,1770,0) at netbsd:uhub_explore+0xf1
usb_discover(ca70dd68,c0c11780,0,c01002f5,c0c11780) at
netbsd:usb_discover+0x2e
usb_event_thread(c0c11780,0,c01002e6,fbff,c01002e6) at
netbsd:usb_event_thread+0x3f

dumping to dev 0,524288 offset 97864
dump 247 wd0: transfer error, downgrading to Ultra-DMA mode 3
wd0(aceride0:0:0): using PIO mode 4, Ultra-DMA mode 3 (using DMA)
wddump: DMA error
i/o error

Is this of any use yet? Should I file a PR?