Mail Archives: cygwin/2001/01/05/10:22:46
I think I've discovered the root of the problem! In reviewing the strace I
realized that the st_size reported from fstat() is always zero for any file
referrenced across the network. No read()s are subsequently done because
there is (reportedly) no data!
Furthermore, if I do an "ls -l" of networked files from Cygwin/bash or sh,
all the files are reported to be of size 0. This is not the case when I do a
"dir" from MS-DOS or open the H: folder from Windows: they report the size
correctly.
Opinions, please: Is this standard operation of fstat() in this situation or
does it suggest a bug? Could it be a variable-size mismatch within the
TCP/IP stack generated by the Unix file-server? Is there any way that my
environment could be causing this -- any network settings that would affect
fstat() here but not in the ls -l -- that I can pursue? (cygcheck output
follows)
Here's the strace:
**********************************************
Program name: D:\CYGWIN\BIN\GCC.EXE (612089)
App version: 1001.6, api: 0.30
DLL version: 1001.7, api: 0.31
DLL build: 2000-12-25 12:39
OS version: Windows 98-4.10
Date/Time: 2001-01-04 10:24:15
**********************************************
: (lines suppressed)
:
HERE the CXlinspec file gets opened as file# 4:
340 1440618 [main] cpp 607053 _open: 4 = open
(/UNIX/usr/include/CXlinkspec.h, 0x20000)
1938 1442556 [main] cpp 607053 fhandler_disk_file::fstat: 1 =
GetFileInformationByHandle (H:\usr\include\CXlinkspec.h, 80)
392 1442948 [main] cpp 607053 fhandler_disk_file::fstat: 0 = fstat (,
0xC62B35C) st_atime=3A5497AD st_size=0, st_mode=0x81A4, st_ino=418540233,
sizeof=64
NOTE that st_size == 0. It should be 1627 bytes.
566 1443514 [main] cpp 607053 _fstat: 0 = fstat (4, C62B35C)
431 1443945 [main] cpp 607053 _cygwin_istext_for_stdio:
_cygwin_istext_for_stdio (2)
328 1444273 [main] cpp 607053 _cygwin_istext_for_stdio: _cifs: get_*_binary
323 1444596 [main] cpp 607053 setmode_helper: setmode: file was cle now raw
322 1444918 [main] cpp 607053 setmode: setmode (2, binary) returns text
325 1445243 [main] cpp 607053 _write: write (2, 0x255EEBC, 34)
322 1445565 [main] cpp 607053 fhandler_base::write: binary write
351 1445916 [main] cpp 607053 fhandler_base::write: 34 = write (0x255EEBC,
34)
331 1446247 [main] cpp 607053 _write: 34 = write (2, 0x255EEBC, 34)
323 1446570 [main] cpp 607053 _cygwin_istext_for_stdio:
_cygwin_istext_for_stdio (2)
319 1446889 [main] cpp 607053 _cygwin_istext_for_stdio:
_cygwin_istext_for_stdio says yes
324 1447213 [main] cpp 607053 setmode_helper: setmode: file was raw now cle
323 1447536 [main] cpp 607053 setmode: setmode (2, text) returns binary
NOW it closes CXlinkspec.h without processing it, since it thinks that there
are 0 bytes to read
889 1448425 [main] cpp 607053 _close: close (4)
317 1448742 [main] cpp 607053 fhandler_base::close: handle 0x50
564 1449306 [main] cpp 607053 _close: 0 = close (4)
... and continues on as if nothing has happened
100370 1549676 [main] cpp 607053 _open: open
(/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/include/isdecl.h, 0x20000)
434 1550110 [main] cpp 607053 dtable::build_fhandler: some disk file - cb
56, fd 4, fh 0xC581DA0
: (lines suppressed)
:
315 20348084 [main] gcc 612089 _pinfo::exit: Calling ExitProcess 1
*************
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Fri Jan 5 10:07:26 2001
Win9X Ver 4.10 build 67766222
Path: /usr/local/bin
/usr/bin
/bin
/cygdrive/c/WINDOWS
/cygdrive/c/WINDOWS/COMMAND
/usr/bin
SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS
USER = `root'
HOME = `/cygdrive/d'
PWD = `/UNIX'
MAKE_MODE = `unix'
MACHTYPE = `i686-pc-cygwin'
HOSTNAME = `SEAN'
SHLVL = `1'
OLDPWD = `/UNIX/usr'
PROMPT = `$p$g'
PS1 = `\[\033]0;\007\033[33m\w\033[0m\]# '
_ = `cygcheck'
TEMP = `/cygdrive/c/Windows/TEMP'
WINBOOTDIR = `C:\WINDOWS'
TERM = `cygwin'
WINDIR = `C:\WINDOWS'
CMDLINE = `bash --login -i'
BLASTER = `A220 I5 D1 T4'
!D: = `D:\Cygwin\bin'
SHELL = `/bin/sh'
!H: = `H:\usr\vision\bin\pctools\en_US\visionfs'
CLASSPATH = `C:\Program Files\PhotoDeluxe 2.0\AdobeConnectables'
OSTYPE = `cygwin'
COMSPEC = `C:\WINDOWS\COMMAND.COM'
HOSTTYPE = `i686'
TZ = `EST5EDT4,M4.1.0/2,M10.5.0/2'
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder
\Start Menu\&Programs\Cygnus Solutions
(default) = (unsupported type)
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
(default) = `/cygdrive'
cygdrive flags = 0x00000020
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\08
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\09
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\10
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\11
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\12
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\13
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\14
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\15
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\16
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\17
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\18
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\19
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1D
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/
(default) = `D:\Cygwin'
flags = 0x00000008
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/crc
(default) = `D:\Cygwin\usr\crc'
flags = 0x00000008
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/UNIX
(default) = `H:'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) = `D:\Cygwin\bin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) = `D:\Cygwin\lib'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\1.00.000
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\08
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\09
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\10
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\11
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\12
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\13
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\14
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\15
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\16
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\17
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\18
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\19
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1D
a: fd N/A N/A
c: hd FAT32 6850Mb 37% CP UN WINDOWS98
d: hd FAT32 6169Mb 45% CP UN CRC DRIVE
e: cd N/A N/A
f: fd N/A N/A
g: cd N/A N/A
h: net VFSU 3869Mb 40% CP UN root
D:\Cygwin\usr\crc /usr/crc system textmode
D:\Cygwin\bin /usr/bin system binmode
D:\Cygwin\lib /usr/lib system binmode
D:\Cygwin / system textmode
H: /UNIX system binmode
Found: D:\Cygwin\bin\bash.exe
Found: D:\Cygwin\bin\cat.exe
Found: D:\Cygwin\bin\cpp.exe
Found: D:\Cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: D:\Cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
Found: D:\Cygwin\bin\gcc.exe
Found: D:\Cygwin\bin\gdb.exe
Found: D:\Cygwin\bin\ld.exe
Found: D:\Cygwin\bin\ls.exe
Found: D:\Cygwin\bin\make.exe
Found: D:\Cygwin\bin\sh.exe
Found: \bin\sh.exe
Warning: D:\Cygwin\bin\sh.exe hides \bin\sh.exe
81k 2000/12/05 D:\Cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
"cygitcl30.dll" v0.0 ts=2000/11/25 20:43
35k 2000/12/05 D:\Cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
"cygitk30.dll" v0.0 ts=2000/11/25 20:43
390k 2000/12/05 D:\Cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
"cygtcl80.dll" v0.0 ts=2000/11/25 20:39
5k 2000/12/05 D:\Cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
10k 2000/12/05 D:\Cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
"cygtclreg80.dll" v0.0 ts=2000/11/25 20:39
623k 2000/12/05 D:\Cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
"cygtk80.dll" v0.0 ts=2000/11/25 20:43
611k 2000/12/25 D:\Cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2000/12/25 12:39
Cygwin DLL version info:
dll major: 1001
dll minor: 7
dll epoch: 19
dll bad signal mask: 19005
dll old termios: 5
dll malloc env: 28
api major: 0
api minor: 31
shared data: 3
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: Mon Dec 25 12:39:48 EST 2000
shared id: cygwin1S3
Use -h to see help about each section
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -