usb/107935: [uplcom] panic while accessing /dev/cuaU0

Alexander Logvinov ports at logvinov.com
Mon Jan 15 01:10:27 UTC 2007


>Number:         107935
>Category:       usb
>Synopsis:       [uplcom] panic while accessing /dev/cuaU0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 15 01:10:22 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Logvinov
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
>Environment:

>Description:

 I had 100% reproducible panic on 6.2RC2 and now I have it on 6.2-RELEASE with ucom, uplcom.

 I have USR Courier V.Everthing External Modem connected with RS232->USB cable to box.

# dmesg | grep ucom
ucom0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00, addr 3

# cat /etc/ttys  | grep ttyU0
ttyU0   "/usr/libexec/getty std.57600"  dialup  on  insecure

# ps ax | grep ttyU0
 1236  ??  I      0:00,00 /usr/libexec/getty std.57600 ttyU0

# ls -l /dev/cuaU*
crw-rw----  1 uucp  dialer    0,  70 12 ÿíâ 13:30 /dev/cuaU0
crw-rw----  1 uucp  dialer    0,  71 12 ÿíâ 13:30 /dev/cuaU0.init
crw-rw----  1 uucp  dialer    0,  72 12 ÿíâ 13:30 /dev/cuaU0.lock

 When I try to run minicom I get this:

# minicom
LANG/ja
LANG/ko
LANG/ru
minicom: Cannot open /dev/cuaU0: Input/output error

# dmesg
ucom0: open bulk out error (addr 2): IN_USE

 Then I try again

# minicom

 and get a panic:

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x1c
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc04a6b1a
stack pointer           = 0x28:0xe714daf0
frame pointer           = 0x28:0xe714db04
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         = 1376 (minicom)
trap number             = 12
panic: page fault
cpuid = 0
Uptime: 9m10s
Dumping 1022 MB (4 chunks)
  chunk 0: 1MB (157 pages) ... ok
  chunk 1: 1022MB (261494 pages) 1006 990 974 958 942 926 910 894 878 862 846 830 814 798 782 766 750 734 718 702 686 670 654 638 622 606 590 574 558 542 526 510 494 478 462 446 430 414 398 382 366 350 334 318 302 286 270 254 238 222 206 190 174 158 142 126 110 94 78 62 46 30 14

#0  doadump () at pcpu.h:165
165             __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0  doadump () at pcpu.h:165
#1  0xc0506ce9 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xc0507307 in panic (fmt=0xc06853cb "%s") at /usr/src/sys/kern/kern_shutdown.c:565
#3  0xc065e5b8 in trap_fatal (frame=0xe714dab0, eva=28) at /usr/src/sys/i386/i386/trap.c:837
#4  0xc065e858 in trap_pfault (frame=0xe714dab0, usermode=0, eva=28)
    at /usr/src/sys/i386/i386/trap.c:745
#5  0xc065ec40 in trap (frame=
      {tf_fs = -1067122680, tf_es = 40, tf_ds = -418119640, tf_edi = 0, tf_esi = -994371968, tf_ebp = -418063612, tf_isp = -418063652, tf_ebx = -996246928, tf_edx = -1066708223, tf_ecx = -1068864777, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1068864742, tf_cs = 32, tf_eflags = 66178, tf_esp = -418063600, tf_ss = 0}) at /usr/src/sys/i386/i386/trap.c:435
#6  0xc064960a in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#7  0xc04a6b1a in uhci_softintr (v=0xc47e8000) at /usr/src/sys/dev/usb/uhci.c:1303
#8  0xc04a723a in uhci_abort_xfer (xfer=0xc4bdc800, status=3228259073)
    at /usr/src/sys/dev/usb/uhci.c:2000
#9  0xc04b3e89 in usbd_abort_pipe (pipe=0xc4bb1680) at /usr/src/sys/dev/usb/usbdi.c:762
#10 0xc04a2ac1 in ucomstopread (sc=0x0) at /usr/src/sys/dev/usb/ucom.c:855
#11 0xc04a2bf2 in ucomparam (tp=0xc4841400, t=0xc6bda400) at /usr/src/sys/dev/usb/ucom.c:497
#12 0xc05420fd in ttioctl (tp=0xc4841400, cmd=2150396948, data=0xc6bda400, flag=3)
    at /usr/src/sys/kern/tty.c:1075
#13 0xc054367b in ttyioctl (dev=0xc06b5301, cmd=2150396948, data=0xc6bda400 "\001", flag=3, td=0x0)
    at /usr/src/sys/kern/tty.c:3260
#14 0xc04d26cf in giant_ioctl (dev=0xc483f000, cmd=0, data=0x0, fflag=0, td=0x0)
    at /usr/src/sys/kern/kern_conf.c:306
#15 0xc04b7e8d in devfs_ioctl_f (fp=0xc46cd990, com=2150396948, data=0xc6bda400, cred=0xc4f7da80,
    td=0xc49b5300) at /usr/src/sys/fs/devfs/devfs_vnops.c:479
