NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/45590: MAKEDEV: 4: Bad file descriptor



>Number:         45590
>Category:       bin
>Synopsis:       MAKEDEV: 4: Bad file descriptor
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 08 16:10:01 +0000 2011
>Originator:     Nicolas Joly
>Release:        NetBSD 5.99.56
>Organization:
Institut Pasteur
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 5.99.56 NetBSD 5.99.56 (LANFEUST) #2: 
Tue Nov 8 13:53:41 CET 2011 
njoly%lanfeust.sis.pasteur.fr@localhost:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST
 amd64
Architecture: x86_64
Machine: amd64
>Description:
MAKEDEV(8) fails when installing -current NetBSD/vax under simh :

     Status: Command failed
    Command: /bin/sh MAKEDEV all
     Hit enter to continue
--------------------------------------------------------------------------------
MAKEDEV: 4: Bad file descriptor

Experiencing with MAKEDEV show that this error occurs for targets that use
makedir() ...

# /bin/sh MAKEDEV all
MAKEDEV: 4: Bad file descriptor
# /bin/sh MAKEDEV zfs
MAKEDEV: 4: Bad file descriptor

I can reproduce it on my amd64 machine with a bogus mtree tool too:

root@lanfeust [/dev]# uname -a
NetBSD lanfeust.sis.pasteur.fr 5.99.56 NetBSD 5.99.56 (LANFEUST) #2: Tue Nov  8 
13:53:41 CET 2011  
njoly%lanfeust.sis.pasteur.fr@localhost:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST
 amd64
root@lanfeust [/dev]# ./MAKEDEV zfs      
root@lanfeust [/dev]# ./MAKEDEV -t xx zfs
./MAKEDEV: Ignored -t option: xx is missing or broken
./MAKEDEV: 4: Bad file descriptor

>How-To-Repeat:
>Fix:



Home | Main Index | Thread Index | Old Index