NetBSD Problem Report #37211

From martin@duskware.de  Thu Oct 25 19:30:55 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 4E04463B89A
	for <gnats-bugs@gnats.netbsd.org>; Thu, 25 Oct 2007 19:30:55 +0000 (UTC)
Message-Id: <20071025181243.21E8663B89A@narn.NetBSD.org>
Date: Thu, 25 Oct 2007 18:12:43 +0000 (UTC)
From: wwmpcdd@gmail.com
Reply-To: wwmpcdd@gmail.com
To: netbsd-bugs-owner@NetBSD.org
Subject: Mounting Floppy with no Floppy causes Freezing
X-Send-Pr-Version: www-1.0

>Number:         37211
>Category:       kern
>Synopsis:       Mounting Floppy with no Floppy causes Freezing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 25 19:35:00 +0000 2007
>Last-Modified:  Sun Dec 16 01:55:01 +0000 2007
>Originator:     Patrick
>Release:        4.0RC3
>Organization:
>Environment:
NetBSD bsdbox 4.0_RC3 NetBSD 4.0_RC3 (GENERIC.MP) #0: Tue Oct 16 01:41:36 PDT 2007  builds@wb34:/home/builds/ab/netbsd-4-0-RC3/i386/200710160011Z-obj/home/builds/ab/netbsd-4-0-RC3/src/sys/arch/i386/compile/GENERIC.MP i386
>Description:
When trying to mount a floppy drive, with no floppy inserted in the drive, X freezes for a few seconds, the unfreezes, then freezes again. This is looped a few times (you can see in the dmesg output shown below) until a hard error is printed in dmesg. I used the command:

--
# mount /mnt/floppy
--

In my /etc/fstab:

--
/dev/fd0a	/mnt/floppy	msdos	rw,noauto	0 0
--

dmesg gives:

--
fdcresult: timeout
fd0: timeout (st0 20<seek_cmplt> cyl 0)
fdcresult: timeout
fd0: timeout (st0 20<seek_cmplt> cyl 0)
fdcresult: timeout
fd0: timeout (st0 20<seek_cmplt> cyl 0)
fdcresult: timeout
fd0: timeout (st0 20<seek_cmplt> cyl 0)
fdcresult: timeout
fd0: timeout (st0 20<seek_cmplt> cyl 0)
fdcresult: timeout
fd0: timeout (st0 20<seek_cmplt> cyl 0)
fd0a: hard error reading fsbn 0 (st0 20<seek_cmplt> st1 0 st2 0 cyl 0 head 0 sec 0)
--

After this, the freezing stops. I insert a working floppy, and try to mount once again (using the same command as above). The freezing occurs again (though fewer times), and dmesg gives:

--
fd0a: soft error (corrected) reading fsbn 0
--

The floppy is then properly mounted. I can read data from it just fine. The unmounting of the floppy works fine, and subsequent mounts/unmounts work properly as well.
>How-To-Repeat:

>Fix:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/37211: Mounting Floppy with no Floppy causes Freezing
Date: Thu, 25 Oct 2007 21:45:10 +0200

 I can reproduce this in -current as well.
 (run a ping against the machine where you try to mount the floppy - the
 problem is obvious)

 Martin

From: Patrick <wwmpcdd@gmail.com>
To: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: kern/37211: Mounting Floppy with no Floppy causes Freezing
Date: Sat, 15 Dec 2007 20:53:15 -0500

 Problem also occurs in the 4.0 RC5 kernel.

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.