#16 0xc0531020 in ioctl (td=0xc49b5300, uap=0xe714dd04) at file.h:264
#17 0xc065f0b8 in syscall (frame=
      {tf_fs = -1067188165, tf_es = 59, tf_ds = 59, tf_edi = 3, tf_esi = 0, tf_ebp = -1077943160, tf_isp = -418063004, tf_ebx = 673891360, tf_edx = -1077943136, tf_ecx = -1077943136, tf_eax = 54, tf_trapno = 12, tf_err = 2, tf_eip = 673827683, tf_cs = 51, tf_eflags = 582, tf_esp = -1077943252, tf_ss = 59}) at /usr/src/sys/i386/i386/trap.c:983
#18 0xc064965f in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:200
#19 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)

# dmesg
Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE #6: Fri Jan 12 13:05:07 YAKT 2007
    user at blg.akavia.ru:/usr/obj/usr/src/sys/AKA
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) D CPU 3.00GHz (2995.51-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf62  Stepping = 2
  Features=0xbfebfbff<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,PBE>
  Features2=0xe43d<SSE3,RSVD2,MON,DS_CPL,VMX,CNTX-ID,CX16,<b14>,<b15>>
  AMD Features=0x20000000<LM>
  AMD Features2=0x1<LAHF>
  Cores per package: 2
real memory  = 1072128000 (1022 MB)
avail memory = 1044230144 (995 MB)
ACPI APIC Table: <INTEL  04DT044 >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 5
ioapic1: WARNING: intbase 30 != expected base 24
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 30-53 on motherboard
kbd1 at kbdmux0
acpi0: <INTEL 04DT044> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
acpi_button0: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 0.0 on pci1
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 28.4 on pci0
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 28.5 on pci0
pci4: <ACPI PCI bus> on pcib4
em0: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port 0x2000-0x201f mem 0x48180000-0x4819ffff,0x48100000-0x4817ffff irq 17 at device 0.0 on pci4
em0: Ethernet address: 00:13:20:d6:12:bb
atapci0: <GENERIC ATA controller> port 0x2040-0x2047,0x2050-0x2053,0x2038-0x203f,0x204c-0x204f,0x2020-0x202f irq 18 at device 0.2 on pci4
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
pci4: <simple comms, UART> at device 0.3 (no driver attached)
pci4: <serial bus> at device 0.4 (no driver attached)
uhci0: <UHCI (generic) USB controller> port 0x3080-0x309f irq 23 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <UHCI (generic) USB controller> 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
uhci1: <UHCI (generic) USB controller> port 0x3060-0x307f irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <UHCI (generic) USB controller> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <UHCI (generic) USB controller> port 0x3040-0x305f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <UHCI (generic) USB controller> on uhci2
usb2: 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
uhci3: <UHCI (generic) USB controller> port 0x3020-0x303f irq 16 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <UHCI (generic) USB controller> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0x48200400-0x482007ff irq 23 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib5: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci5: <ACPI PCI bus> on pcib5
pci5: <display, VGA> at device 4.0 (no driver attached)
em1: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port 0x1100-0x113f mem 0x48020000-0x4803ffff,0x48000000-0x4801ffff irq 17 at device 5.0 on pci5
em1: Ethernet address: 00:13:20:d6:12:bc
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci1: <Intel ICH7 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x30b0-0x30bf irq 18 at device 31.1 on pci0
ata0: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
atapci2: <Intel ICH7 SATA300 controller> port 0x30c8-0x30cf,0x30e4-0x30e7,0x30c0-0x30c7,0x30e0-0x30e3,0x30a0-0x30af mem 0x48200000-0x482003ff irq 19 at device 31.2 on pci0
atapci2: AHCI Version 01.10 controller with 4 ports detected
ata4: <ATA channel 0> on atapci2
ata5: <ATA channel 1> on atapci2
ata6: <ATA channel 2> on atapci2
ata7: <ATA channel 3> on atapci2
ichsmb0: <SMBus controller> port 0x3000-0x301f irq 19 at device 31.3 on pci0
ichsmb0: [GIANT-LOCKED]
smbus0: <System Management Bus> on ichsmb0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
orm0: <ISA Option ROM> at iomem 0xc0000-0xcafff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ugen0: American Power Conversion Smart-UPS 750 RM FW:619.3.I USB FW:1.5, rev 1.10/0.06, addr 2
ucom0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00, addr 3
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding enabled, default to deny, logging limited to 100 packets/entry by default
acd0: DVDR <PIONEER DVD-RW DVR-K16/1.33> at ata0-master UDMA33
ad8: 152627MB <WDC WD1600JS-00MHB0 02.01C03> at ata4-master SATA300
ad10: 152627MB <WDC WD1600JS-00MHB0 02.01C03> at ata5-master SATA300
ar0: 152520MB <LSILogic v3 MegaRAID RAID1> status: READY
ar0: disk0 READY (master) using ad8 at ata4-master
ar0: disk1 READY (mirror) using ad10 at ata5-master
SMP: AP CPU #1 Launched!
cd0 at ata0 bus 0 target 0 lun 0
cd0: <PIONEER DVD-RW  DVR-K16 1.33> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/ar0s1a
WARNING: /var was not properly dismounted
int0: link state changed to UP
int0: promiscuous mode enabled

>How-To-Repeat:

 Edit /etc/ttys to add ttyU0
 Configure minicom with port /dev/cuaU0
 Run minicom twice:
 
# minicom
# minicom

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-usb mailing list