From jin@adsl-63-198-35-122.dsl.snfc21.pacbell.net  Fri Dec 26 21:02:05 2003
Return-Path: <jin@adsl-63-198-35-122.dsl.snfc21.pacbell.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5B2F116A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Dec 2003 21:02:05 -0800 (PST)
Received: from adsl-63-198-35-122.dsl.snfc21.pacbell.net (adsl-63-198-35-122.dsl.snfc21.pacbell.net [63.198.35.122])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 88F0043D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Dec 2003 21:02:03 -0800 (PST)
	(envelope-from jin@adsl-63-198-35-122.dsl.snfc21.pacbell.net)
Received: from adsl-63-198-35-122.dsl.snfc21.pacbell.net (localhost.pacbell.net [127.0.0.1])
	by adsl-63-198-35-122.dsl.snfc21.pacbell.net (8.12.9p2/8.12.9) with ESMTP id hBR3mNs0008264
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Dec 2003 19:48:23 -0800 (PST)
	(envelope-from jin@adsl-63-198-35-122.dsl.snfc21.pacbell.net)
Received: (from jin@localhost)
	by adsl-63-198-35-122.dsl.snfc21.pacbell.net (8.12.9p2/8.12.9/Submit) id hBR3mM5S008263;
	Fri, 26 Dec 2003 19:48:23 -0800 (PST)
	(envelope-from jin)
Message-Id: <200312270348.hBR3mM5S008263@adsl-63-198-35-122.dsl.snfc21.pacbell.net>
Date: Fri, 26 Dec 2003 19:48:23 -0800 (PST)
From: "Jin Guojun[VFF]" <jin@adsl-63-198-35-122.dsl.snfc21.pacbell.net>
Reply-To: j_guojun@lbl.gov
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Dynamic attach UBS device can cause 5.2-RC system malfunction
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         60602
>Category:       kern
>Synopsis:       [usb] Dynamic attach UBS device can cause 5.2-RC system malfunction
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-usb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 26 21:10:07 PST 2003
>Closed-Date:    Fri Nov 05 06:37:24 GMT 2004
>Last-Modified:  Fri Nov 05 06:37:24 GMT 2004
>Originator:     Jin Guojun[VFF]
>Release:        FreeBSD 5.2-RC
>Organization:
>Environment:
System: FreeBSD 5.2-RC


	FreeBSD 5.2-RC2
        root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC
    Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a2c000.
    Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0a2c21c.
    Timecounter "i8254" frequency 1193182 Hz quality 0
    CPU: Pentium III/Pentium III Xeon/Celeron (463.55-MHz 686-class CPU)
      Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
      Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
    real memory  = 536858624 (511 MB)
    avail memory = 511819776 (488 MB)
    MPTable: <OEM00000 PROD00000000>
    FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
     cpu0 (BSP): APIC ID:  1
     cpu1 (AP): APIC ID:  0
    ioapic0: Assuming intbase of 0
    ioapic0 <Version 1.1> irqs 0-23 on motherboard
    Pentium Pro MTRR support enabled
    npx0: [FAST]

>Description:
	Dynamicallt attaching Sony DRX-510UL USB CD-RW drive to 5.2-RC system
	can cause system malfunction:

	Attach DRX-510UL USB CD-RW drive to system USB port:
	(1) power the drive on and reboot system --
		run command -- cdrecord -scanbus
			it shows that the drive is at SCSI 0,0,0
		run command -- cdrecord -v dev=0,0,0 image.iso

		everything is Okey.

	(2) power off the drive on and reboot system --
		After system is up, then power on the USB CD-RW drive
		and run command -- cdrecord -scanbus
			it shows that the drive is at SCSI 1,0,0
		run command -- cdrecord -v dev=1,0,0 image.iso

		# ls
		bus error
		# halt
		bus error
		# shutdown -h now
		bus error

		# some command may work


>How-To-Repeat:
	I do not have other USB drive, so I cannot tell if this is DRX-510UL
	specific.
	Hopefully, developer may verify this issue by attaching a differnt
	USB CD-RW drive.

>Fix:

	


>Release-Note:
>Audit-Trail:

From: Feisal Mohammed <feisal@uwi.tt>
To: freebsd-gnats-submit@FreeBSD.org, j_guojun@lbl.gov
Cc:  
Subject: Re: kern/60602: Dynamic attach UBS device can cause 5.2-RC system
 malfunction
Date: Sat, 24 Jan 2004 19:22:23 -0400

 Hi,
 
 I can confirm that the bug exists under 5.2-RELEASE, using a Plextor USB 
 CD-RW
 Same behavior, after using cdrecord any command such as su, ls, rm, cp 
 etc fails and dumps
 core.  After trying again, one or two times, the commands work as normal.
 
 -Feisal
 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Nov 4 06:49:13 GMT 2004 
State-Changed-Why:  
Reassign to appropriate mailing list. 


Responsible-Changed-From-To: freebsd-bugs->freebsd-usb 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Nov 4 06:49:13 GMT 2004 
Responsible-Changed-Why:  
Does this problem still recur with, e.g., 5.3-RC1? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60602 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Nov 5 06:36:36 GMT 2004 
State-Changed-Why:  
Submitter reports via email that the problem does not recur on 5.3-RC2. 

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