delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/05/20:26:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <A00551AB603F504F8917DE4EB4D81E5F01ECF7@pegasus.lawaudit.com>
From: "Bryant, Nathan" <nbryant AT allegientsystems DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: pthread app hangs after Ctrl+C
Date: Wed, 5 Sep 2001 20:28:25 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

------_=_NextPart_000_01C1366A.D788E1F0
Content-Type: text/plain;
	charset="iso-8859-1"


Hi,

I have an application that hangs after Ctrl+C is pressed. I'm currently
running Cygwin DLL 1.3.2. Windows 2000's Task Manager shows the CPU at 100%
after ctrl+c, as long as the command window is in the foreground -- it idles
again if I Alt+tab somewhere else.

there are a couple oddball things that it's doing:

 - the signal handler for SIGINT is a static function in a DLL. (the signal
handler just immediately returns, at the moment, but the behavior is the
same if it sets a volatile int to 1, signalling the main loop to quit...)
 - the app uses pthreads.

it dies properly if i remove the signal handler entirely, and also exits
normally if i just do 'kill -INT' from another bash window, even if the
signal handler is installed; the problem only seems to appear with Ctrl+C.

If there is need, I could try to come up with a minimal test case, but maybe
this is already known and fixed in cygwin-current?


cygcheck output is attached.

 <<cygcheck.out>> 

------_=_NextPart_000_01C1366A.D788E1F0
Content-Type: application/octet-stream;
	name="cygcheck.out"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="cygcheck.out"

=0A=
Cygnus Win95/NT Configuration Diagnostics=0A=
Current System Time: Wed Sep  5 20:28:46 2001=0A=
=0A=
WinNT Ver 5.0 build 2195 Service Pack 2=0A=
=0A=
Path:	/c/j2sdkee1.2.1/bin=0A=
	/usr/local/bin=0A=
	/usr/bin=0A=
	/bin=0A=
	/c/Tcl/bin=0A=
	/c/oracle/ora81/bin=0A=
	/c/Program Files/Oracle/jre/1.1.7/bin=0A=
	/c/WINNT/system32=0A=
	/c/WINNT=0A=
	/c/WINNT/System32/Wbem=0A=
	/c/jbuilder4/jdk1.3/bin=0A=
	/c/emacs-20.7/bin=0A=
	/c/weblogic/bin/oci815_8=0A=
	/c/jikes/bin=0A=
	/c/Python20=0A=
	/c/Program Files/rksupport=0A=
	/c/program files/gnu/wincvs 1.3=0A=
	/usr/bin=0A=
	/usr/X11R6/bin=0A=
	/usr/local/bin=0A=
