From nobody@FreeBSD.org  Sun Feb 17 11:19:37 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 82DC537B404
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 17 Feb 2002 11:19:37 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g1HJJbP58799;
	Sun, 17 Feb 2002 11:19:37 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200202171919.g1HJJbP58799@freefall.freebsd.org>
Date: Sun, 17 Feb 2002 11:19:37 -0800 (PST)
From: Ryan Johnson <rjohnson_14@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: After printing to HP Deskjet 656c USB printer, computer hangs
X-Send-Pr-Version: www-1.0
X-GNATS-Notify: iedowse

>Number:         35061
>Category:       kern
>Synopsis:       After printing to HP Deskjet 656c USB printer, computer hangs
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-usb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 17 11:20:01 PST 2002
>Closed-Date:    Tue Jan 04 20:18:40 GMT 2005
>Last-Modified:  Tue Jan 04 20:18:40 GMT 2005
>Originator:     Ryan Johnson
>Release:        4.5-STABLE
>Organization:
>Environment:
FreeBSD piccolo.kc.rr.com 4.5-STABLE FreeBSD 4.5-STABLE #0: Sat Feb 16 17:08:26 CST 2002 	ryan@piccolo.kc.rr.com:/usr/obj/usr/src/sys/PICCOLO  i386

>Description:
After any file is printed to a HP Deskjet 656c printer (USB), the system hangs. I have enabled debugging for the ulpt driver, here is the output:

ulptwrite
ulpt_status: status=0x18 err=0
ulptwrite: transfer 1024 bytes
<these 3 messages repeated until printing is done>
ulptwrite
ulpt_status: status=0x18 err=0
ulptwrite: transfer <number less than 1024> bytes
ulpt_input: got some data
<computer hangs here>

>How-To-Repeat:
Print any file to a HP Deskjet 656c printer.
>Fix:
unknown
>Release-Note:
>Audit-Trail:

From: Josef Karthauser <joe@tao.org.uk>
To: Ryan Johnson <rjohnson_14@hotmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/35061: After printing to HP Deskjet 656c USB printer, computer hangs
Date: Mon, 18 Feb 2002 16:15:40 +0000

 --Md/poaVZ8hnGTzuv
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Sun, Feb 17, 2002 at 11:19:37AM -0800, Ryan Johnson wrote:
 >=20
 > >Description:
 > After any file is printed to a HP Deskjet 656c printer (USB), the system =
 hangs. I have enabled debugging for the ulpt driver, here is the output:
 >=20
 > ulptwrite
 > ulpt_status: status=3D0x18 err=3D0
 > ulptwrite: transfer 1024 bytes
 > <these 3 messages repeated until printing is done>
 > ulptwrite
 > ulpt_status: status=3D0x18 err=3D0
 > ulptwrite: transfer <number less than 1024> bytes
 > ulpt_input: got some data
 > <computer hangs here>
 
 Are you using the patch set that I announced on -stable a few days ago?
 
 Also, it's important to know which usb controller device you're using.
 A copy of your dmesg should provide that information (uhci or ohci).
 
 Thanks,
 Joe
 
 --Md/poaVZ8hnGTzuv
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iEYEARECAAYFAjxxKKsACgkQXVIcjOaxUBbZfQCfa8SCpRn6S8/10Vwe3L2sx7pf
 a4MAnAvf68VW5nwx4j56+x87RP2zcuco
 =rYC3
 -----END PGP SIGNATURE-----
 
 --Md/poaVZ8hnGTzuv--

