NetBSD Problem Report #12900

Received: (qmail 13152 invoked from network); 10 May 2001 17:17:01 -0000
Message-Id: <20010510171801.BD1191110F@www.netbsd.org>
Date: Thu, 10 May 2001 10:18:01 -0700 (PDT)
From: anne@alcor.concordia.ca
Sender: nobody@netbsd.org
Reply-To: anne@alcor.concordia.ca
To: gnats-bugs@gnats.netbsd.org
Subject: mtree: dev/tty: Device not configured

>Number:         12900
>Category:       bin
>Synopsis:       mtree: dev/tty: Device not configured
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 10 17:18:00 +0000 2001
>Closed-Date:    
>Last-Modified:  Thu Nov 20 13:17:00 +0000 2003
>Originator:     Anne Bennett
>Release:        1.5
>Organization:
Concordia University
>Environment:
NetBSD eridani.concordia.ca 1.5 NetBSD 1.5 (ERIDANI) #1: Tue Mar 20 15:48:34 EST 2001     anne@eridani.concordia.ca:/big/sources/usr/src/sys/arch/i386/compile/ERIDANI i386

>Description:
When "mtree" is called from cron (well, from "security", which is
called from "daily", which is called from cron), it says this on
standard error:
  mtree: dev/tty: Device not configured
The above complaint ends up in the mailed "daily output" report.

When "mtree" is called interactively, no such problem occurs. 

Additional notes:  this happens with the system pretty much "out of
the box".  I think I've seen it on earlier revisions of the O/S (1.4)
but I haven't bothered to report it until now.  In case it makes a
difference, I am mounting "fdesc" on /dev.

>How-To-Repeat:
Call mtree interactively:
  mtree -e -p / -f /etc/mtree/special
It should not complain.

Now call it from "at":
  at now +1minute
     mtree -e -p / -f /etc/mtree/special
You should receive mail with the complaint:
   mtree: dev/tty: Device not configured

>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: lukem 
State-Changed-When: Wed Nov 7 23:00:04 PST 2001 
State-Changed-Why:  
I've tried to reproduce this problem with a -current mtree, and I'm 
unable to do so. 

For what it's worth, I have the following entry in /etc/fstab for fdesc: 
/dev /dev fdesc rw,union 0 0 

Have you got any access to a -current machine to test this on? 

Responsible-Changed-From-To: bin-bug-people->lukem 
Responsible-Changed-By: lukem 
Responsible-Changed-When: Wed Nov 7 23:00:04 PST 2001 
Responsible-Changed-Why:  
I'm chasing it 

From: Anne Bennett <anne@alcor.concordia.ca> (by way of Erik E. Fair)
To: NetBSD GNATS Problem Report Tracking System <gnats-bugs@gnats.netbsd.org>
Cc:  
Subject: Re: bin/12900
Date: Tue, 5 Feb 2002 10:42:56 -0800

 Luke,

 I just received a second reminder that my PR number bin/12900 is still
 open.  Last time, I wrote back to gnats-admin:

 >>  bin/12900 - non-critical low priority sw-bug
 >>  	mtree: dev/tty: Device not configured
 >>  	http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=12900
 >
 >  There was an e-mail discussion in early November; it seems that an
 >  attempt to open /dev/tty in a context that has no controlling terminal
 >  causes "Device not configured" to be reported, and of course cron,
 >  which calls the script which calls mtree, has no controlling terminal.
 >
 >  It turns out that I'm not the only person getting these messages;
 >  Christos Zoulas reported seeing them as well.
 >
 >  I don't think that there's anything more that I *can* add.  It seems
 >  that mtree should not be trying to open /dev/tty -- I don't know why
 >  it is trying to do so.

 Would it be possible to update the PR database with the above info?
 I don't think any further feedback from me is necessary, but perhaps I
 am mistaken.  Is any further information needed on this one?


 Anne.
 -- 
 Ms. Anne Bennett, Senior Analyst, IITS, Concordia University, Montreal H3G 1M8
 anne@alcor.concordia.ca                                        +1 514 848-7606
State-Changed-From-To: feedback->open 
State-Changed-By: fair 
State-Changed-When: Tue Feb 5 10:57:03 PST 2002 
State-Changed-Why:  
Feedback has been provided and appended to the PR. 

From: John Hawkinson <jhawk@MIT.EDU>
To: gnats-bugs@netbsd.org
Cc:  
Subject: bin/12900: mtree: dev/tty: Device not configured
Date: Wed, 19 Nov 2003 15:15:49 -0500 (EST)

 This problem is most easily reproduced by logging into the machine
 with 'ssh -T', to get an interactive shell with no controlling tty.

 The real problem is in the fdesc filesystem, which chooses to
 handle /dev/tty specially, instead of passing it on down.
 This is inappropriate.

 That should make this category kern/ and the description should
 be augmented.

 I don't have the resources to d othat right now, but I will
 commit a workaround to /etc/daily in the interim.

 --jhawk

From: John Hawkinson <jhawk@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/12900 CVS commit: src/etc
Date: Wed, 19 Nov 2003 20:28:19 +0000 (UTC)

 Module Name:	src
 Committed By:	jhawk
 Date:		Wed Nov 19 20:28:19 UTC 2003

 Modified Files:
 	src/etc: security

 Log Message:
 Provide a workaround for PR bin/12900.
 When /dev is an fdesc, and /dev/tty is stat()ed without a controlling tty,
 a "Device not configured" error is returned.

 Filter mtree's stderr to ignore this error.

 If fdesc is fixed to not behave in this fashion, this workaround can
 be removed; bin/12900 should remain open until that time.


 To generate a diff of this commit:
 cvs rdiff -r1.86 -r1.87 src/etc/security

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: lukem->bin-bug-people 
Responsible-Changed-By: lukem 
Responsible-Changed-When: Thu Nov 20 11:09:58 UTC 2003 
Responsible-Changed-Why:  
jhawk has diagnosed that this is not an mtree problem per se, but 
an fdesc filesystem bug, so it's back to the "pool" to handle. 

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@gnats.netbsd.org, lukem@netbsd.org, gnats-admin@netbsd.org
Cc:  
Subject: Re: bin/12900
Date: Thu, 20 Nov 2003 08:16:38 -0500

 On Nov 20, 11:11am, lukem@netbsd.org (lukem@netbsd.org) wrote:
 -- Subject: Re: bin/12900

 How do you propose to fix fdesc?

 christos

 | Synopsis: mtree: dev/tty: Device not configured
 | 
 | Responsible-Changed-From-To: lukem->bin-bug-people
 | Responsible-Changed-By: lukem
 | Responsible-Changed-When: Thu Nov 20 11:09:58 UTC 2003
 | Responsible-Changed-Why: 
 | jhawk has diagnosed that this is not an mtree problem per se, but
 | an fdesc filesystem bug, so it's back to the "pool" to handle.
 -- End of excerpt from lukem@netbsd.org


>Unformatted:

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.