NetBSD Problem Report #37369

From martin@duskware.de  Mon Nov 12 17:30:53 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 17B0363B8D7
	for <gnats-bugs@gnats.netbsd.org>; Mon, 12 Nov 2007 17:30:53 +0000 (UTC)
Message-Id: <20071112164332.A153663B8D7@narn.NetBSD.org>
Date: Mon, 12 Nov 2007 16:43:32 +0000 (UTC)
From: bennybyko@gmx.de
Reply-To: bennybyko@gmx.de
To: netbsd-bugs-owner@NetBSD.org
Subject: Unmounting mass-storage causes umount to freeze
X-Send-Pr-Version: www-1.0

>Number:         37369
>Category:       misc
>Synopsis:       Unmounting mass-storage causes umount to freeze
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 12 17:35:00 +0000 2007
>Last-Modified:  Tue Nov 13 17:00:02 +0000 2007
>Originator:     benny
>Release:        NetBSD-4.0_RC4
>Organization:
none
>Environment:
NetBSD maschine 4.0_RC4 NetBSD 4.0_RC4 (GENERIC.NOACPI) #0: Fri Nov  9 00:56:48 PST 2007  builds@wb34:/home/builds/ab/netbsd-4/i386/200711080002Z-obj/home/builds/ab/netbsd-4/src/sys/arch/i386/compile/GENERIC.NOACPI i386
>Description:
Unmounting an usb-stick from "umass0: MEDION Medion Flash XL V2.7D, rev 1.10/2.7d" (an usb-hub and card-reader) causes umount to freeze and error messages to appear in "dmesg". If the usb-stick is simply removed from the device, NetBSD freezes.
Data was correctly written to my usb-stick though.
>How-To-Repeat:
Do what I did in the problem description.
>Fix:

>Audit-Trail:
From: Allen Briggs <briggs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: misc-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: misc/37369: Unmounting mass-storage causes umount to freeze
Date: Mon, 12 Nov 2007 12:43:04 -0500

 On Mon, Nov 12, 2007 at 05:35:00PM +0000, bennybyko@gmx.de wrote:
 > Unmounting an usb-stick from "umass0: MEDION Medion Flash XL V2.7D, rev 1.10/2.7d" (an usb-hub and card-reader) causes umount to freeze and error messages to appear in "dmesg". If the usb-stick is simply removed from the device, NetBSD freezes.

 Can you copy the messages from "dmesg"?  It would be useful to know what
 it's complaining about.  This has generally worked for me in the past
 with different usb sticks and drives.

 Thanks,
 -allen

 -- 
 Allen Briggs  |  http://www.ninthwonder.com/~briggs/  |  briggs@ninthwonder.com

From: "bennybyko@gmx.de" <bennybyko@gmx.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/37369: Unmounting mass-storage causes umount to freeze
Date: Mon, 12 Nov 2007 20:50:47 +0000

 Allen Briggs wrote:
 > The following reply was made to PR misc/37369; it has been noted by GNATS.
 >
 > From: Allen Briggs <briggs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: misc-bug-people@netbsd.org, gnats-admin@netbsd.org,
 > 	netbsd-bugs@netbsd.org
 > Subject: Re: misc/37369: Unmounting mass-storage causes umount to freeze
 > Date: Mon, 12 Nov 2007 12:43:04 -0500
 >
 >  On Mon, Nov 12, 2007 at 05:35:00PM +0000, bennybyko@gmx.de wrote:
 >  > Unmounting an usb-stick from "umass0: MEDION Medion Flash XL V2.7D, rev 1.10/2.7d" (an usb-hub and card-reader) causes umount to freeze and error messages to appear in "dmesg". If the usb-stick is simply removed from the device, NetBSD freezes.
 >  
 >  Can you copy the messages from "dmesg"?  It would be useful to know what
 >  it's complaining about.  This has generally worked for me in the past
 >  with different usb sticks and drives.
 >  
 >  Thanks,
 >  -allen
 >  
 >  -- 
 >  Allen Briggs  |  http://www.ninthwonder.com/~briggs/  |  briggs@ninthwonder.com
 >  
 >
 >   
 Hello again ,

 It just worked without copying files. 2 times.
 It seems as if the error only appears if I copy files.
 Thanks for your support so far.

 What I did exactly when my usb-stick was plugged in:

 *plugging in the stick*
 $ dmesg | tail
 umass1 at uhub0 port 1 configuration 1 interface 0
 umass1: AccFast AFMP3 Player, rev 1.10/2.05, addr 2
 umass1: using SCSI over Bulk-Only
 scsibus1 at umass1: 2 targets, 1 lun per target
 sd4 at scsibus1 target 0 lun 0: <AccFast, USB-MSC Disk IN, T> disk removable
 sd4: fabricating a geometry
 sd4: 239 MB, 239 cyl, 64 head, 32 sec, 512 bytes/sect x 490496 sectors


 $ disklabel /dev/sd4
 # /dev/rsd4d:
 type: SCSI
 disk:  USB-MSC Disk IN
 label: fictitious
 flags: removable
 bytes/sector: 512
 sectors/track: 32
 tracks/cylinder: 64
 sectors/cylinder: 2048
 cylinders: 239
 total sectors: 490496
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0           # microseconds
 track-to-track seek: 0  # microseconds
 drivedata: 0

 4 partitions:
 #        size    offset     fstype [fsize bsize cpg/sgs]
  a:    490496         0     4.2BSD      0     0     0  # (Cyl.      0 
 -    239*)
  d:    490496         0     unused      0     0        # (Cyl.      0 
 -    239*)
 disklabel: boot block size 0
 disklabel: super block size 0

 $ mount_msdos /dev/sd4a /mnt/usb
 *copying files to /mnt/usb*
 $ cp /home/babenny/netbsd.png /mnt/usb
 *yep*
 $ umount /mnt/usb
 *FREEZES!*
 $ dmesg | tail  --->
 umass1: BBB bulk-out stall clear failed, IOERROR
 umass1: BBB reset failed, IOERROR
 umass1: BBB bulk-in clear stall failed, IOERROR
 umass1: BBB bulk-out clear stall failed, TIMEOUT
 *I unplug my usb-stick --> complete FREEZE*

From: "bennybyko@gmx.de" <bennybyko@gmx.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/37369: Unmounting mass-storage causes umount to freeze
Date: Tue, 13 Nov 2007 16:58:16 +0000

 Hi again,

 I unplugged the usb-device again, causing another freeze, yesterday ( :( 
 ). dmesg showed a "usb device disconnected"-like message, before it 
 finally froze. I hope that's also useful information. (I can't even 
 shutdown my pc when that device is plugged in and umount hanging)

 Bye

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.