From: "Ryan Johnson" <rjohnson_14@hotmail.com>
To: joe@tao.org.uk
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/35061: After printing to HP Deskjet 656c USB printer, computer hangs
Date: Mon, 18 Feb 2002 17:18:33 -0600

 >From: Josef Karthauser <joe@tao.org.uk>
 >To: Ryan Johnson <rjohnson_14@hotmail.com>
 >CC: freebsd-gnats-submit@FreeBSD.org
 >Subject: Re: kern/35061: After printing to HP Deskjet 656c USB printer, 
 >computer hangs
 >Date: Mon, 18 Feb 2002 16:15:40 +0000
 >MIME-Version: 1.0
 >Received: from [212.135.162.51] by hotmail.com (3.2) with ESMTP id 
 >MHotMailBE3A7414002540042A1ED487A2330A250; Mon, 18 Feb 2002 08:17:25 -0800
 >Received: by tao.org.uk (Postfix, from userid 100)id 5C368314; Mon, 18 Feb 
 >2002 16:15:40 +0000 (GMT)
 >From joe@tao.org.uk Mon, 18 Feb 2002 08:17:45 -0800
 >Message-ID: <20020218161540.GC40657@genius.tao.org.uk>
 >References: <200202171919.g1HJJbP58799@freefall.freebsd.org>
 >In-Reply-To: <200202171919.g1HJJbP58799@freefall.freebsd.org>
 >User-Agent: Mutt/1.3.27i
 >
 >On Sun, Feb 17, 2002 at 11:19:37AM -0800, Ryan Johnson wrote:
 > >
 > > >Description:
 > > After any file is printed to a HP Deskjet 656c printer (USB), the system 
 >hangs. I have enabled debugging for the ulpt driver, here is the output:
 > >
 > > ulptwrite
 > > ulpt_status: status=0x18 err=0
 > > ulptwrite: transfer 1024 bytes
 > > <these 3 messages repeated until printing is done>
 > > ulptwrite
 > > ulpt_status: status=0x18 err=0
 > > ulptwrite: transfer <number less than 1024> bytes
 > > ulpt_input: got some data
 > > <computer hangs here>
 >
 >Are you using the patch set that I announced on -stable a few days ago?
 >
 >Also, it's important to know which usb controller device you're using.
 >A copy of your dmesg should provide that information (uhci or ohci).
 >
 >Thanks,
 >Joe
 ><< attach3 >>
 
 I don't have access to the computer at the moment (home internet connection 
 may be down) but the usb controller is uhci. If you need the dmesg I will 
 post it when I get home. I cvsupped the day after your usb changes went into 
 -stable (feb. 16th), so I do have the most current usb changes. The printer 
 worked fine using the feb. 3rd -current snapshot, but it wouldn't even 
 attempt to print in -stable until your recent usb changes were merged.
 
 Ryan
 
 
 
 
 _________________________________________________________________
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx
 

From: Josef Karthauser <joe@tao.org.uk>
To: Ryan Johnson <rjohnson_14@hotmail.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/35061: After printing to HP Deskjet 656c USB printer, computer hangs
Date: Tue, 19 Feb 2002 01:42:26 +0000

 --YToU2i3Vx8H2dn7O
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon, Feb 18, 2002 at 05:18:33PM -0600, Ryan Johnson wrote:
 >=20
 > >Are you using the patch set that I announced on -stable a few days ago?
 > >
 > >Also, it's important to know which usb controller device you're using.
 > >A copy of your dmesg should provide that information (uhci or ohci).
 > >
 > >Thanks,
 > >Joe
 > ><< attach3 >>
 >=20
 > I don't have access to the computer at the moment (home internet connecti=
 on=20
 > may be down) but the usb controller is uhci. If you need the dmesg I will=
 =20
 > post it when I get home. I cvsupped the day after your usb changes went=
 =20
 > into -stable (feb. 16th), so I do have the most current usb changes. The=
 =20
 > printer worked fine using the feb. 3rd -current snapshot, but it wouldn't=
 =20
 > even attempt to print in -stable until your recent usb changes were merge=
 d.
 
 Can you try the patch that I sent to the -stable mailing list please?
 That brings all the differences from -current into -stable and so
 should behave the same way as your -current snapshot did.
 
 Joe
 
 --YToU2i3Vx8H2dn7O
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iEYEARECAAYFAjxxrYIACgkQXVIcjOaxUBbEjQCfZ8D49gCPKKWte1fc8LQTk1Bl
 rd8AoNYRrcypnfNWi17CcQoRXC5xVRHM
 =wfk9
 -----END PGP SIGNATURE-----
 
 --YToU2i3Vx8H2dn7O--

