Hi,

I'm seeing a kernel panic on -current (9/26) when booting with a SanDisk 
ImageMate II USB comact flash reader plugged in. The panic occurs after 
the kernel has loaded when the first rc.d scripts execute (dumpon, 
vinum, etc).

If I boot with the device disconnected, I can plug it in and unplug it 
without problems later.

Attached is a boot trace and a gdb backtrace. (gdb crashed on me, so I 
couldn't get more information.) Here's the relevant info from the trace:

SMP: AP CPU #1 Launched!
Mounting root from ufs:/dev/da0s1a
Entropy harvesting: interrupts ethernet point_to_point.
kernel dumps on /dev/da1s1b
vinum: loaded
umass0: BBB reset failed, STALLED
da2 at umass-sim0 bus 0 target 0 lun 0
da2: <SanDisk ImageMate II 1.30> Removable Direct Access SCSI-2 device
da2: 1.000MB/s transfers
da2: Attempt to query device size failed: NOT READY, Medium not present
(da2:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da2:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da2:umass-sim0:0:0:0): SCSI Status: Check Condition
(da2:umass-sim0:0:0:0): NOT READY asc:3a,0
(da2:umass-sim0:0:0:0): Medium not present
(da2:umass-sim0:0:0:0): Unretryable error


Fatal trap 18: integer divide fault while in kernel mode
cpuid = 1; lapic.id = 02000000
instruction pointer     = 0x8:0xc0437608
stack pointer           = 0x10:0xeb484870
frame pointer           = 0x10:0xeb4848f8
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         = 67 (vinum)
kernel: type 18 trap, code=0
Stopped at      __qdivrem+0x38: divl    %ecx,%eax


Thanks,
Lars
-- 
Lars Eggert <[EMAIL PROTECTED]>           USC Information Sciences Institute
Copyright (c) 1992-2002 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 #0: Sat Sep 28 18:54:56 PDT 2002
    [EMAIL PROTECTED]:/usr/obj/usr/src/sys/KERNEL-1.4
Preloaded elf kernel "/boot/kernel/kernel" at 0xc06c0000.
Preloaded elf module "/boot/kernel/snd_maestro3.ko" at 0xc06c00b4.
Preloaded elf module "/boot/kernel/firewire.ko" at 0xc06c0168.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06c0218.
Timecounter "i8254"  frequency 1193119 Hz
CPU: Pentium 4 (2372.79-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
  
Features=0x3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>
real memory  = 1073180672 (1048028K bytes)
avail memory = 1034698752 (1010448K bytes)
Changing APIC ID for IO APIC #0 from 0 to 4 on chip
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): apic id:  0, version: 0x00050014, at 0xfee00000
 cpu1 (AP):  apic id:  2, version: 0x00050014, at 0xfee00000
 io0 (APIC): apic id:  4, version: 0x00178020, at 0xfec00000
Pentium Pro MTRR support enabled
VESA: v2.0, 65536k memory, flags:0x1, mode table:0xc05aaa62 (1000022)
VESA: ATI RADEON RV250
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL   WS 530 > on motherboard
Using $PIR table, 12 entries at 0xc00fb9a0
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_cpu1: <CPU> on acpi0
acpi_cpu2: <CPU> on acpi0
acpi_cpu3: <CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
IOAPIC #0 intpin 19 -> irq 2
IOAPIC #0 intpin 17 -> irq 13
IOAPIC #0 intpin 23 -> irq 16
agp0: <Intel 82860 host to AGP bridge> mem 0xe8000000-0xefffffff at device 0.0 on pci0
pcib1: <PCIBIOS PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
IOAPIC #0 intpin 16 -> irq 17
pci1: <display, VGA> at device 0.0 (no driver attached)
pci1: <display> at device 0.1 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 2.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 31.0 on pci2
pci3: <ACPI PCI bus> on pcib3
IOAPIC #0 intpin 20 -> irq 18
IOAPIC #0 intpin 21 -> irq 19
pci3: <base peripheral, interrupt controller> at device 0.0 (no driver attached)
mpt0: <LSILogic 1030 Ultra4 Adapter> port 0xdc00-0xdcff mem 
0xff6a0000-0xff6bffff,0xff6c0000-0xff6dffff irq 18 at device 12.0 on pci3
mpt1: <LSILogic 1030 Ultra4 Adapter> port 0xd800-0xd8ff mem 
0xff660000-0xff67ffff,0xff680000-0xff69ffff irq 19 at device 12.1 on pci3
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci4: <ACPI PCI bus> on pcib4
IOAPIC #0 intpin 18 -> irq 20
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xcc80-0xccff mem 0xff3ffc00-0xff3ffc7f 
irq 16 at device 11.0 on pci4
/usr/src/sys/vm/uma_core.c:1307: could sleep with "xl0" locked from 
/usr/src/sys/pci/if_xl.c:1264
/usr/src/sys/vm/uma_core.c:1307: could sleep with "xl0" locked from 
/usr/src/sys/pci/if_xl.c:1264
lock order reversal
 1st 0xc6248bd4 xl0 (network driver) @ /usr/src/sys/pci/if_xl.c:1264
 2nd 0xc0502140 allproc (allproc) @ /usr/src/sys/kern/kern_fork.c:317
/usr/src/sys/vm/uma_core.c:1307: could sleep with "xl0" locked from 
/usr/src/sys/pci/if_xl.c:1264
/usr/src/sys/vm/uma_core.c:1307: could sleep with "xl0" locked from 
/usr/src/sys/pci/if_xl.c:1264
/usr/src/sys/vm/uma_core.c:1307: could sleep with "xl0" locked from 
/usr/src/sys/pci/if_xl.c:1264
xl0: Ethernet address: 00:06:5b:bd:ee:48
miibus0: <MII bus> on xl0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
/usr/src/sys/vm/uma_core.c:1307: could sleep with "xl0" locked from 
/usr/src/sys/pci/if_xl.c:647
fwohci0: <Texas Instruments TSB12LV26> mem 0xff3f8000-0xff3fbfff,0xff3ff000-0xff3ff7ff 
irq 17 at device 12.0 on pci4
fwohci0: PCI bus latency was changing to 250.
cache size 16.
fwohci0: OHCI version 1.0 (ROM=0)
fwohci0: No. of Isochronous channel is 4.
fwohci0: resetting OHCI...done (0)
fwohci0: BUS_OPT 0xa002 -> 0xf800a002
fwohci0: Link 1394a available S400, 2 ports, maxrec 2048 bytes.
fwohci0: Enable 1394a Enhancements
fwohci0: EUI64 80:5b:00:00:48:ee:bd:00
fwochi_set_intr: 1
firewire0: <IEEE1394(Firewire) bus> on fwohci0
firewire0: firewire bus attach
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.3.14> port 0xcc40-0xcc7f mem 
0xff3a0000-0xff3bffff,0xff3c0000-0xff3dffff irq 13 at device 13.0 on pci4
em0:  Speed:100 Mbps  Duplex:Full
pcm0: <Creative EMU10K1> port 0xcc20-0xcc3f irq 20 at device 14.0 on pci4
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:fake" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:fake" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:fake" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:fake" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:0" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:0" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:0" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:0" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:1" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:1" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:1" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:1" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:2" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:2" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:2" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:2" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:3" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:3" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:3" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:play:3" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:record:0" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:record:0" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:record:0" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:record:0" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:record:1" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:record:1" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:record:1" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0:record:1" locked from 
/usr/src/sys/dev/sound/pcm/channel.c:677
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
/usr/src/sys/vm/uma_core.c:1307: could sleep with "pcm0" locked from 
/usr/src/sys/dev/sound/pcm/sound.c:134
bktr0: <BrookTree 878> mem 0xf8001000-0xf8001fff irq 2 at device 15.0 on pci4
bktr0: Hauppauge Model 61381 D423
bktr0: Detected a MSP3430G-A4 at 0x80
bktr0: Hauppauge WinCast/TV, Philips FR1236 NTSC FM tuner, msp3400c stereo, remote 
control.
pci4: <multimedia> at device 15.1 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH2 ATA100 controller> port 0xffa0-0xffaf at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0xff80-0xff9f irq 2 at 
device 31.2 on pci0
usb0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1: NMB Dell USB Keyboard Hub, class 9/0, rev 1.10/0.01, addr 2
uhub1: 3 ports with 2 removable, bus powered
ukbd0: NMB Dell USB 7HK Keyboard, rev 1.10/0.01, addr 3, iclass 3/1
kbd1 at ukbd0
uhid0: NMB Dell USB 7HK Keyboard, rev 1.10/0.01, addr 3, iclass 3/0
ums0: Microsoft Microsoft 5-Button Mouse with IntelliEye(TM), rev 1.10/3.00, addr 4, 
iclass 3/1
ums0: 5 buttons and Z dir.
ichsmb0: <Intel 82801BA (ICH2) SMBus controller> port 0xbcd0-0xbcdf irq 13 at device 
31.3 on pci0
smbus0: <System Management Bus> on ichsmb0
smb0: <SMBus generic I/O> on smbus0
uhci1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> port 0xff60-0xff7f irq 16 at 
device 31.4 on pci0
usb1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
umass0: SanDisk Corporation ImageMate CompactFlash USB, rev 1.10/0.09, addr 2
umass0: Get Max Lun not supported (STALLED)
fdc0: <enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f0-0x3f5 
irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A, console
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 1 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
orm0: <Option ROMs> at iomem 
0xd2800-0xd3fff,0xd1000-0xd27ff,0xcd000-0xd0fff,0xc0000-0xccfff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
Timecounters tick every 10.000 msec
ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to accept, 
logging unlimited
IPv6 packet filtering initialized, default to accept, unlimited logging
DUMMYNET initialized (011031)
IPsec: Initialized Security Association Processing.
firewire0: BUS reset
firewire0: node_id = 0xc800ffc0, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
fw_set_bus_manager: 63->0 (loop=0)
send phy_config root_node=-1 gap_count=1
start AT DMA status=0
bus_explore done
ata1-slave: timeout waiting for interrupt
ata1-slave: ATA identify failed
ad0: 78167MB <Maxtor 4D080H4> [158816/16/63] at ata0-master UDMA100
acd0: CD-RW <PHILIPS DVD+RW-D28> at ata1-master UDMA33
da0 at mpt1 bus 0 target 0 lun 0
da0: <SEAGATE ST336732LW 2223> Fixed Direct Access SCSI-3 device 
da0: 320.000MB/s transfers (160.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 34732MB (71132959 512 byte sectors: 255H 63S/T 4427C)
da1 at mpt1 bus 0 target 1 lun 0
da1: <SEAGATE ST336732LW 2223> Fixed Direct Access SCSI-3 device 
da1: 320.000MB/s transfers (160.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da1: 34732MB (71132959 512 byte sectors: 255H 63S/T 4427C)
SMP: AP CPU #1 Launched!
Mounting root from ufs:/dev/da0s1a
Entropy harvesting: interrupts ethernet point_to_point.
kernel dumps on /dev/da1s1b
vinum: loaded
umass0: BBB reset failed, STALLED
da2 at umass-sim0 bus 0 target 0 lun 0
da2: <SanDisk ImageMate II 1.30> Removable Direct Access SCSI-2 device 
da2: 1.000MB/s transfers
da2: Attempt to query device size failed: NOT READY, Medium not present
(da2:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
(da2:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da2:umass-sim0:0:0:0): SCSI Status: Check Condition
(da2:umass-sim0:0:0:0): NOT READY asc:3a,0
(da2:umass-sim0:0:0:0): Medium not present
(da2:umass-sim0:0:0:0): Unretryable error


Fatal trap 18: integer divide fault while in kernel mode
cpuid = 1; lapic.id = 02000000
instruction pointer     = 0x8:0xc0437608
stack pointer           = 0x10:0xeb484870
frame pointer           = 0x10:0xeb4848f8
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         = 67 (vinum)
kernel: type 18 trap, code=0
Stopped at      __qdivrem+0x38: divl    %ecx,%eax
db> gdb
Next trap will enter GDB remote protocol mode
db> s


Fatal trap 18: integer divide fault while in kernel mode
cpuid = 1; lapic.id = 02000000
instruction pointer     = 0x8:0xc0437608
stack pointer           = 0x10:0xeb484870
frame pointer           = 0x10:0xeb4848f8
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = trace trap, interrupt enabled, resume, IOPL = 0
current process         = 67 (vinum)



GNU gdb 5.2.0 (FreeBSD) 20020627
Copyright 2002 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-undermydesk-freebsd"...
(kgdb) set     target remote /dev/cuaa0
Remote debugging using /dev/cuaa0
0xc0437608 in __qdivrem (uq=16953880443109769216, vq=0, arq=0x0)
    at /usr/src/sys/libkern/qdivrem.c:100
100                     tmp.ul[H] = tmp.ul[L] = 1 / zero;
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
warning: shared library handler failed to enable breakpoint
(kgdb) bt
#0  0xc0437608 in __qdivrem (uq=16953880443109769216, vq=0, arq=0x0)
    at /usr/src/sys/libkern/qdivrem.c:100
#1  0xc043745e in __divdi3 (a=1, b=0) at /usr/src/sys/libkern/divdi3.c:61
#2  0xc02c1b59 in diskopen (dev=0xc6841c00, oflags=2, devtype=0, td=0x0)
    at /usr/src/sys/kern/subr_disk.c:313
#3  0xc67772bf in ?? ()
#4  0xc6777538 in ?? ()
#5  0xc6777952 in ?? ()
#6  0xc6777aca in ?? ()
#7  0xc67788a1 in ?? ()
#8  0xc6774cbd in ?? ()
#9  0xc6774d48 in ?? ()
#10 0xc67790b5 in ?? ()
#11 0xc0282481 in spec_ioctl (ap=0x20010)
    at /usr/src/sys/fs/specfs/spec_vnops.c:350
#12 0xc0281af8 in spec_vnoperate (ap=0x0)
    at /usr/src/sys/fs/specfs/spec_vnops.c:124
#13 0xc030b285 in VOP_IOCTL (vp=0x0, command=1, 
    data=0x1 <Address 0x1 out of bounds>, fflag=1, cred=0x1, td=0x1)
    at vnode_if.h:488
#14 0xc030a774 in vn_ioctl (fp=0xc671f5a0, com=3288352320, data=0xc6686400, 
    active_cred=0xc2295d80, td=0xc6716600) at /usr/src/sys/kern/vfs_vnops.c:775
#15 0xc02cfc66 in ioctl (td=0xc6716600, uap=0xc2295d80) at file.h:226
#16 0xc041d413 in syscall (frame=
---Type <return> to continue, or q <return> to quit---
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077939184, tf_esi = 4, tf_ebp = 
-1077938136, tf_isp = -347583116, tf_ebx = 4, tf_edx = 135045235, tf_ecx = 
-1077939144, tf_eax = 54, tf_trapno = 12, tf_err = 2, tf_eip = 134700427, tf_cs = 31, 
tf_eflags = 582, tf_esp = -1077939204, tf_ss = 47})
    at /usr/src/sys/i386/i386/trap.c:1050
#17 0xc04065dd in Xint0x80_syscall () at {standard input}:141
#18 0x0804f89e in ?? ()
#19 0x0804883c in ?? ()
#20 0x080483e8 in ?? ()
#21 0x08048135 in ?? ()
(kgdb) list
95               */
96              if (vq == 0) {
97                      /* divide by zero. */
98                      static volatile const unsigned int zero = 0;
99      
100                     tmp.ul[H] = tmp.ul[L] = 1 / zero;
101                     if (arq)
102                             *arq = uq;
103                     return (tmp.q);
104             }
(kgdb) up 11
/build/current/src/contrib/gdb/gdb/ui-out.c:133: gdb-internal-error: push_level: 
Assertion `uiout->level >= 0 && uiout->level < MAX_UI_OUT_LEVELS' failed.
#11 0xc0282481 in spec_ioctl (
An internal GDB error was detected.  This may make further
debugging unreliable.  Quit this debugging session? (y or n) y

Create a core file containing the current state of GDB? (y or n) n

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to