Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Nov 2005 17:30:21 GMT
From:      Ian Dowse <iedowse@iedowse.com>
To:        freebsd-usb@FreeBSD.org
Subject:   Re: usb/88886: cat /dev/ulpt0 -- causes fatal trap 12 (backtrace included) 
Message-ID:  <200511121730.jACHUL7T090182@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR usb/88886; it has been noted by GNATS.

From: Ian Dowse <iedowse@iedowse.com>
To: Alex Pivovarov <apivovarov@gmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: usb/88886: cat /dev/ulpt0 -- causes fatal trap 12 (backtrace included) 
Date: Sat, 12 Nov 2005 17:25:52 +0000

 In message <200511121342.jACDg5Jp044866@www.freebsd.org>, Alex Pivovarov writes
 :
 >#cat /dev/ulpt0
 >
 >causes fatal trap 12 and system begins dumping.
 
 Thanks for the bug report. Can you try the following patch? It looks
 like there has been a typo in the ulpt driver for quite a while
 that can cause it to set up two concurrent USB transfers with the
 same transfer structure.
 
 I've been able to reproduce this exact crash and the patch appears
 to fix it, so I'll commit the patch to -CURRENT now.
 
 Ian
 
 Index: ulpt.c
 ===================================================================
 RCS file: /dump/FreeBSD-CVS/src/sys/dev/usb/ulpt.c,v
 retrieving revision 1.66
 diff -u -r1.66 ulpt.c
 --- ulpt.c	6 Jan 2005 01:43:28 -0000	1.66
 +++ ulpt.c	12 Nov 2005 16:57:08 -0000
 @@ -600,7 +600,7 @@
  		}
  
  		/* If it's not opened for read the set up a reader. */
 -		if (!(flags & FREAD)) {
 +		if (!(flag & FREAD)) {
  			DPRINTF(("ulpt_open: start read callout\n"));
  			usb_callout_init(sc->sc_read_callout);
  			usb_callout(sc->sc_read_callout, hz/5, ulpt_tick, sc);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511121730.jACHUL7T090182>