From: "Ryan Johnson" <rjohnson_14@hotmail.com>
To: joe@tao.org.uk
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/35061: After printing to HP Deskjet 656c USB printer, computer hangs
Date: Tue, 19 Feb 2002 04:43:34 -0600

 >From: Josef Karthauser <joe@tao.org.uk>
 >To: Ryan Johnson <rjohnson_14@hotmail.com>
 >Subject: Re: kern/35061: After printing to HP Deskjet 656c USB printer, 
 >computer hangs
 >Date: Tue, 19 Feb 2002 01:42:26 +0000
 >
 >On Mon, Feb 18, 2002 at 05:18:33PM -0600, Ryan Johnson wrote:
 > >
 > > >Are you using the patch set that I announced on -stable a few days ago?
 > > >
 > > >Also, it's important to know which usb controller device you're using.
 > > >A copy of your dmesg should provide that information (uhci or ohci).
 > > >
 > > >Thanks,
 > > >Joe
 > > ><< attach3 >>
 > >
 > > I don't have access to the computer at the moment (home internet 
 >connection
 > > may be down) but the usb controller is uhci. If you need the dmesg I 
 >will
 > > post it when I get home. I cvsupped the day after your usb changes went
 > > into -stable (feb. 16th), so I do have the most current usb changes. The
 > > printer worked fine using the feb. 3rd -current snapshot, but it 
 >wouldn't
 > > even attempt to print in -stable until your recent usb changes were 
 >merged.
 >
 >Can you try the patch that I sent to the -stable mailing list please?
 >That brings all the differences from -current into -stable and so
 >should behave the same way as your -current snapshot did.
 >
 >Joe
 
 I just applied the patch, now the kernel panics shortly after the printer
 starts. Here is the backtrace:
 
 Fatal trap 12: page fault while in kernel mode
 fault virtual address	= 0x8
 fault code		= supervisor read, page not present
 instruction pointer	= 0x8:0xc023bfe3
 stack pointer	        = 0x10:0xc7861d3c
 frame pointer	        = 0x10:0xc7861d48
 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		= 202 (cat)
 interrupt mask		= bio
 trap number		= 12
 panic: page fault
 
 syncing disks... 24 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
 giving up on 1 buffers
 Uptime: 1m6s
 
 dumping to dev #ad/0x20021, offset 294912
 dump ata2: resetting devices .. done
 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 
 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 
 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 
 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
 ---
 #0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:485
 485		if (dumping++) {
 (kgdb) bt
 #0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:485
 #1  0xc015b0d7 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:314
 #2  0xc015b4fc in poweroff_wait (junk=0xc02f3cec, howto=-1070647281)
     at /usr/src/sys/kern/kern_shutdown.c:593
 #3  0xc02a57ca in trap_fatal (frame=0xc7861cfc, eva=8)
     at /usr/src/sys/i386/i386/trap.c:966
 #4  0xc02a549d in trap_pfault (frame=0xc7861cfc, usermode=0, eva=8)
     at /usr/src/sys/i386/i386/trap.c:859
 #5  0xc02a505b in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16,
       tf_edi = -1063038976, tf_esi = -1063018720, tf_ebp = -947511992,
       tf_isp = -947512024, tf_ebx = 0, tf_edx = -1063035764,
       tf_ecx = -1062558080, tf_eax = -1063038976, tf_trapno = 12, tf_err = 
 0,
       tf_eip = -1071398941, tf_cs = 8, tf_eflags = 66051,
       tf_esp = -1062052288, tf_ss = -1063038976})
     at /usr/src/sys/i386/i386/trap.c:458
 #6  0xc023bfe3 in uhci_remove_bulk (sc=0xc0a35000, sqh=0xc0a39f20)
     at /usr/src/sys/dev/usb/uhci.c:358
 #7  0xc023d6ad in uhci_device_bulk_done (xfer=0xc0aaa700)
     at /usr/src/sys/dev/usb/uhci.c:2614
 #8  0xc023f7be in usb_transfer_complete (xfer=0xc0aaa700)
     at /usr/src/sys/dev/usb/usbdi.c:813
 #9  0xc023cb41 in uhci_abort_xfer_end (v=0xc0aaa700)
     at /usr/src/sys/dev/usb/uhci.c:1868
 #10 0xc023cb24 in uhci_abort_xfer (xfer=0xc0aaa700, status=USBD_CANCELLED)
     at /usr/src/sys/dev/usb/uhci.c:1853
 #11 0xc023ca99 in uhci_device_bulk_abort (xfer=0xc0aaa700)
     at /usr/src/sys/dev/usb/uhci.c:1817
 #12 0xc023f709 in usbd_ar_pipe (pipe=0xc0aaa680)
     at /usr/src/sys/dev/usb/usbdi.c:759
 #13 0xc023f439 in usbd_abort_pipe (pipe=0xc0aaa680)
     at /usr/src/sys/dev/usb/usbdi.c:553
 #14 0xc0246a44 in ulptclose (dev=0xc0a34080, flag=2, mode=8192, 
 p=0xc6ad3380)
     at /usr/src/sys/dev/usb/ulpt.c:627
 #15 0xc0193d74 in spec_close (ap=0xc7861e4c)
     at /usr/src/sys/miscfs/specfs/spec_vnops.c:591
 #16 0xc022acb6 in ufsspec_close (ap=0xc7861e4c)
     at /usr/src/sys/ufs/ufs/ufs_vnops.c:1900
 #17 0xc022b27d in ufs_vnoperatespec (ap=0xc7861e4c)
     at /usr/src/sys/ufs/ufs/ufs_vnops.c:2440
 #18 0xc018f6d0 in vn_close (vp=0xc777f140, flags=2, cred=0xc0bb6e00,
     p=0xc6ad3380) at vnode_if.h:218
 #19 0xc0190003 in vn_closefile (fp=0xc0b57400, p=0xc6ad3380)
     at /usr/src/sys/kern/vfs_vnops.c:693
 #20 0xc0150f7b in fdrop (fp=0xc0b57400, p=0xc6ad3380)
     at /usr/src/sys/sys/file.h:217
 #21 0xc0150ec3 in closef (fp=0xc0b57400, p=0xc6ad3380)
     at /usr/src/sys/kern/kern_descrip.c:1218
 #22 0xc0150425 in close (p=0xc6ad3380, uap=0xc7861f80)
     at /usr/src/sys/kern/kern_descrip.c:579
 #23 0xc02a5a79 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47,
       tf_edi = -1077937072, tf_esi = 0, tf_ebp = -1077937264,
       tf_isp = -947511340, tf_ebx = 134575128, tf_edx = 1, tf_ecx = 10,
       tf_eax = 6, tf_trapno = 12, tf_err = 2, tf_eip = 134559388, tf_cs = 
 31,
       tf_eflags = 643, tf_esp = -1077937292, tf_ss = 47})
     at /usr/src/sys/i386/i386/trap.c:1167
 #24 0xc0299885 in Xint0x80_syscall ()
 #25 0x804befb in ?? ()
 #26 0x804831f in ?? ()
 #27 0x8048135 in ?? ()
 
 If you need any more information let me know.
 
 Ryan
 
 
 
 _________________________________________________________________
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx
 
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sun Dec 1 14:34:15 PST 2002 
State-Changed-Why:  

