Subject: problem when usb pen detached (usb0) (sd0)
To: None <current-users@netbsd.org>
From: Ja'far Railton <ibn.richard@gmail.com>
List: current-users
Date: 06/21/2006 18:54:59
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.

TIA for your help. I attach the dmesg (+ 1/2 dmesg which shows a
different usb pen attached at boot).


: full duplex, mmap, independent
midi0 at autri0: 4DWAVE MIDI UART
pcib0 at pci0 dev 7 funCtion 0
pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0x00)
fxp0 at pci0 dev 10 function 0: i82550 Ethernet, rev 13
fxp0: interrupting at irq 11
fxp0: Ethernet address 00:00:e2:56:c1:da
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
aceride0 at pci0 dev 16 function 0
aceride0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc3)
aceride0: bus-master DMA support present
aceride0: primary channel configured to compatibility mode
aceride0: primary channel interrupting at irq 14
atabus0 at aceride0 channel 0
aceride0: second!ry channel configured to compatibility mode
aceride0: secondary channel interrupting at irq 15
atabus1 at aceride0 channel 1
Acer Labs M7101 Power Management Controller (miscellaneous bridge) at pci0 dev 17 function 0 not c/nfigured
cbb0 at pci0 dev 19 function 0: O2 Micro OZ6912/OZ6972 PCI-CardBus Bridge (rev. 0x00)
ohci0 at pci0 dev 20 function 0: Acer Labs M5237 USB 1.1 Host Controller (rer. 0x03)
ohci0: interrupting at irq 10
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
isa0 at pcib0
lpt2 at isa0 port 0x3bc-0x3bf irq : polled
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux 3lot
wsmouse0 at pms0 mux 0
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff
npx0: using exception 16
pcppi0: attached to attimer0
isapnp0: no ISA Plug 'n Play devices found
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2
pcmcia0 at cardslot0
apm0 at mainbu30: Advanced Power Management BIOS
apm0: Power Management spec V1.2
timecounter: Timecounter "TSC" frequency 697507270 Hz quality 800
timecounter: selected timecounter "TSC" frequency 697507270 Hz quality 800
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
Kernelized RAIDframe activated
com3 at pcmcia0 function 0: <Billionton V92 Fax Modem, FM56C-BFS, 5.41>
cfe->iomask = 10
cfe->iospace[0].length = 8
com3: ns16550a, working fifo
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: Kingston DataTraveler 2.0, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Kingston, DataTraveler 2.0, 1.00> disk removable
sd0: 240 MB, 962 cyl, 32 head, 16 sec, 512 bytes/sect x 492544 sectors
wd0 at atabus0 drive 0: <FUJITSU MHT2040AS>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(aceride0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <CD-224E, , 2.7B> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(aceride0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
sd0(umass0:0:0:0): no door lock
findroot: unable to read block 25114384
boot device: wd0
root on wd0a dumps on wd0b
root file systEm type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
: at uhub0 port 1 (addr 2) disconnected
uvm_fault(0xc06c7900, 0, 1) -> 0xe
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 3.99.21 (UMRAH) #0: Sat Jun 10 20:55:05 UTC 2006
	jr0@think.makhraj.net:/usr/obj/sys/arch/i386/compile/UMRAH
total memory = 247 MB
avail memory = 236 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
timecounter: selected timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xf0210
PCI BIOS rev. 2.1 found at 0xf0200
pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xfb9d0, size 192 bytes (10 entries)
PCI Interrupt Router at 000:07:0 (Acer Labs M1543 PCI-ISA Bridge compatible)
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:06:0 0x10b9 0x5451   A  0x07  11  0    already assigned
000:10:0 0x8086 0x1229   A  0x01  11  0    already assigned
000:19:0 0x1217 0x6972   A  0x03  11  0    already assigned
------------------------------------------
mainbus0 (root)
pci_addr_fixup: 000:19:0 0x1217 0x6972 new address 0x0f800000
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 697.47 MHz, id 0x68a
cpu0: features 387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 387f9ff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
cpu0: features 387f9ff<FXSR,SSE>
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: L2 cache 256 KB 32B/line 8-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: serial number 0000-068a-0003-e1a6-4891-6365
cpu0: 8 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Acer Labs product 0x1621 (rev. 0x01)
agp at pchb0 not configured
ppb0 at pci0 dev 1 function 0: Acer Labs product 0x5247 (rev. 0x01)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Trident Microsystems product 0x8620 (rev. 0x5d)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
autri0 at pci0 dev 6 function 0: Acer Labs M5451 AC-Link Controller Audio Device (rev. 0x01)
autri0: interrupting at irq 11
autri0: ac97: Avance Logic ALC200/ALC201 codec; headphone, 18 bit DAC, 18 bit ADC, Realtek 3D
audio0 at autri0: full duplex, mmap, independent
midi0 at autri0: 4DWAVE MIDI UART
pcib0 at pci0 dev 7 function 0
pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0x00)
fxp0 at pci0 dev 10 function 0: i82550 Ethernet, rev 13
fxp0: interrupting at irq 11
fxp0: Ethernet address 00:00:e2:56:c1:da
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
aceride0 at pci0 dev 16 function 0
aceride0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc3)
aceride0: bus-master DMA support present
aceride0: primary channel configured to compatibility mode
aceride0: primary channel interrupting at irq 14
atabus0 at aceride0 channel 0
aceride0: secondary channel configured to compatibility mode
aceride0: secondary channel interrupting at irq 15
atabus1 at aceride0 channel 1
Acer Labs M7101 Power Management Controller (miscellaneous bridge) at pci0 dev 17 function 0 not configured
cbb0 at pci0 dev 19 function 0: O2 Micro OZ6912/OZ6972 PCI-CardBus Bridge (rev. 0x00)
ohci0 at pci0 dev 20 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
ohci0: interrupting at irq 10
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
isa0 at pcib0
lpt2 at isa0 port 0x3bc-0x3bf irq : polled
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff
npx0: using exception 16
pcppi0: attached to attimer0
isapnp0: no ISA Plug 'n Play devices found
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2
pcmcia0 at cardslot0
apm0 at mainbus0: Advanced Power Management BIOS
apm0: Power Management spec V1.2
timecounter: Timecounter "TSC" frequency 697499850 Hz quality 800
timecounter: selected timecounter "TSC" frequency 697499850 Hz quality 800
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
Kernelized RAIDframe activated
com3 at pcmcia0 function 0: <Billionton V92 Fax Modem, FM56C-BFS, 5.41>
cfe->iomask = 10
cfe->iospace[0].length = 8
com3: ns16550a, working fifo
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
wd0 at atabus0 drive 0: <FUJITSU MHT2040AS>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(aceride0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <CD-224E, , 2.7B> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(aceride0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
sd0(umass0:0:0:0): no door lock
findroot: unable to read block 25114384
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
uvm_fault(0xc06c7900, 0x500f000, 1) -> 0xe
syncing disks... 9 9 9 9 9 9 9 9 9 9 9 7 done
unmounting file systems... done
rebooting...
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 3.99.21 (UMRAH) #0: Sat Jun 10 20:55:05 UTC 2006
	jr0@think.makhraj.net:/usr/obj/sys/arch/i386/compile/UMRAH
total memory = 247 MB
avail memory = 236 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
timecounter: selected timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xf0210
PCI BIOS rev. 2.1 found at 0xf0200
pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xfb9d0, size 192 bytes (10 entries)
PCI Interrupt Router at 000:07:0 (Acer Labs M1543 PCI-ISA Bridge compatible)
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:06:0 0x10b9 0x5451   A  0x07  11  0    already assigned
000:10:0 0x8086 0x1229   A  0x01  11  0    already assigned
000:19:0 0x1217 0x6972   A  0x03  11  0    already assigned
------------------------------------------
mainbus0 (root)
pci_addr_fixup: 000:19:0 0x1217 0x6972 new address 0x0f800000
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 697.49 MHz, id 0x68a
cpu0: features 387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 387f9ff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
cpu0: features 387f9ff<FXSR,SSE>
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: L2 cache 256 KB 32B/line 8-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: serial number 0000-068a-0003-e1a6-4891-6365
cpu0: 8 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Acer Labs product 0x1621 (rev. 0x01)
agp at pchb0 not configured
ppb0 at pci0 dev 1 function 0: Acer Labs product 0x5247 (rev. 0x01)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Trident Microsystems product 0x8620 (rev. 0x5d)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
autri0 at pci0 dev 6 function 0: Acer Labs M5451 AC-Link Controller Audio Device (rev. 0x01)
autri0: interrupting at irq 11
autri0: ac97: Avance Logic ALC200/ALC201 codec; headphone, 18 bit DAC, 18 bit ADC, Realtek 3D
audio0 at autri0: full duplex, mmap, independent
midi0 at autri0: 4DWAVE MIDI UART
pcib0 at pci0 dev 7 function 0
pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0x00)
fxp0 at pci0 dev 10 function 0: i82550 Ethernet, rev 13
fxp0: interrupting at irq 11
fxp0: Ethernet address 00:00:e2:56:c1:da
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
aceride0 at pci0 dev 16 function 0
aceride0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc3)
aceride0: bus-master DMA support present
aceride0: primary channel configured to compatibility mode
aceride0: primary channel interrupting at irq 14
atabus0 at aceride0 channel 0
aceride0: secondary channel configured to compatibility mode
aceride0: secondary channel interrupting at irq 15
atabus1 at aceride0 channel 1
Acer Labs M7101 Power Management Controller (miscellaneous bridge) at pci0 dev 17 function 0 not configured
cbb0 at pci0 dev 19 function 0: O2 Micro OZ6912/OZ6972 PCI-CardBus Bridge (rev. 0x00)
ohci0 at pci0 dev 20 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
ohci0: interrupting at irq 10
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
isa0 at pcib0
lpt2 at isa0 port 0x3bc-0x3bf irq : polled
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff
npx0: using exception 16
pcppi0: attached to attimer0
isapnp0: no ISA Plug 'n Play devices found
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2
pcmcia0 at cardslot0
apm0 at mainbus0: Advanced Power Management BIOS
apm0: Power Management spec V1.2
timecounter: Timecounter "TSC" frequency 697495230 Hz quality 800
timecounter: selected timecounter "TSC" frequency 697495230 Hz quality 800
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
Kernelized RAIDframe activated
com3 at pcmcia0 function 0: <Billionton V92 Fax Modem, FM56C-BFS, 5.41>
cfe->iomask = 10
cfe->iospace[0].length = 8
com3: ns16550a, working fifo
wd0 at atabus0 drive 0: <FUJITSU MHT2040AS>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(aceride0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <CD-224E, , 2.7B> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(aceride0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)