Subject: Re: panic with ulpt on -current
To: None <current-users@netbsd.org>
From: not Calle Englund <calle@discord.bofh.se>
List: current-users
Date: 12/13/2004 13:03:42
--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=

Alexander Senier <current-users@senier.net> writes:

> Hi,
>
> I'm running a -current machine as a printer server.
> After printing one or two pages to my HP DeskJet 640C via ulpt, the
> kernel panics. Sources are from last saturday.
> Backtrace and full dmesg are attached.

I'm also getting crashes with ulpt, using a hp Laserjet 1010 on
NetBSD 2.99.11 of 2004-12-05.
The machine drops to ddb just after finishing a printout.

bt and dmesg from ddb are attached.


--=-=-=
Content-Disposition: attachment;
  filename=pr-uvm_fault-in-usb_transfer_complete.txt
Content-Description: ddb output

uvm_fault(0xcb6e01c0, 0, 0, 1) -> 0xe
kernel: page fault trap, code=0
Stopped in pid 678.1 (lpd) at   netbsd:usb_transfer_complete+0x16f:     movl    0
x48(%eax),%eax
db> bt
usb_transfer_complete(c1247200,cb721740,c0646cdd,282,0) at netbsd:usb_transfer_c
omplete+0x16f
ohci_abort_xfer(c1247200,6,80,c19d0600,202) at netbsd:ohci_abort_xfer+0x1b6
ohci_device_bulk_abort(c1247200,c19436bc,cc1adcdc,c19d0600,c19d0580) at netbsd:o
hci_device_bulk_abort+0x10
usbd_ar_pipe(c19d0580,c1943680,cc1add0c,286,c19cc200) at netbsd:usbd_ar_pipe+0x2
2
usbd_abort_pipe(c19d0580,cc1a55fc,0,2,cc1adda4) at netbsd:usbd_abort_pipe+0x25
ulptclose(3900,2,2000,cb75bcc8,cc1add74) at netbsd:ulptclose+0x76
spec_close(cc1adda4,2a6,0,20002,cc1a55fc) at netbsd:spec_close+0xb2
ufsspec_close(cc1adda4,cbc26000,cc1addcc,cc0a9e08,c054d2c0) at netbsd:ufsspec_cl
ose+0x172
VOP_CLOSE(cc1a55fc,2,cada4000,cb75bcc8,cc1a55fc) at netbsd:VOP_CLOSE+0x34
vn_close(cc1a55fc,2,cada4000,cb75bcc8,cc1a55c4) at netbsd:vn_close+0x2e
vn_closefile(cc12070c,cb75bcc8,0,cbf1f800,0) at netbsd:vn_closefile+0x1a
closef(cc12070c,cb75bcc8,0,cada4000,cb75bcc8) at netbsd:closef+0xce
fdfree(cb75bcc8,0,cbb79270,cbb79290,cbb79280) at netbsd:fdfree+0x5b
exit1(cb6e3e70,0,0,2,0) at netbsd:exit1+0x1ad
sys_exit(cb6e3e70,cc1adf64,cc1adf5c,0,c14a3000) at netbsd:sys_exit+0x23
syscall_plain() at netbsd:syscall_plain+0x7e
--- syscall (number 1) ---
0x4810e5a7:
db> dmesg
NetBSD 2.99.11 (Q) #6: Mon Dec  6 00:29:02 CET 2004
        calle@q.home.discord.bofh.se:/home/src/netbsd-current-src/sys/arch/i386/
