kernel page fault trap, code = 0 from attempting to blank marginal CD-RW

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

kernel page fault trap, code = 0 from attempting to blank marginal CD-RW

Nick Briggs
>Synopsis: kernel: page fault trap, code = 0, in wdc_free_xfer after CD drive sense error
>Category: kernel
>Environment:
        System      : OpenBSD 6.4
        Details     : OpenBSD 6.4 (GENERIC) #0: Sat Nov 17 21:50:09 CET 2018
                         [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC

        Architecture: OpenBSD.i386
        Machine     : i386
>Description:

Attempting to erase a CD-RW disc with cdio, disc was already in the drive before
starting cdio. CD-RW disc had performed marginally in another system, not properly erasing.

Attempt 1:

cdio> debug on
 cd0(pciide0:1:0): timeout
 type: atapi
 c_bcount: 2048
 c_skip: 0
 cd0: transfer error. downdgrading to Ultra-DMA mode 0
 cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 0
 cd0(atapiscsi:0:0:0): Check Condition (error 0x70) on opcode (0x28)
        SENSE KEY: Media Error
                       ASC/ASCQ: No Seek Complete
 uvm_fault(0xd0d86684, 0x0, 0, 2) -> e
 kernel: page fault trap, code = 0
 Stopped at   wdc_free_xfer+0x9d: movl %eax,0(%ecx)
 ddb> bt
 wdc_free_xfer(d1d6a5e4,f57cef64) at wdc_free_xfer+0x9d
 wdc_atapi_the_machine(d1d6a5e4,f57cef64,2) at wcd_atapi_the_machine+0x101
 wdc_atapi_intr(d1d6a5e4,f57cef64,1) at wcd_atapi_intr+0x29
 wdcintr(d1d6a5e4) at wcdintr+0x7e
 intr_handler(f4fee304,d1cfaf40) at intr_handler+0x18
 Xintr_legacy15_untramp(8,246,5305,0,0) at Xintr_legacy15_untramp+0xf7
 apm_cpu_idle() at apm_cpu_idle+0x30
 cpu_idle_cycle(d0cdcff8) at cpu_idle_cycle+0xc

(system was rebooted at this point)

Attempt 2:

cdio> debug on
 cd0(pciide0:1:0): timeout
 type: atapi
 c_bcount: 2048
 c_skip: 0
pciide0:1:0: soft reset failed
cdio> reset
cdio> blank
 cd0(pciide0:1:0): timeout
 type: atapi
 c_bcount: 2048
 c_skip: 0
 cd0: transfer error. downdgrading to Ultra-DMA mode 0
 cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 0
 uvm_fault(0xd0dfc66c, 0x0, 0, 2) -> e
 kernel: page fault trap, code = 0
 Stopped at   wdc_free_xfer+0x4b: movl %ecx,0(%edx)
 ddb>
 wdc_free_xfer(d1d6a5e4,d1ce6f00) at wdc_free_xfer+0x4d
 wdc_atapi_the_machine(d1d6a5e4,d1ce6f00,2) at wcd_atapi_the_machine+0x181
 wdc_atapi_intr(d1d6a5e4,d1ce6f00,1) at wcd_atapi_intr+0x29
 wdcintr(d1d6a5e4) at wcdintr+0x7e
 intr_handler(f4feece4,d1cfaf40) at intr_handler+0x18
 Xintr_legacy15_untramp(8,200246,7aefe8,0,6b814086) at Xintr_legacy15_untramp+0xf7
 apm_cpu_idle() at apm_cpu_idle+0x30
 cpu_idle_cycle(d0cfaff8) at cpu_idle_cycle+0xc

 ddb> show registers
 ds   0x10
 es   0x10
 fs   0x20
 gs   0
 edi  0xd1d6a5e4
 esi  0xd1ce6f00
 ebp  0xf4feec50
 ebx  0xd1d6a5e4
 edx  0x1f
 ecx  0xffffffff
 eax  0x50
 eip  0xd04fd4bb
 cs   0x50
 eflags 0x210203
 esp 0xf4feec48
 ss 0x10
 wdc_free_xfer+0x4b movl %ecx,0(%edx)
 ddb>

attempting to do a "boot dump" at this point failed:

 ddb> boot dump
 syncing disks...panic: kernel diagnostic assertion "p->p_wchan == NULL" failed:
  file "/usr/srcsys/kern/kern_sched.c", line 338

>How-To-Repeat:
        place CD-RW disc with media issue in CD drive
        attempt to blank it using cdio
        problem appears intermittent.
>Fix:
        workaround: reboot, try again, sometimes it will work without panicing.
        once the disc is erased the problem does not reoccur.


dmesg:
OpenBSD 6.4 (GENERIC) #0: Sat Nov 17 21:50:09 CET 2018
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
real mem  = 402145280 (383MB)
avail mem = 379760640 (362MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 05/12/99, BIOS32 rev. 0 @ 0xed000
apm0 at bios0: Power Management spec V1.2
pcibios0 at bios0: rev 2.1 @ 0xed000/0x3000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf6fa0/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:20:0 ("Intel 82371AB PIIX4 ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x3800
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 300 MHz, 06-03-04
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,MMX,PERF,MELTDOWN
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443LX AGP" rev 0x03
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0x44000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82443LX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Matrox MGA Millennium II 2164WA-B AGP" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ahc0 at pci0 dev 15 function 0 "Adaptec AIC-7860" rev 0x03: irq 10
ahc0: Host Adapter Bios disabled.  Using default SCSI device parameters
scsibus1 at ahc0: 8 targets, initiator 7
sym0 at scsibus1 targ 4 lun 0: <SEAGATE, ST39140N, 1498> SCSI2 0/direct fixed serial.SEAGATE_ST39140N_AY889318
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST39140N, 1498> SCSI2 0/direct fixed serial.SEAGATE_ST39140N_AY889318
sd0: 8683MB, 512 bytes/sector, 17783240 sectors
tl0 at pci0 dev 16 function 0 "Compaq Embedded Netelligent 10/100TX" rev 0x10: irq 11 address 00:80:5f:bd:53:49
lxtphy0 at tl0 phy 1: LXT970 10/100 PHY, rev. 0
tlphy0 at tl0 phy 31: ThunderLAN 10baseT PHY, rev. 6
piixpcib0 at pci0 dev 20 function 0 "Intel 82371AB PIIX4 ISA" rev 0x01
pciide0 at pci0 dev 20 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <ST340014A>
wd0: 16-sector PIO, LBA48, 38146MB, 78125000 sectors
wd1 at pciide0 channel 0 drive 1: <WDC WD1600AAJB-00J3A0>
wd1: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus2 at atapiscsi0: 2 targets
cd0 at scsibus2 targ 0 lun 0: <YAMAHA, CRW2100E, 1.0N> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 1
uhci0 at pci0 dev 20 function 2 "Intel 82371AB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 20 function 3 "Intel 82371AB Power" rev 0x01: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 128MB SDRAM ECC PC66CL2
spdmem1 at iic0 addr 0x51: 128MB SDRAM ECC PC100CL3
spdmem2 at iic0 addr 0x52: 128MB SDRAM ECC PC100CL3
isa0 at piixpcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
isapnp0 at isa0 port 0x279: read port 0x203
"ESS ES1869 Plug and Play AudioD, ESS0006, , " at isapnp0 port 0x800/8 not configured
ess0 at isapnp0 "ESS ES1869 Plug and Play AudioD, ESS1869, , " port 0x220/16,0x388/4,0x330/2 irq 5 drq 1,0: ESS Technology ES1869 [version 0x688b]
ess0: audio1 interrupting at irq 5
audio0 at ess0
opl at ess0 not configured
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
ahc0: target 4 synchronous at 20.0MHz, offset = 0xf
uhidev0 at uhub0 port 1 configuration 1 interface 0 "American Power Conversion Back-UPS RS 1500G FW:865.L6 .D USB FW:L6" rev 2.00/0.90 addr 2
uhidev0: iclass 3/0, 146 report ids
upd0 at uhidev0
uhidev1 at uhub0 port 2 configuration 1 interface 0 "Individual Computers Keyrah Commodore Keyboard US" rev 1.10/1.22 addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub0 port 2 configuration 1 interface 1 "Individual Computers Keyrah Commodore Keyboard US" rev 1.10/1.22 addr 3
uhidev2: iclass 3/0, 4 report ids
uhid0 at uhidev2 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev2 reportid 3: input=2, output=0, feature=0
uhid2 at uhidev2 reportid 4: input=2, output=1, feature=1
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on wd1a (f879331165c76a7f.a) swap on wd1b dump on wd1b
WARNING: / was not properly unmounted

usbdevs:
Controller /dev/usb0:
addr 01: 8086:0000 Intel, UHCI root hub
         full speed, self powered, config 1, rev 1.00
         driver: uhub0
addr 02: 051d:0002 American Power Conversion, Back-UPS RS 1500G FW:865.L6 .D USB FW:L6
         full speed, power 2 mA, config 1, rev 0.90, iSerialNumber 4B1634P17214
         driver: uhidev0
addr 03: 18d8:0003 Individual Computers, Keyrah Commodore Keyboard US
         low speed, power 50 mA, config 1, rev 1.22, iSerialNumber 8bit version
         driver: uhidev1
         driver: uhidev2