=0A=
SysDir: C:\WINNT\System32=0A=
WinDir: C:\WINNT=0A=
=0A=
PWD =3D `/home/Administrator'=0A=
USER =3D `Administrator'=0A=
MAKE_MODE =3D `unix'=0A=
HOME =3D `/home/Administrator'=0A=
=0A=
NUMBER_OF_PROCESSORS =3D `1'=0A=
LOGONSERVER =3D `\\MADMAX'=0A=
OS2LIBPATH =3D `C:\WINNT\system32\os2\dll;'=0A=
JAVAC =3D `javac'=0A=
COMSPEC =3D `C:\WINNT\system32\cmd.exe'=0A=
J2EE_HOME =3D `c:\j2sdkee1.2.1'=0A=
SYSTEMDRIVE =3D `C:'=0A=
CLASSPATH11 =3D ` '=0A=
HOSTNAME =3D `LASN-001'=0A=
PROCESSOR_REVISION =3D `0806'=0A=
PATHEXT =3D `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'=0A=
COMPUTERNAME =3D `LASN-001'=0A=
CLASSPATH =3D =
`.;c:\jakarta-regexp-1.2\jakarta-regexp-1.2.jar;c:\jakarta-oro-2.0.1\jak=
arta-oro-2.0.1.jar;c:\oreilly\classes;c:\oracle\ora81\jdbc\lib\classes12=
.zip;c:\weblogic\lib\weblogic510sp9.jar;c:\weblogic\lib\weblogicaux.jar=
;c:\weblogic\classes;c:\jbuilder4\jdk1.3\jre\lib\rt.jar;c:\cryptix\build=
\jars\cryptix-jce-api.jar;c:\cryptix\build\jars\cryptix-jce-provider.jar=
;c:\ssce\runtime\lib\ssce.jar'=0A=
WINDIR =3D `C:\WINNT'=0A=
USERPROFILE =3D `C:\Documents and Settings\nbryant'=0A=
PS1 =3D `\[\033]0;\w\007=0A=
\033[32m\]\u@\h \[\033[33m\w\033[0m\]=0A=
$ '=0A=
PROGRAMFILES =3D `C:\Program Files'=0A=
MACHTYPE =3D `i686-pc-cygwin'=0A=
PROCESSOR_IDENTIFIER =3D `x86 Family 6 Model 8 Stepping 6, =
GenuineIntel'=0A=
OS =3D `Windows_NT'=0A=
CVS_RSH =3D `ssh'=0A=
OLDPWD =3D `/usr/bin'=0A=
PROCESSOR_ARCHITECTURE =3D `x86'=0A=
TEMP =3D `/tmp'=0A=
NTRESKIT =3D `C:\Program Files\rksupport'=0A=
PROCESSOR_LEVEL =3D `6'=0A=
SYSTEMROOT =3D `C:\WINNT'=0A=
HOMEDRIVE =3D `C:'=0A=
ALLUSERSPROFILE =3D `C:\Documents and Settings\All Users'=0A=
SHLVL =3D `1'=0A=
JAVAC_FLAGS =3D ` '=0A=
APPDATA =3D `C:\Documents and Settings\nbryant\Application Data'=0A=
COMMONPROGRAMFILES =3D `C:\Program Files\Common Files'=0A=
HOMEPATH =3D `\'=0A=
USERDOMAIN =3D `GO-DATA'=0A=
USERNAME =3D `nbryant'=0A=
SHELL =3D `/bin/sh'=0A=
HOSTTYPE =3D `i686'=0A=
OSTYPE =3D `cygwin'=0A=
TERM =3D `cygwin'=0A=
JIKESPATH =3D `c:\jbuilder4\jdk1.3\jre\lib\rt.jar'=0A=
_ =3D `/usr/bin/cygcheck'=0A=
TZ =3D `EST5EDT4,M4.1.0/2,M10.5.0/2'=0A=
=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2=0A=
  (default) =3D `/cygdrive'=0A=
  cygdrive flags =3D 0x00000022=0A=
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options=0A=
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Men=
uOrder\Start Menu\Programs\Cygnus Solutions=0A=
  (default) =3D (unsupported type)=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/=0A=
  (default) =3D `C:/cygwin'=0A=
  flags =3D 0x0000000a=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/c=0A=
  (default) =3D `C:'=0A=
  flags =3D 0x0000000a=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/devel=0A=
  (default) =3D `c:\development'=0A=
  flags =3D 0x00000008=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts =
v2\/london=0A=
  (default) =3D `c:\weblogic\myserver\london'=0A=
  flags =3D 0x00000008=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/tmp=0A=
  (default) =3D `c:\WINNT\TEMP'=0A=
  flags =3D 0x0000000a=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts =
v2\/usr/bin=0A=
  (default) =3D `C:/cygwin/bin'=0A=
  flags =3D 0x0000000a=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts =
v2\/usr/lib=0A=
  (default) =3D `C:/cygwin/lib'=0A=
  flags =3D 0x0000000a=0A=
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options=0A=
=0A=
a:  fd           N/A    N/A                    =0A=
c:  hd  FAT32  19075Mb  45% CP    UN           =0A=
d:  cd           N/A    N/A                    =0A=
q:  net NTFS   12997Mb  45% CP CS UN PA FC     =0A=
=0A=
c:\weblogic\myserver\london  /london  system  textmode=0A=
c:\development  /devel   system  textmode=0A=
C:\cygwin\bin  /usr/bin  system  binmode=0A=
C:\cygwin\lib  /usr/lib  system  binmode=0A=
c:\WINNT\TEMP  /tmp     system  binmode=0A=
C:\cygwin  /        system  binmode=0A=
C:    /c       system  binmode=0A=
q:    /cygdrive/q  user    binmode,noumount=0A=
=0A=
Found: C:\cygwin\bin\bash.exe=0A=
Found: C:\cygwin\bin\cat.exe=0A=
Found: C:\cygwin\bin\cpp.exe=0A=
Found: C:\cygwin\bin\find.exe=0A=
Found: C:\cygwin\bin\gcc.exe=0A=
Found: C:\cygwin\bin\gdb.exe=0A=
Found: C:\cygwin\bin\ld.exe=0A=
Found: C:\cygwin\bin\ls.exe=0A=
Found: C:\cygwin\bin\make.exe=0A=
Found: C:\cygwin\bin\sh.exe=0A=
=0A=
   90k 2001/09/05 C:\cygwin\usr\local\bin\cygltdl-3.dll - os=3D4.0 =
img=3D1.0 sys=3D4.0=0A=
                  "cygltdl-3.dll" v0.0 ts=3D2001/9/4 20:46=0A=
  841k 2001/09/06 C:\cygwin\usr\local\bin\cygcitserver.dll - os=3D4.0 =
img=3D1.0 sys=3D4.0=0A=
                  "cygcitserver.dll" v0.0 ts=3D2001/9/5 20:05=0A=
   41k 2001/05/28 C:\cygwin\bin\cygXpm-noX4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygXpm-noX4.dll" v0.0 ts=3D2001/5/28 13:57=0A=
   56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygbz21.0.dll" v0.0 ts=3D2000/11/20 18:53=0A=
   18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cyggdbm.dll" v0.0 ts=3D2000/10/22 22:26=0A=
   14k 2000/10/23 C:\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygintl.dll" v0.0 ts=3D2000/10/23 15:02=0A=
   45k 2000/10/22 C:\cygwin\bin\cygjbig1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygjbig1.dll" v0.0 ts=3D2000/10/22 19:06=0A=
   17k 2001/01/07 C:\cygwin\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cyghistory4.dll" v0.0 ts=3D2001/1/6 23:34=0A=
  108k 2001/01/07 C:\cygwin\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygreadline4.dll" v0.0 ts=3D2001/1/6 23:34=0A=
   45k 2000/11/20 C:\cygwin\bin\cygXpm-X4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygXpm-X4.dll" v0.0 ts=3D2000/11/19 21:45=0A=
   49k 2001/02/03 C:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygz.dll" v0.0 ts=3D2001/2/3 15:35=0A=
   81k 2001/04/28 C:\cygwin\bin\cygitcl30.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygitcl30.dll" v0.0 ts=3D2001/4/28 18:57=0A=
   35k 2001/04/28 C:\cygwin\bin\cygitk30.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygitk30.dll" v0.0 ts=3D2001/4/28 18:57=0A=
  390k 2001/04/28 C:\cygwin\bin\cygtcl80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygtcl80.dll" v0.0 ts=3D2001/4/28 18:56=0A=
    5k 2001/04/28 C:\cygwin\bin\cygtclpip80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
   10k 2001/04/28 C:\cygwin\bin\cygtclreg80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygtclreg80.dll" v0.0 ts=3D2001/4/28 18:56=0A=
  623k 2001/04/28 C:\cygwin\bin\cygtk80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygtk80.dll" v0.0 ts=3D2001/4/28 18:57=0A=
  119k 2001/06/06 C:\cygwin\bin\cygjpeg6b.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygjpeg6b.dll" v0.0 ts=3D2001/6/6 0:27=0A=
  163k 2001/05/06 C:\cygwin\bin\cygpng2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygpng2.dll" v0.0 ts=3D2001/5/6 0:05=0A=
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygform5.dll" v0.0 ts=3D2001/4/25 1:28=0A=
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygmenu5.dll" v0.0 ts=3D2001/4/25 1:27=0A=
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygncurses++5.dll" v0.0 ts=3D2001/4/25 1:29=0A=
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygncurses5.dll" v0.0 ts=3D2001/4/25 1:17=0A=
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygpanel5.dll" v0.0 ts=3D2001/4/25 1:27=0A=
  245k 2001/06/12 C:\cygwin\bin\cygtiff3.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygtiff3.dll" v0.0 ts=3D2001/6/12 13:25=0A=
  678k 2001/05/21 C:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0=0A=
                  "cygwin1.dll" v0.0 ts=3D2001/5/20 23:28=0A=
    Cygwin DLL version info:=0A=
        dll major: 1003=0A=
        dll minor: 2=0A=
        dll epoch: 19=0A=
        dll bad signal mask: 19005=0A=
        dll old termios: 5=0A=
        dll malloc env: 28=0A=
        api major: 0=0A=
        api minor: 39=0A=
        shared data: 3=0A=
        dll identifier: cygwin1=0A=
        mount registry: 2=0A=
        cygnus registry name: Cygnus Solutions=0A=
        cygwin registry name: Cygwin=0A=
        program options name: Program Options=0A=
        cygwin mount registry name: mounts v2=0A=
        cygdrive flags: cygdrive flags=0A=
        cygdrive prefix: cygdrive prefix=0A=
        cygdrive default prefix: =0A=
        build date: Sun May 20 23:28:17 EDT 2001=0A=
        shared id: cygwin1S3=0A=
=0A=
Use -h to see help about each section=0A=


------_=_NextPart_000_01C1366A.D788E1F0
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
------_=_NextPart_000_01C1366A.D788E1F0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019