compile/obj/Q
total memory = 639 MB
avail memory = 618 MB
BIOS32 rev. 0 found at 0xfa130
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 999.70 MHz, id 0x686
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 383f9ff<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: 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: VIA Technologies VT82C691 (Apollo Pro) Host-PCI (rev. 0xc4)
agp0 at pchb0: aperture at 0x50000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT82C598 (Apollo MVP3) CPU-AGP B
ridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: ATI Technologies Radeon 7500 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1
wsmux1: connecting to wsdisplay0
rtk0 at pci0 dev 3 function 0: Accton MPX 5030/5038 10/100BaseTX
rtk0: interrupting at irq 3
rtk0: Ethernet address 00:10:b5:84:a8:ad
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
emuxki0 at pci0 dev 4 function 0: Creative Labs SBLive! EMU 10000 (audio multime
dia, revision 0x07)
emuxki0: ac97: SigmaTel STAC9721/23 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
emuxki0: ac97: ext id 200<AMAP>
audio0 at emuxki0: full duplex, mmap, independent
emuxki0: interrupting at irq 10
joy0 at pci0 dev 4 function 1: Creative Labs PCI Gameport Joystick (rev 0x07)
joy0: joystick not connected
trm0 at pci0 dev 5 function 0: Tekram DC395U, DC315/U (TRM-S1040) Fast20 Ultra S
CSI Adapter
trm0: interrupting at irq 5
scsibus0 at trm0: 8 targets, 8 luns per target
ohci0 at pci0 dev 6 function 0: NEC USB Host Controller (rev. 0x43)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 6 function 1: NEC USB Host Controller (rev. 0x43)
ohci1: interrupting at irq 3
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 6 function 2: NEC USB Host Controller (rev. 0x04)
ehci0: interrupting at irq 5
ehci0: EHCI version 1.0
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: single transaction translator
uhub2: 5 ports with 5 removable, self powered
pdcide0 at pci0 dev 7 function 0
pdcide0: Promise Ultra100TX2/ATA Bus Master IDE Accelerator (rev. 0x02)
pdcide0: bus-master DMA support present
pdcide0: primary channel configured to native-PCI mode
atabus0 at pdcide0 channel 0
pdcide0: secondary channel configured to native-PCI mode
atabus1 at pdcide0 channel 1
Texas Instruments TSB12LV23 IEEE 1394 Host Controller (Firewire serial bus, inte
rface 0x10) at pci0 dev 12 function 0 not configured
pcib0 at pci0 dev 20 function 0
pcib0: VIA Technologies VT82C686A (Apollo KX133) PCI-ISA Bridge (rev. 0x22)
viaide0 at pci0 dev 20 function 1
viaide0: VIA Technologies VT82C686A (Apollo KX133) ATA66 controller
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at irq 14
atabus2 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel interrupting at irq 15
atabus3 at viaide0 channel 1
uhci0 at pci0 dev 20 function 2: VIA Technologies VT83C572 USB Controller (rev. 0
x10)
uhci0: interrupting at irq 11
usb3 at uhci0: USB revision 1.0
uhub3 at usb3
uhub3: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhci1 at pci0 dev 20 function 3: VIA Technologies VT83C572 USB Controller (rev. 0
x10)
uhci1: interrupting at irq 11
usb4 at uhci1: USB revision 1.0
uhub4 at usb4
uhub4: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub4: 2 ports with 2 removable, self powered
VIA Technologies VT82C686A SMBus Controller (miscellaneous bridge, revision 0x30
) at pci0 dev 20 function 4 not configured
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
pckbc0 at isa0 port 0x60-0x64
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
wd0 at atabus0 drive 0: <SAMSUNG SP1604N>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1 at atabus0 drive 1: <SAMSUNG SP1604N>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(pdcide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
wd1(pdcide0:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
wd2 at atabus1 drive 0: <ST3160021A>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd2: 32-bit data port
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd3 at atabus1 drive 1: <Maxtor 6Y160P0>
wd3: drive supports 16-sector PIO transfers, LBA48 addressing
wd3: 152 GB, 317632 cyl, 16 head, 63 sec, 512 bytes/sect x 320173056 sectors
wd3: 32-bit data port
wd3: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd2(pdcide0:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
wd3(pdcide0:1:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
atapibus0 at atabus3: 2 targets
cd0 at atapibus0 drive 0: <COMPAQ  DVD-ROM DRD-8120B, , 1.09> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(viaide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
uscanner0 at uhub0 port 2
uscanner0: Canon CanoScan, rev 1.10/1.00, addr 2
ulpt0 at uhub1 port 2 configuration 1 interface 0
ulpt0: Hewlett-Packard hp LaserJet 1010, rev 1.10/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode
raid0: RAID Level 1
raid0: Components: /dev/wd0b /dev/wd1b
raid0: Total Sectors: 312376832 (152527 MB)
boot device: raid0
root on raid0a dumps on raid0b
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)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
ulpt0: at uhub1 port 2 (addr 2) disconnected
ulpt0 detached
ulpt0 at uhub1 port 2 configuration 1 interface 0
ulpt0: Hewlett-Packard hp LaserJet 1010, rev 1.10/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode
uvm_fault(0xcb6e01c0, 0, 0, 1) -> 0xe

--=-=-=


Should I send-pr this?

regards
  /Calle
-- 
  ,
 (K) Pope not Calle of Flaxborough <http://discord.bofh.se/>
 -----------------------------------------------------------

--=-=-=--

--==-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQBBvYV+PjjOBO5TQV0RAqRVAKChc2oKbDY9jcJ5tMsEuLUTCScXvQCeOg1x
3xQmnfhHbsuR3Z+hXnNVyQM=
=ZFDz
-----END PGP SIGNATURE-----
--==-=-=--