Date: Mon, 4 Apr 2005 20:50:10 GMT From: Mike Tancsa <mike@sentex.net> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/79420: panic using uplcom or uftdi serial adaptor and modem (USB) Message-ID: <200504042050.j34KoAYB031765@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/79420; it has been noted by GNATS.
From: Mike Tancsa <mike@sentex.net>
To: Ian Dowse <iedowse@maths.tcd.ie>, Bruce Evans <bde@zeta.org.au>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/79420: panic using uplcom or uftdi serial adaptor and
modem (USB)
Date: Mon, 04 Apr 2005 16:46:21 -0400
At 04:08 PM 04/04/2005, Ian Dowse wrote:
>In message <20050404211652.F34170@delplex.bde.org>, Bruce Evans writes:
> >The (flag & FREAD) case is supposed to flush input as much as possible
> >(from any driver buffers and from hardware buffers if possible). =
Starting
> >and stopping the transfer is an attempt to do this. I don't know if it
> >works.
>
>
>Hi Bruce,
>
>In this case, removing the stop-start pair is just a temporary but
>effective workaround, as it avoids the panics at the cost of an
Just to confirm, I updated my RELENG_5 test box in question, and it didnt=20
take long to panic it. This time, I was just doing a couple of fetches=20
across the dialup links ( I am testing with 2 units) and same panic.
savecore: reboot after panic: uhci_abort_xfer: not in process context
savecore: writing core to vmcore.24
[releng5-865]# kgdb /usr/obj/usr/src/sys/pioneer/kernel.debug=20
/var/crash/vmcore.24
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so:=
=20
Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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-marcel-freebsd".
#0 doadump () at pcpu.h:159
159 __asm __volatile("movl %%fs:0,%0" : "=3Dr" (td));
(kgdb) bt full
#0 doadump () at pcpu.h:159
No locals.
#1 0xc052325e in boot (howto=3D260) at=
/usr/src/sys/kern/kern_shutdown.c:410
first_buf_printf =3D 1
#2 0xc05234f4 in panic (fmt=3D0xc07003ab "uhci_abort_xfer: not in process=
=20
context") at /usr/src/sys/kern/kern_shutdown.c:566
td =3D (struct thread *) 0xc14fa000
bootopt =3D 260
newpanic =3D 0
ap =3D 0xc14fa000 "=C4\001P=C1=F0=EAO=C1"
buf =3D "uhci_abort_xfer: not in process context", '\0' <repeats=
216=20
times>
#3 0xc04c92b7 in uhci_abort_xfer (xfer=3D0xc1850400,=20
status=3DUSBD_NORMAL_COMPLETION) at /usr/src/sys/dev/usb/uhci.c:1958
uxfer =3D (struct uhci_xfer *) 0xc1850400
ii =3D (uhci_intr_info_t *) 0xc185046c
upipe =3D (struct uhci_pipe *) 0xc1992e00
sc =3D (uhci_softc_t *) 0xc15e0000
std =3D (uhci_soft_td_t *) 0x0
#4 0xc04c9239 in uhci_device_bulk_abort (xfer=3D0xc1850400) at=20
/usr/src/sys/dev/usb/uhci.c:1921
No locals.
#5 0xc04d66bb in usbd_ar_pipe (pipe=3D0xc1992e00) at=20
/usr/src/sys/dev/usb/usbdi.c:762
xfer =3D 0x0
#6 0xc04d641f in usbd_abort_pipe (pipe=3D0xc1992e00) at=20
/usr/src/sys/dev/usb/usbdi.c:556
err =3D USBD_NORMAL_COMPLETION
#7 0xc04c3ed1 in ucomstopread (sc=3D0x0) at=
/usr/src/sys/dev/usb/ucom.c:1160
No locals.
#8 0xc04c3a96 in ucomstop (tp=3D0xc168e000, flag=3D3) at=20
/usr/src/sys/dev/usb/ucom.c:934
sc =3D (struct ucom_softc *) 0xc1617880
#9 0xc054ec2b in ttyflush (tp=3D0xc168e000, rw=3D3) at=20
/usr/src/sys/kern/tty.c:1420
No locals.
#10 0xc054cf0d in ttyinput (c=3D28, tp=3D0xc168e000) at=
/usr/src/sys/kern/tty.c:433
iflag =3D 11010
lflag =3D 1483
cc =3D (cc_t *) 0xc168e0b4=20
"\004=FF=FF\177\027\025\022\b\003\034\032\031\021\023\026\017\001"
i =3D -1050576768
err =3D 0
#11 0xc04c3dc1 in ucomreadcb (xfer=3D0xc1850400, p=3D0xc1617880,=20
status=3DUSBD_NORMAL_COMPLETION) at linedisc.h:122
sc =3D (struct ucom_softc *) 0xc1617880
tp =3D (struct tty *) 0xc168e000
err =3D USBD_NORMAL_COMPLETION
cc =3D 32
cp =3D (u_char *) 0xc15e9d58 "\034=ACI_E=C8gb\2141J}]\201=C2=A5-\03=
5S=A8=E8=20
M=A2rq=AB<\016=A1=FF=C3=F6=F9/\035\035=BE<y~/E\b"
lostcc =3D 0
#12 0xc04d67fc in usb_transfer_complete (xfer=3D0xc1850400) at=20
/usr/src/sys/dev/usb/usbdi.c:851
pipe =3D 0xc1992e00
dmap =3D (usb_dma_t *) 0xc185043c
sync =3D 0
erred =3D 0
---Type <return> to continue, or q <return> to quit---
repeat =3D 0
polling =3D 0
#13 0xc04c8b1f in uhci_idone (ii=3D0x0) at /usr/src/sys/dev/usb/uhci.c:1500
xfer =3D 0xc1850400
upipe =3D (struct uhci_pipe *) 0xc1992e00
std =3D (uhci_soft_td_t *) 0x0
status =3D 0
nstatus =3D 0
actlen =3D 56
#14 0xc04c89fc in uhci_check_intr (sc=3D0xc15e0000, ii=3D0xc185046c) at=20
/usr/src/sys/dev/usb/uhci.c:1375
std =3D (uhci_soft_td_t *) 0x0
lstd =3D (uhci_soft_td_t *) 0xc15e5f20
status =3D 0
#15 0xc04c894e in uhci_softintr (v=3D0xc15e0000) at=20
/usr/src/sys/dev/usb/uhci.c:1305
sc =3D (uhci_softc_t *) 0xc15e0000
ii =3D (uhci_intr_info_t *) 0x0
nextii =3D (uhci_intr_info_t *) 0x0
#16 0xc04d3aa5 in usb_schedsoftintr (bus=3D0x0) at=
/usr/src/sys/dev/usb/usb.c:870
No locals.
#17 0xc04c891b in uhci_intr1 (sc=3D0xc15e0000) at=20
/usr/src/sys/dev/usb/uhci.c:1275
status =3D 1
ack =3D 1
#18 0xc04c87ac in uhci_intr (arg=3D0xc15e0000) at=20
/usr/src/sys/dev/usb/uhci.c:1190
sc =3D (uhci_softc_t *) 0x0
#19 0xc050fb71 in ithread_loop (arg=3D0xc14f7400) at=20
/usr/src/sys/kern/kern_intr.c:547
ithd =3D (struct ithd *) 0xc14f7400
ih =3D (struct intrhand *) 0xc15db6c0
td =3D (struct thread *) 0xc14fa000
p =3D (struct proc *) 0xc15001c4
count =3D 0
warming =3D 0
warned =3D 0
#20 0xc050ee04 in fork_exit (callout=3D0xc050fa20 <ithread_loop>,=20
arg=3D0xc14f7400, frame=3D0xcbc67d48)
at /usr/src/sys/kern/kern_fork.c:790
p =3D (struct proc *) 0xc15001c4
td =3D (struct thread *) 0x0
#21 0xc06a648c in fork_trampoline () at=
/usr/src/sys/i386/i386/exception.s:209
No locals.
(kgdb)
---Mike=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504042050.j34KoAYB031765>
