This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bash exiting


Please everyone: If you are going to be reporting a problem, provide, as
a minimum, the 'uname -a' output.  Otherwise, I have no way of knowing
what this is in reference to.

This sounds like you are reporting a problem in 1.1.4 which is pretty hard
to believe, giving the number of people using it.

Andrej was attempting to use a snapshot, at my request, so it is unlikely
that the two problems are related.  Andrej's cygcheck output also was
a superset of 'uname -a' so that provided me all of the info that I needed.

cgf


On Fri, Oct 13, 2000 at 09:36:53AM -0600, Dan Haynes wrote:
>I was experiencing random exits from the shell on my machine as well. Could
>it be related? For what it's worth here are my observations/thoughts on what
>happened on my machine:
>
>0. I'm not a Unix type programmer, so I generally don't (or forget to) put
>#!/bin/sh or any such thing at the start of my scripts. I don't know if this
>matters or not, it's just something I throught of while trying to figure out
>what was happening on my system.
>
>1. I had nested shell scripts. When I ran some or all of them in sub-shell,
>I experienced the random exits. When I ran them all in the current shell, it
>worked correctly.
>
>2. I should point out that I did not actually have time to set up a test
>case like the one I will describe here, but this is the basic structure/type
>of shell scripts I was trying to get working:
>
>If I had s1 and s2 where s1 contained just:
>
>./s2
>
>... and s2 contained only:
>
>echo "Hello world"
>
>If I ran ./s1 then it would exit most of the time.
>
>If I ran '. ./s1' it would exit much of the time.
>
>If I changed s1 to contain:
>
>. ./s2
>
>and I ran it using
>
>. ./s1
>
>then it would work perfectly every time.
>
>Now to confuse the issue, it would exit so quickly that I couldn't see if
>any messages were being printed. So what I would do is try to run the
>scripts that were exiting and redirect the output into a file using a
>command line like './s1 >err 2>&1'. Every time I did this, the shell did not
>exit but the file 'err' would always be empty! So apparently none of the
>commands in the scripts actually executed, but no errors were reported
>either.
>
>Unfortunately I ran out of time to experiement with 1.4 and I had to
>reinstall B20.1 in order to get on with my real work.
>
>I know it's vague, but I hope that info might help with troubleshooting.
>
>Regards,
>
>  Dan Haynes
>
>> -----Original Message-----
>> From: cygwin-owner@sources.redhat.com
>> [mailto:cygwin-owner@sources.redhat.com]On Behalf Of Andrej Borsenkow
>> Sent: Friday, October 13, 2000 1:34 AM
>> To: cygwin@sources.redhat.com
>> Subject: Bash exiting
>>
>>
>>
>> First, it is not fixed in 20001012 snapshot.
>>
>>
>> >
>> > Would you see this if you just ran, say, /bin/pwd repeatedly
>> and kept typing
>> > "CTRL-P, enter"?
>> >
>>
>> Yes. After about dozen repetitions.
>>
>> >
>> > When you start bash is it from a command prompt, or do you click on
>> > something?
>> >
>>
>> I click on an icon on Explorer Quick Start Bar (I believe, it is
>> called so).
>> It is shortcut to cygwin.bat with the content:
>>
>> @echo off
>>
>> C:
>> chdir \cygwin\bin
>>
>> bash --login -i
>>
>> It also happens with empty CYGWIN (without tty). Even faster
>> (after two-three
>> tries).
>>
>> cygcheck follows
>>
>> -andrej
>>
>> $ cygcheck -s -r -v
>>
>> Cygnus Win95/NT Configuration Diagnostics
>> Current System Time: Fri Oct 13 11:26:09 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\Explor
>> er\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  74% 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  66% CP CS UN PA FC
>> v:  net NTFS   14362Mb  66% 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-20001010.dll - os=4.0
>> img=1.0 sys=4.0
>>                   "cygwin1.dll" v0.0 ts=2000/10/11 8:17
>>   711k 2000/10/13 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
>>                   "cygwin1.dll" v0.0 ts=2000/10/13 8:55
>>     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: Fri Oct 13 00:55:31 EDT 2000
>>         snapshot date: 2000-10-12-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@sourceware.cygnus.com
>>
>
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe@sourceware.cygnus.com

-- 
cgf@cygnus.com                        Cygnus Solutions, a Red Hat company
http://sourceware.cygnus.com/         http://www.redhat.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]