Mail Archives: cygwin/2007/03/12/07:36:51
--0-1578153207-1173702662=:99738
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Id:
Content-Disposition: inline
I'm seeing the following error every time I start a cygwin shell,
running on a freshing installed copy of Windows Fundamentals for
Legacy PCs (WinFLP).
bash: /dev/null: No such file or directory
From the mailing list archives, it seems that the same symptom has
been seen in the past (albeit on other versions of Windows...)
http://www.cygwin.com/ml/cygwin/2006-06/msg00009.html
http://www.cygwin.com/ml/cygwin/2003-10/msg01005.html
Following previous advice given to people trying to debug the
problem, here's an extact of: strace sh -c "ls > /dev/null"
57 3748990 [main] sh 2372 open: open (/dev/null, 0x601)
205 3749195 [main] sh 2372 normalize_posix_path: src /dev/null
142 3749337 [main] sh 2372 normalize_posix_path: /dev/null =
normalize_posix_path (/dev/null)
85 3749422 [main] sh 2372 mount_info::conv_to_win32_path:
conv_to_win32_path (/dev/null)
86 3749508 [main] sh 2372 mount_info::conv_to_win32_path: src_path
/dev/null, dst nul, flags 0x2, rc 0
88 3749596 [main] sh 2372 build_fh_pc: fh 0x61167E40
61 3749657 [main] sh 2372 fhandler_base::open_9x: (NUL, 0x601)
192 3749849 [main] sh 2372 seterrno_from_win_error:
/ext/build/netrel/src/cygwin-1.5.24-2/winsup/cygwin/fhandler.cc:535
windows error 2
97 3749946 [main] sh 2372 geterrno_from_win_error: windows error 2
== errno 2
69 3750015 [main] sh 2372 __set_errno: void
seterrno_from_win_error(const char*, int, DWORD):310 val 2
82 3750097 [main] sh 2372 fhandler_base::open_9x: 0xFFFFFFFF =
CreateFile (NUL, 0x40000000, 0x7, 0x22C250, 0x2, 0x80, 0)
85 3750182 [main] sh 2372 fhandler_base::open_9x: 0 =
fhandler_base::open (NUL, 0x601)
78 3750260 [main] sh 2372 open: -1 = open (/dev/null, 0x601)
Corinna's comment from the archives:
> However, the above effect is pretty weird. Is it possible (don't
> laugh) that the nul device is broken on your machine? Actually
> there's a driver ${windir}/system32/drivers/null.sys which manages
> that device. Or an even worse scenario: Do you (well, your machine)
> have some bad virus? So far, I have no other idea :-(
${windir}/system32/drivers/null.sys does not seem to be present in
WinFLP. I'm running a fresh install of the OS, sitting behind a
firewall, so the chances of Windows corruption or viruses seems low.
I can only assume that the lack of null.sys is the way Microsoft
intends it... ?!?
Is there an alternative way that cygwin could implement /dev/null in
this situation ??
Andre
--
____________________________________________________________________________________
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
--0-1578153207-1173702662=:99738
Content-Type: text/plain; name="cygcheck.txt"
Content-Description: 1580519210-cygcheck.txt
Content-Disposition: inline; filename="cygcheck.txt"
Cygwin Configuration Diagnostics
Current System Time: Mon Mar 12 05:03:51 2007
Windows XP Professional Ver 5.1 Build 2600 Service Pack 2
Path: C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\Windows\system32
c:\Windows
c:\Windows\system32\WBEM
Output from C:\cygwin\bin\id.exe (nontsec)
UID: 500(Administrator) GID: 513(None)
0(root) 513(None) 544(Administrators)
545(Users)
Output from C:\cygwin\bin\id.exe (ntsec)
UID: 500(Administrator) GID: 513(None)
0(root) 513(None) 544(Administrators)
545(Users)
SysDir: C:\Windows\system32
WinDir: C:\Windows
USER = 'Administrator'
PWD = '/home/Administrator'
HOME = '/home/Administrator'
MAKE_MODE = 'unix'
HOMEPATH = '\Documents and Settings\Administrator'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man:'
APPDATA = 'C:\Documents and Settings\Administrator\Application Data'
HOSTNAME = 'D500-sland685'
RUNTIMEGUID = '{052D3F18-13CF-4761-BB51-F8FE63681B6B}'
RUNTIMESKUCODE = 'XPeCli'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 13 Stepping 8, GenuineIntel'
WINDIR = 'C:\Windows'
OLDPWD = '/usr/bin'
WEBUILDDATE = '4/29/2006 5:14:33 AM'
USERDOMAIN = 'D500-SLAND685'
OS = 'Windows_NT'
DEVICEROLE = '0'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
TEMP = '/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
USERNAME = 'Administrator'
RUNTIMEPID = 'J9KHQ-38HJ3-9CKJG-GFRB6-XMXDY'
PROCESSOR_LEVEL = '6'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Documents and Settings\Administrator'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\D500-SLAND685'
PROCESSOR_ARCHITECTURE = 'x86'
!C: = 'C:\cygwin\bin'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = 'C:'
PROMPT = '$p$g'
COMSPEC = 'C:\Windows\system32\cmd.exe'
TMP = '/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp'
SYSTEMROOT = 'C:\Windows'
PRINTER = 'HP LaserJet 4/4M Plus PS 600'
CVS_RSH = '/bin/ssh'
PROCESSOR_REVISION = '0d08'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files'
NUMBER_OF_PROCESSORS = '1'
SESSIONNAME = 'Console'
DEVICEMODEL = '{00000000-0000-0000-0000-000000000000}'
COMPUTERNAME = 'D500-SLAND685'
_ = '/usr/bin/cygcheck'
POSIXLY_CORRECT = '1'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
(default) = '/cygdrive'
cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
(default) = 'C:\cygwin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/c
(default) = 'c:'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/d
(default) = 'd:'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/e
(default) = 'e:'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/f
(default) = 'f:'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/i
(default) = 'i:'
flags = 0x0000010a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) = 'C:\cygwin/bin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) = 'C:\cygwin/lib'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
c: hd NTFS 20002Mb 16% CP CS UN PA FC New volume
d: cd N/A N/A
i: net NTFS 281304Mb 64% CP CS PA common
C:\cygwin / system binmode
c: /c system binmode
d: /d system binmode
e: /e system binmode
f: /f system binmode
i: /i system binmode,noexec
C:\cygwin/bin /usr/bin system binmode
C:\cygwin/lib /usr/lib system binmode
. /cygdrive system binmode,cygdrive
Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Not Found: perl
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Not Found: ssh
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Not Found: vim
87k 2006/02/16 C:\cygwin\bin\cygatk-1.0-0.dll - os=4.0 img=1.0 sys=4.0
"cygatk-1.0-0.dll" v0.0 ts=2006/2/6 13:13
7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
"cygcrypt-0.dll" v0.0 ts=2003/10/19 0:57
40k 2006/11/15 C:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
"cygform-8.dll" v0.0 ts=2006/11/14 23:06
45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
"cygform5.dll" v0.0 ts=2001/4/24 22:28
48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
"cygform7.dll" v0.0 ts=2003/8/9 2:25
28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm-3.dll" v0.0 ts=2003/7/20 0:58
19k 2006/11/19 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm-4.dll" v0.0 ts=2006/11/19 0:18
19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm.dll" v0.0 ts=2002/2/19 19:05
15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 1:00
8k 2006/11/19 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm_compat-4.dll" v0.0 ts=2006/11/19 0:18
515k 2006/06/06 C:\cygwin\bin\cygglib-2.0-0.dll - os=4.0 img=1.0 sys=4.0
"cygglib-2.0-0.dll" v0.0 ts=2006/6/5 15:32
10k 2006/06/06 C:\cygwin\bin\cyggmodule-2.0-0.dll - os=4.0 img=1.0 sys=4.0
"cyggmodule-2.0-0.dll" v0.0 ts=2006/6/5 15:36
222k 2006/06/06 C:\cygwin\bin\cyggobject-2.0-0.dll - os=4.0 img=1.0 sys=4.0
"cyggobject-2.0-0.dll" v0.0 ts=2006/6/5 15:35
14k 2006/06/06 C:\cygwin\bin\cyggthread-2.0-0.dll - os=4.0 img=1.0 sys=4.0
"cyggthread-2.0-0.dll" v0.0 ts=2006/6/5 15:36
17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
"cyghistory4.dll" v0.0 ts=2001/1/6 20:34
29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
"cyghistory5.dll" v0.0 ts=2003/8/10 16:16
25k 2007/01/18 C:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
"cyghistory6.dll" v0.0 ts=2007/1/17 19:14
976k 2006/10/22 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
"cygiconv-2.dll" v0.0 ts=2006/10/22 16:44
22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
"cygintl-1.dll" v0.0 ts=2001/12/13 1:28
37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
"cygintl-2.dll" v0.0 ts=2003/8/10 14:50
31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
"cygintl-3.dll" v0.0 ts=2005/11/19 18:04
31k 2006/10/23 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
"cygintl-8.dll" v0.0 ts=2006/10/22 17:12
21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
"cygintl.dll" v0.0 ts=2001/6/20 10:09
21k 2006/11/15 C:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
"cygmenu-8.dll" v0.0 ts=2006/11/14 23:05
26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
"cygmenu5.dll" v0.0 ts=2001/4/24 22:27
29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
"cygmenu7.dll" v0.0 ts=2003/8/9 2:25
67k 2006/11/15 C:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++-8.dll" v0.0 ts=2006/11/14 23:13
156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++5.dll" v0.0 ts=2001/4/24 22:29
237k 2006/11/15 C:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
"cygncurses-8.dll" v0.0 ts=2006/11/14 23:02
226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses5.dll" v0.0 ts=2001/4/24 22:17
224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
"cygncurses7.dll" v0.0 ts=2003/8/9 2:24
12k 2006/11/15 C:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
"cygpanel-8.dll" v0.0 ts=2006/11/14 23:04
15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
"cygpanel5.dll" v0.0 ts=2001/4/24 22:27
19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
"cygpanel7.dll" v0.0 ts=2003/8/9 2:24
109k 2006/02/10 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcre-0.dll" v0.0 ts=2006/2/9 18:37
299k 2006/02/10 C:\cygwin\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcrecpp-0.dll" v0.0 ts=2006/2/9 18:38
7k 2006/02/10 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcreposix-0.dll" v0.0 ts=2006/2/9 18:37
108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
"cygreadline4.dll" v0.0 ts=2001/1/6 20:34
148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
"cygreadline5.dll" v0.0 ts=2003/8/10 16:16
154k 2007/01/18 C:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
"cygreadline6.dll" v0.0 ts=2007/1/17 19:14
65k 2006/10/16 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
"cygz.dll" v0.0 ts=2006/10/15 18:10
1830k 2007/01/31 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2007/1/31 1:58
Cygwin DLL version info:
DLL version: 1.5.24
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 156
Shared data: 4
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Wed Jan 31 10:57:51 CET 2007
CVS tag: cr-0x5f1
Shared id: cygwin1S4
Can't find the cygrunsrv utility, skipping services check.
Cygwin Package Information
Last downloaded files to: C:\cyginsttmp
Last downloaded files from: http://mirrors.kernel.org/sourceware/cygwin
Package Version
_update-info-dir 00501-1
alternatives 1.3.29a-1
ash 20040127-3
atk 1.10.3-1
atk-runtime 1.10.3-1
base-files 3.7-1
base-passwd 2.2-1
bash 3.2.9-11
bzip2 1.0.3-2
clear 1.0-2
coreutils 6.7-2
crypt 1.1-1
cygutils 1.3.1-1
cygwin 1.5.24-2
cygwin-doc 1.4-4
diffutils 2.8.7-1
editrights 1.01-1
findutils 4.3.2-3
gawk 3.1.5-4
gdbm 1.8.3-8
glib2 2.10.3-1
glib2-runtime 2.10.3-1
grep 2.5.1a-2
gzip 1.3.9-1
libgdbm 1.8.0-5
libgdbm-devel 1.8.3-8
libgdbm3 1.8.3-3
libgdbm4 1.8.3-8
libiconv2 1.11-1
libintl 0.10.38-3
libintl1 0.10.40-1
libintl2 0.12.1-3
libintl3 0.14.5-1
libintl8 0.15-1
libncurses5 5.2-1
libncurses7 5.3-4
libncurses8 5.5-3
libpcre0 6.6-1
libreadline4 4.1-2
libreadline5 4.3-5
libreadline6 5.2.1-6
libxml2-python 2.6.26-1
login 1.9-7
man 1.6d-2
mktemp 1.5-4
ncurses 5.5-3
pkg-config 0.21-1
pkgconfig 0.17.2-3
pylibxml2 2.6.26-1
run 1.1.10-1
sed 4.1.5-2
tar 1.16.1-1
termcap 20050421-1
terminfo 5.5_20061104-1
texinfo 4.8-4
which 1.7-1
zlib 1.2.3-2
Use -h to see help about each section
--0-1578153207-1173702662=:99738
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--0-1578153207-1173702662=:99738--
- Raw text -