Does this still happen with a more recent -STABLE? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35061 

From: Ian Dowse <iedowse@maths.tcd.ie>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/35061: After printing to HP Deskjet 656c USB printer, computer hangs 
Date: Sat, 07 Dec 2002 05:00:50 +0000

 Adding to tha audit trail:
 
 In message <F16hNEPWOQUtHwLrn0z0000ac09@hotmail.com>, Ryan Johnson writes:
 >>From: Ian Dowse <iedowse@FreeBSD.org>
 >>Does this still happen with a more recent -STABLE?
 
 >I haven't been able to get the printer to do anything at all using
 >just -STABLE without the usb patches that Josef submitted. Sending
 >a text file directly to /dev/ulpt0 or /dev/unlpt0 just hangs until
 >I press CTRL-C.
State-Changed-From-To: feedback->open 
State-Changed-By: iedowse 
State-Changed-When: Fri Dec 6 21:19:22 PST 2002 
State-Changed-Why:  

The bug still exists. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35061 

From: "KAREN THODE" <thode12@msn.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <rjohnson_14@hotmail.com>
Cc:  
Subject: Re: kern/35061: After printing to HP Deskjet 656c USB printer, computer hangs
Date: Tue, 24 Dec 2002 07:58:23 -0600

 ------=_NextPart_001_0003_01C2AB22.3B750E00
 Content-Type: text/plain; charset="iso-8859-1"
 
 The panic is probably occurring in SPLUSBCHECK.
 
 Lucas
 ------=_NextPart_001_0003_01C2AB22.3B750E00
 Content-Type: text/html; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <HTML><BODY STYLE=3D"font:10pt verdana; border:none;"><DIV>The panic is p=
 robably occurring in SPLUSBCHECK.</DIV> <DIV>&nbsp;</DIV> <DIV>Lucas<BR><=
 BR></DIV></BODY></HTML>
 
 ------=_NextPart_001_0003_01C2AB22.3B750E00--

From: Marc Wiz <marc@wiz.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/35061: After printing to HP Deskjet 656c USB printer, computer hangs
Date: Thu, 10 Apr 2003 17:45:07 -0500

 Does anyone know what the status of this bug is?
 
 I am using 4.7 Release and am experiencing no hangs but cannot output
 anything to the printer.
 
 uhci0: <Intel 82801AA (ICH) USB controller> port 0xff80-0xff9f irq 2 at device 3
 1.2 on pci0
 usb0: <Intel 82801AA (ICH) 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
 
 Is there anything I can do to help get this bug fixed?   Would
 enabling USB driver debug be helpful in this case?
 
 I would like to be able to print on HP-656C :-)
 
 Thanks,
 Marc
 -- 
 Marc Wiz
 marc@wiz.com
 Yes, that really is my last name.
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: kris 
Responsible-Changed-When: Thu Jul 17 17:29:26 PDT 2003 
Responsible-Changed-Why:  
Assign to USB maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35061 
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Thu Nov 4 02:29:38 GMT 2004 
State-Changed-Why:  

Is this problem still present in more recent FreeBSD releases? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35061 
Responsible-Changed-From-To: joe->freebsd-usb 
Responsible-Changed-By: joe 
Responsible-Changed-When: Wed Nov 10 10:56:02 GMT 2004 
Responsible-Changed-Why:  
Hand this over to the usb mailling list. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35061 
State-Changed-From-To: feedback->closed 
State-Changed-By: julian 
State-Changed-When: Tue Jan 4 20:16:53 GMT 2005 
State-Changed-Why:  
Submitter does not have the printer any more.. 
substantial work on USB makes it possible this has been fixed and since 
we can not reproduce it, close it. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=35061 
>Unformatted:
