Subject: Re: bash and rxvt exiting with .NET
From: [email-masked]
To: [email-masked]
Date: Wed, 26 Nov 2003 10:43:45 -0600

Ronald Landheer-Cieslak <[email-masked]> writes:
> You're giving us very little information about your system. Could
> you take a look at http://cygwin.com/problems.html and fill in the
> blanks?

I'm running Cygwin 1.5.5 under Windows XP Profession SP1 w/ all of the
latest patches.  The 'cygcheck' output can be viewed below.

I'm developing a console application using the .NET environment.
Whenever my application generates an exception, the Cygwin session
ends after I answer "No" to "Do you want to debug using the selected
debugger?" from the "Just In Time Debugging" dialog from Visual Studio
.NET.

This happens under both the standard Cygwin command prompt 'bash' shell
and 'rxvt'.

I have tried the same test with the standard Windows XP command prompt
with success (i.e., it doesn't exit the window).

I have gen'ed a simple .NET source file to reproduce the file.  I
won't attach an .EXE because who would trust it?

namespace Test
{
  class Crash
  {
    static void Main (string[] args)
    {
      System.Console.Write ("Enter a character: ");

      // This is what generates the execption.
      int result = int.Parse (System.Console.ReadLine ());
    }
  }
}

Another variable, though probably irrelevant is that I generate the
.EXE using 'nant' instead of the build environment inside Visual
Studio .NET.

Cheers.

    ------------------------------ cut here --------------------------

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Nov 26 10:16:02 2003

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

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
	c:\Program Files\ATI Technologies\ATI Control Panel

Output from C:\Cygwin\bin\id.exe (nontsec)
UID: 1003(chrisr) GID: 513(None)
513(None)

Output from C:\Cygwin\bin\id.exe (ntsec)
UID: 1003(chrisr) GID: 513(None)
513(None)             544(Administrators)
545(Users)            1005(Debugger Users)
1006(VS Developers)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `C:\Cygwin\home\chrisr'
MAKE_MODE = `unix'
PWD = `/home/chrisr'
USER = `chrisr'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\chrisr\Application Data'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `ALIEN'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\chrisr'
HOSTNAME = `alien'
INCLUDE = `C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\'
INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
LESS = `-x4 -M -PM ?e-- EOF --:-- MORE --. ?f[%f]:[stdin]. (%pB\% -- %lb/%L lines)\:'
LIB = `C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\'
LOGONSERVER = `\\ALIEN'
MANPAGER = `less -R'
MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man:'
NUMBER_OF_PROCESSORS = `2'
OLDPWD = `/usr/bin'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 9, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0209'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\u@\h \W(\#)$ '
PS2 = `> '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\chrisr\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\chrisr\LOCALS~1\Temp'
USERDOMAIN = `ALIEN'
USERNAME = `chrisr'
USERPROFILE = `C:\Documents and Settings\chrisr'
VS71COMNTOOLS = `C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'

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\/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   76308Mb  30% CP CS UN PA FC     
d:  hd  NTFS   57239Mb  31% CP CS UN PA FC     Backup
h:  net NTFS    5790Mb  53% CP CS    PA        chrisr
r:  cd  CDFS     422Mb 100%    CS UN           BF1942_2
v:  cd           N/A    N/A                    
w:  cd           N/A    N/A                    

C:\Cygwin      /          system  binmode
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!)
Found: C:\Cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\Cygwin\bin\grep.exe
Not Found: ld
Found: C:\Cygwin\bin\ls.exe
Not Found: make
Found: C:\Cygwin\bin\mv.exe
Found: C:\Cygwin\bin\rm.exe
Found: C:\Cygwin\bin\sed.exe
Found: C:\Cygwin\bin\sh.exe
Found: C:\Cygwin\bin\tar.exe

   61k 2003/08/09 C:\Cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2003/8/9 1:35
   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/25 0:28
   35k 2002/01/09 C:\Cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 0:03
   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 4: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 2:58
   30k 2003/08/11 C:\Cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2003/8/10 21:12
   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 21: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 3:00
   15k 2003/08/11 C:\Cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2003/8/10 21:13
   69k 2003/08/10 C:\Cygwin\bin\cyggettextlib-0-12-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextlib-0-12-1.dll" v0.0 ts=2003/8/10 17:10
   12k 2003/08/10 C:\Cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextpo-0.dll" v0.0 ts=2003/8/10 17:11
  134k 2003/08/10 C:\Cygwin\bin\cyggettextsrc-0-12-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextsrc-0-12-1.dll" v0.0 ts=2003/8/10 17:10
   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 22: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 18:16
  958k 2003/08/10 C:\Cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2003/8/10 15:57
   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 3: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 16:50
   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/25 0:27
   20k 2002/01/09 C:\Cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 0:03
   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 4:25
  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/25 0:29
  175k 2002/01/09 C:\Cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 0:03
  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/25 0:17
  202k 2002/01/09 C:\Cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 0:03
  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 4:24
   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/25 0:27
   12k 2002/01/09 C:\Cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 0:03
   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 4:24
   67k 2003/09/10 C:\Cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2003/9/10 9:25
   63k 2003/04/11 C:\Cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2003/4/11 3:31
   15k 2003/09/10 C:\Cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2003/9/10 9:25
   61k 2003/04/11 C:\Cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2003/4/11 3:31
  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 22: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 18:16
   60k 2003/08/09 C:\Cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2003/8/9 1:28
  949k 2003/09/20 C:\Cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2003/9/20 15:31
    Cygwin DLL version info:
        DLL version: 1.5.5
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 94
        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: Sat Sep 20 16:31:15 EDT 2003
        CVS tag: cr-0x9b
        Shared id: cygwin1S3

Cygwin Package Information
Last downloaded files to: C:\Documents and Settings\chrisr\My Documents\Staging\cygwin
Last downloaded files from: ftp://ftp.sunsite.utk.edu/pub/cygwin

Package              Version            
_update-info-dir     00223-1            
ash                  20031007-1         
base-files           2.6-1              
base-passwd          1.1-1              
bash                 2.05b-16           
bzip2                1.0.2-5            
cygwin               1.5.5-1            
diffutils            2.8.4-1            
editrights           1.01-1             
fileutils            4.1-2              
findutils            4.1.7-4            
gawk                 3.1.3-4            
gdbm                 1.8.3-7            
grep                 2.5-1              
groff                1.18.1-2           
gzip                 1.3.5-1            
less                 381-1              
libbz2_1             1.0.2-5            
libgdbm              1.8.0-5            
libgdbm-devel        1.8.3-7            
libgdbm3             1.8.3-3            
libgdbm4             1.8.3-7            
libgettextpo0        0.12.1-3           
libiconv2            1.9.1-3            
libintl1             0.10.40-1          
libintl2             0.12.1-3           
libncurses-devel     5.3-4              
libncurses5          5.2-1              
libncurses6          5.2-8              
libncurses7          5.3-4              
libpcre              4.1-1              
libpcre0             4.4-2              
libreadline4         4.1-2              
libreadline5         4.3-5              
login                1.9-7              
man                  1.5m2-1            
mktemp               1.5-3              
ncurses              5.3-4              
readline             4.3-5              
rxvt                 2.7.10-3           
sed                  4.0.7-3            
sh-utils             2.0.15-4           
tar                  1.13.25-5          
termcap              20021106-2         
terminfo             5.3_20030726-1     
texinfo              4.2-4              
textutils            2.0.21-1           
vim                  6.2.098-1          
which                1.5-2              
zlib                 1.1.4-4            
Use -h to see help about each section

--
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/