Subject: NetBSD 2.0RC4 crashes with USB Modem
To: None <current-users@NetBSD.org>
From: Stefan Wurstbauer <sw@wbstech.org>
List: current-users
Date: 10/29/2004 00:25:50
Hi,

I'm using NetBSD 2.0rc4, hylafax and a Elsa MicroLink USB Modem. After
the start of faxgetty or any other program using the modem my netbsd
kernel crashes with a null pointer exception.
If I run "cu -l /dev/ttyU0" I can talk to the modem an everything is
fine.
I use a Dell PowerEdge 4600 machine.

Has anyone an idea what happens?


Greets 
  Stefan


--- DUMP ---


uvm_fault(0xeffdf5ec, 0x0, 0, 2) -> e
kernel: page fault trap, code=0
Stopped in pid 580 (faxsend) at usbd_setup_xfer+0x15:   movl    %edx, 
       0(
%eax)
db> trace
usbd_setup_xfer(0,0,c4181500,f0111000,2,1,0,c035b62c) at 
usbd_setup_xfer+0x15
ucomstart(ef027238,a,f0122be0,c020c832,ef027238) at ucomstart+0x13c
ttstart(ef027238,ef027238,3,0,c0000000) at ttstart+0x19
ttyinput(a,ef027238,0,c0495160,c447ab00,c4346c80,c4346cbc,c0495160,4180f
418,31d8
c,f0122c40,c020c0c0,effc4cb8,c447ab00,f0122c60,c035737c,c4346c80,c418150
0,6,c014
93c8,ef85c650,1,c0000000,c014b62b,ef85c650,1,c0000000,0,0,0,f0122ca0,c01
4b6b8,c4
346c80,ef85c7d0,0,c01fae9a,c447ab00,ef027238,efd0551c,c01fae9a,2221,0,f0
122cb0,1
18377d0,e6c91740,c4155000,f0122cc0,c014c49b,c4346c80,6,c01fadc4,effc4cb8
,c418150
0,ef027238,f0122cf0,c0357268,c4346c80,0,f0122d20,c035a8e9,0) at 
ttyinput+0x84e
ucomreadcb(c4346c80,c4181500,6,c01493c8) at ucomreadcb+0x4f
usb_transfer_complete(c4346c80,ef85c7d0,0,c01fae9a) at 
usb_transfer_complete+0xf
c
ohci_abort_xfer(c4346c80,6,c01fadc4,effc4cb8,c4181500) at 
ohci_abort_xfer+0x1cc
ohci_device_bulk_abort(c4346c80,0,f0122d20,c035a8e9) at 
ohci_device_bulk_abort+0
x13
usbd_ar_pipe(c447ab00,0,efd0551c,c020d958,c4181500) at usbd_ar_pipe+0x20
usbd_abort_pipe(c447ab00,ef027238,f0122d50,c020dbd1,c4181500,6,f0122d80,
c035ad68
,ef027238,1,f0122d80,c035ad86,c4181500,3,0,10,3,0,efd0551c,c0396400,efd0
551c,0,f
0122dc0,c022ae6a,4200,3,2000,effc4cb8,efd0551c,f0122e1c,effc4cb8,c01fb2c
a,c04951
60,8,2000,c035ad10,4200,f0122e1c,f0122df0,c01d6525,f0122e1c,30002,efd055
1c,3,efd
0551c,efd0551c,f0122e10,c0225fba,f0122e04,8a43,f0122e30,c022598b,f0122e1
c,d6,c01
fadc4,c03963c0,3,30002,f0122e40,c022577d,efd0551c) at
usbd_abort_pipe+0x27
ucom_cleanup(c4181500,3,0,10) at ucom_cleanup+0x26
ucomclose(4200,3,2000,effc4cb8,efd0551c) at ucomclose+0x76
spec_close(f0122e1c,30002,efd0551c,3,efd0551c) at spec_close+0x16a
ufsspec_close(f0122e1c,d6,c01fadc4,c03963c0,3) at ufsspec_close+0x121
VOP_CLOSE(efd0551c,3,c447ab80,effc4cb8,efd0551c) at VOP_CLOSE+0x3b
vn_close(efd0551c,3,c447ab80,effc4cb8,effe7e04) at vn_close+0x31
vn_closefile(effe7e04,effc4cb8,effc4cb8,5,effe7e04) at vn_closefile+0x1a
closef(effe7e04,effc4cb8,f0122f10,c01f6bde,1) at closef+0x131
fdrelease(effc4cb8,1,effc4cb8,f0122f78,f0122f80) at fdrelease+0x5c
sys_close(effc4cb8,f0122f80,f0122f78,c02fe004) at sys_close+0x2d
syscall_plain(1f,1f,1f,1f,4) at syscall_plain+0xa7

