Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Envelope-Sender-Is: Andrej DOT Borsenkow AT mow DOT siemens DOT ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: Subject: RE: Two snapshot bugs Date: Wed, 11 Oct 2000 20:34:38 +0400 Message-ID: <000401c033a1$2611b5e0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-reply-to: <20001011113953.A9706@cygnus.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > > > On Wed, Oct 11, 2000 at 10:27:26AM +0400, Andrej Borsenkow wrote: > >- bash displays "logout" that it normally does when it gets EOF. So, it > >_looks_ like bash is getting EOF. It does not crash (well, in > usual sense :-) > > That is the detail that I was looking for. > > >- I've never seen this in 1.1.4 or below and bash is unchanged since > >then. So, it _looks_ like some change in Cygwin. > > I was not implying that this wasn't a problem in Cygwin. It obviously > is. > > I was asking, as usual, for *details*. I guess I forgot to ask for > details when I asked for people to report bugs. > Well, I guess, I already mentioned the "logout" message in another mail in this thread, may be in not so clear form. > How about a 'cygcheck -r -s -v'? > At the end > If you are motivated, an 'strace -osomefile bash', from the windows > command prompt demonstrating the problem would also be appreciated. > I am motivated. I simply cannot reproduce it running under strace, sorry. But here are more details, that may (or may not) be of some use. - normally, when I just start the single bash session, it exits as described after entering just a dozen commands (it may be more or less - but it exits anyway). Unfortunately, it is the only way known to me to reproduce it. - it does not happen when running under strace. Under "it does not happen" I mean, in the time I spent trying - but it was significantly longer, than bash normally takes to exit. - interestingly enough, it did not happen as well when I started regression tests for another package in another bash session (tests give CPU quite a bit of work). But as soon as I stopped these tests, my interactive session disappeared after several commands - I've never seen this running zsh All of this makes me believe, that this is race condition between parent and child in handling of std{in,out,err}. When running on clean system, child simply starts "too fast". When running under load, child has enough time to do whatever is needed to avoid error condition. Or, may be, it is time that child is needed to cleanup on exit. Of course, it may depend on internal FD's handling in bash/zsh, that may account for Zsh case. Also, zsh is a bit "heavier" and does quite a bit after fork. It may even depend on CPU speed and overall system performance. I'm running Win2kSP1 on PII266 with 192MB RAM and EIDE drives for reference. -andrej $ cygcheck -s -r -v Cygnus Win95/NT Configuration Diagnostics Current System Time: Wed Oct 11 20:14:28 2000 WinNT Ver 5.0 build 2195 Service Pack 1 Path: /usr/local/bin /usr/bin /bin /cygdrive/c/WINNT/system32 /cygdrive/c/WINNT /cygdrive/c/WINNT/System32/Wbem . /cygdrive/c/PROGRA~1/Vision /cygdrive/c/PROGRA~1/Vision/SYSTEM /cygdrive/c/PROGRA~1/COMMON~1/Vision /cygdrive/c/Program Files/DeskView/DMI/WIN32/bin /cygdrive/c/PROGRA~1/DeskView/System /cygdrive/c/WINNT/system32 /cygdrive/c/WINNT /cygdrive/c/WINNT/System32/Wbem . /cygdrive/c/PROGRA~1/Vision /cygdrive/c/PROGRA~1/Vision/SYSTEM /cygdrive/c/PROGRA~1/COMMON~1/Vision /cygdrive/c/Program Files/DeskView/DMI/WIN32/bin /cygdrive/c/PROGRA~1/DeskView/SystemC /win32app/ntp /cygdrive/c/win32app/bin /cygdrive/c/texmf/miktex/bin . SysDir: C:\WINNT\System32 WinDir: C:\WINNT PWD = `/cygdrive/h' CYGWIN = `tty' USER = `mw1g017' MAKE_MODE = `unix' HOME = `/cygdrive/h' NUMBER_OF_PROCESSORS = `1' PROMPT = `$P$G' LOGONSERVER = `\\MOWR011A' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' COMSPEC = `C:\WINNT\system32\cmd.exe' !C: = `C:\cygwin\bin' SYSTEMDRIVE = `C:' HOSTNAME = `MW1G17C' PROCESSOR_REVISION = `0304' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' COMPUTERNAME = `MW1G17C' WINDIR = `C:\WINNT' USERPROFILE = `C:\Documents and Settings\mw1g017' PS1 = `\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' HOMESHARE = `\\mowr011a\mw1g017' PWRCHUTE = `C:\Program Files\Pwrchute' PROGRAMFILES = `C:\Program Files' MACHTYPE = `i586-pc-cygwin' !H: = `H:\' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 3 Stepping 4, GenuineIntel' WIN32DMIPATH = `C:\Program Files\DeskView\DMI\Win32' OS = `Windows_NT' OLDPWD = `/usr/bin' PROCESSOR_ARCHITECTURE = `x86' TEMP = `/cygdrive/c/DOCUME~1/mw1g017/LOCALS~1/Temp' PROCESSOR_LEVEL = `6' SYSTEMROOT = `C:\WINNT' HOMEDRIVE = `H:' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' SHLVL = `1' APPDATA = `C:\Documents and Settings\mw1g017\Application Data' COMMONPROGRAMFILES = `C:\Program Files\Common Files' HOMEPATH = `\' USERDOMAIN = `RUMOWR061A' USERNAME = `mw1g017' SHELL = `/bin/sh' HOSTTYPE = `i586' OSTYPE = `cygwin' TERM = `cygwin' VIM = `C:\win32app\vim' _ = `/usr/bin/cygcheck' TZ = `RST-3RDT-4,M3.5.0/2,M10.5.0/3' 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\mounts v2\/PalmDev (default) = `c:\palmdev' flags = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/PRC-Tools (default) = `c:\program files\prc-tools' flags = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/tools (default) = `c:\tools' flags = 0x00000002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/tools/src (default) = `\\itsrm2\root$\u1\src' flags = 0x00000002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/local/palmdev (default) = `c:\palmdev' flags = 0x00000002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder \S tart Menu\Programs\Cygnus Solutions (default) = (unsupported type) 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) = `C:/cygwin' flags = 0x0000000a 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 a: fd N/A N/A c: hd NTFS 3089Mb 73% CP CS UN PA FC d: hd NTFS 3079Mb 69% CP CS UN PA FC e: cd N/A N/A h: net NTFS 14362Mb 63% CP CS UN PA FC v: net NTFS 14362Mb 63% CP CS UN PA FC c:\program files\prc-tools /PRC-Tools user textmode \\itsrm2\root$\u1\src /tools/src user binmode C:\cygwin\bin /usr/bin system binmode C:\cygwin\lib /usr/lib system binmode c:\palmdev /usr/local/palmdev user binmode c:\palmdev /PalmDev user textmode C:\cygwin / system binmode c:\tools /tools user binmode Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cpp.exe Found: C:\cygwin\bin\find.exe Found: C:\cygwin\bin\gcc.exe Found: C:\cygwin\bin\gdb.exe Found: C:\cygwin\bin\ld.exe Found: C:\cygwin\bin\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\sh.exe 83k 2000/06/11 C:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0 "cygitcl30.dll" v0.0 ts=2000/6/11 7:34 35k 2000/06/11 C:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0 "cygitk30.dll" v0.0 ts=2000/6/11 7:34 402k 2000/06/11 C:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 "cygtcl80.dll" v0.0 ts=2000/6/11 7:30 5k 2000/06/11 C:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 10k 2000/06/11 C:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 "cygtclreg80.dll" v0.0 ts=2000/6/11 7:30 639k 2000/06/11 C:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 "cygtk80.dll" v0.0 ts=2000/6/11 7:34 586k 2000/08/04 C:\cygwin\bin\cygwin1-1.1.4.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2000/8/4 4:53 704k 2000/10/11 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2000/10/11 8:17 Cygwin DLL version info: dll major: 1001 dll minor: 5 dll epoch: 19 dll bad signal mask: 19005 dll old termios: 5 api major: 0 api minor: 28 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 build date: Wed Oct 11 00:17:16 EDT 2000 snapshot date: 2000-10-10-23:55-EST shared id: cygwin1S3 Use -h to see help about each section -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com