------------------------------------------------------------------------
--------------

NetBSD 2.0_RC4 (GENERIC.MP) #0: Tue Oct 19 18:26:52 CEST 2004
 
stefan@valentina:/DATA/export/netbsd-2.0rc4/src/usr/src/sys/arch/i386/co
mpile/obj/GENERIC.MP
total memory = 3775 MB
avail memory = 3687 MB
BIOS32 rev. 0 found at 0xffe90
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (DELL     PE 0106     )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Xeon (686-class), 1990.38 MHz, id 0xf27
cpu0: features
bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
cpu0: L2 cache 512 KB 64B/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: calibrating local timer
cpu0: apic clock running at 99 MHz
cpu0: 16 page colors
cpu1 at mainbus0: apid 2 (application processor)
cpu1: starting
cpu1: Intel Xeon (686-class), 1990.17 MHz, id 0xf27
cpu1: features
bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu1: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu1: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
cpu1: L2 cache 512 KB 64B/line 8-way
cpu1: ITLB 4K/4M: 64 entries
cpu1: DTLB 4K/4M: 64 entries
mpbios: bus 0 is type PCI
mpbios: bus 1 is type PCI
mpbios: bus 2 is type PCI
mpbios: bus 3 is type PCI
mpbios: bus 4 is type PCI
mpbios: bus 5 is type PCI
mpbios: bus 6 is type PCI
mpbios: bus 7 is type PCI
mpbios: bus 8 is type PCI
mpbios: bus 9 is type PCI
mpbios: bus 10 is type PCI
mpbios: bus 11 is type PCI
mpbios: bus 12 is type PCI
mpbios: bus 13 is type PCI
mpbios: bus 14 is type PCI
mpbios: bus 15 is type PCI
mpbios: bus 16 is type PCI
mpbios: bus 17 is type PCI
mpbios: bus 18 is type ISA
ioapic0 at mainbus0 apid 4 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 16 pins
ioapic0: misconfigured as apic 0
ioapic0: remapped to apic 4
ioapic1 at mainbus0 apid 5 (I/O APIC)
ioapic1: pa 0xfec01000, version 11, 16 pins
ioapic1: misconfigured as apic 0
ioapic1: remapped to apic 5
ioapic2 at mainbus0 apid 6 (I/O APIC)
ioapic2: pa 0xfec02000, version 11, 16 pins
ioapic2: misconfigured as apic 0
ioapic2: remapped to apic 6
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: ServerWorks CMIC-HE PCI/AGP bridge (rev. 0x22)
pchb1 at pci0 dev 0 function 1
pchb1: ServerWorks CMIC-HE PCI/AGP bridge (rev. 0x00)
pchb2 at pci0 dev 0 function 2
pchb2: ServerWorks CMIC-HE PCI/AGP bridge (rev. 0x00)
pchb3 at pci0 dev 0 function 3
pchb3: ServerWorks CMIC-HE PCI/AGP bridge (rev. 0x00)
fxp0 at pci0 dev 4 function 0: i82559 Ethernet, rev 8
fxp0: interrupting at ioapic1 pin 3 (irq 11)
fxp0: Ethernet address 00:b0:d0:fe:bd:a7
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isp0 at pci0 dev 8 function 0: QLogic 1020 Fast Wide SCSI HBA
isp0: interrupting at ioapic1 pin 0 (irq 10)
scsibus0 at isp0: 16 targets, 8 luns per target
vga1 at pci0 dev 14 function 0: ATI Technologies Rage XL (rev. 0x27)
wsdisplay0 at vga1 kbdmux 1
wsmux1: connecting to wsdisplay0
pchb4 at pci0 dev 15 function 0
pchb4: ServerWorks CSB5 ISA bridge (rev. 0x93)
rccide0 at pci0 dev 15 function 1
rccide0: ServerWorks CSB5 IDE Controller (rev. 0x93)
rccide0: bus-master DMA support present
rccide0: primary channel configured to compatibility mode
rccide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at rccide0 channel 0
rccide0: secondary channel wired to compatibility mode
rccide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at rccide0 channel 1
ohci0 at pci0 dev 15 function 2: ServerWorks OSB4/CSB5 USB Host
Controller (rev. 0x05)
ohci0: interrupting at ioapic0 pin 5 (irq 5)
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ServerWorks OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pcib0 at pci0 dev 15 function 3
pcib0: ServerWorks product 0x0225 (rev. 0x00)
pchb5 at pci0 dev 16 function 0
pchb5: ServerWorks CIOB-X PCI-X bridge (rev. 0x03)
pci1 at pchb5 bus 1
pci1: i/o space, memory space enabled
bge0 at pci1 dev 6 function 0: Broadcom BCM5700 Gigabit Ethernet
bge0: interrupting at ioapic1 pin 6 (irq 11)
bge0: ASIC BCM5700 Altima (0x7104), Ethernet address 00:b0:d0:fe:bd:a8
brgphy0 at bge0 phy 1: BCM5401 1000BASE-T media interface, rev. 3
brgphy0: using BCM5401 DSP patch
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
ppb0 at pci1 dev 8 function 0: Intel product 0x0309 (rev. 0x01)
pci2 at ppb0 bus 2
pci2: i/o space, memory space enabled
Adaptec (2nd PCI Vendor ID) AIC-7899F RAID (SCSI mass storage, revision
0x01) at pci2 dev 6 function 0 not configured
Adaptec (2nd PCI Vendor ID) AIC-7899F RAID (SCSI mass storage, revision
0x01) at pci2 dev 6 function 1 not configured
aac0 at pci1 dev 8 function 1: Dell PERC 3/Di
aac0: interrupting at ioapic1 pin 4 (irq 10)
aac0: i960RX at 100MHz, 118MB cache, optional battery present, kernel
2.7-1
ld0 at aac0 unit 0: RAID 1 (Mirror)
ld0: 17355 MB, 8815 cyl, 64 head, 63 sec, 512 bytes/sect x 35544576
sectors
ld1 at aac0 unit 1: RAID 5
ld1: 136 GB, 17847 cyl, 255 head, 63 sec, 512 bytes/sect x 286714368
sectors
pchb6 at pci0 dev 16 function 2
pchb6: ServerWorks CIOB-X PCI-X bridge (rev. 0x03)
pci3 at pchb6 bus 3
pci3: i/o space, memory space enabled
pchb7 at pci0 dev 17 function 0
pchb7: ServerWorks CIOB-X PCI-X bridge (rev. 0x03)
pci4 at pchb7 bus 8
pci4: i/o space, memory space enabled
pchb8 at pci0 dev 17 function 2
pchb8: ServerWorks CIOB-X PCI-X bridge (rev. 0x03)
pci5 at pchb8 bus 13
pci5: i/o space, memory space enabled
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 mux 1
wskbd0: connecting to wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
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
ioapic2: enabling
ioapic1: enabling
ioapic0: enabling
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
ch0 at scsibus0 target 1 lun 0: <ADIC, FastStor DLT, 0119> changer
removable
ch0: 6 slots, 1 drive, 1 picker, 0 portals
ch0: async, 8-bit transfers
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <TOSHIBA DVD-ROM SD-C2502, 9200001000, 1D13>
cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(rccide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
(Ultra/33) (using DMA data transfers)
st0 at scsibus0 target 3 lun 0: <QUANTUM, DLT8000, 022C> tape removable
st0: density code 27, variable blocks, write-enabled
st0: sync (100.00ns offset 8), 16-bit (20.000MB/s) transfers
umodem0 at uhub0 port 1 configuration 2 interface 0
umodem0: Lucent Technologies, Inc. ELSA Modem Board, rev 1.00/1.00, addr
2, iclass 2/2
umodem0: data interface 1, has CM over data, has break
umodem0: status change notification available
ucom0 at umodem0
boot device: ld0
root on ld0a dumps on ld0b
root file system type: ffs
cpu1: CPU 2 running
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)