bash: Strange behavior when a program crashes

Frank Redeker f.redeker@razorcat.de
Wed Oct 29 12:22:00 GMT 2008


Operating System:

Windows XP SP 3 with DEP enabled

$ uname -a
CYGWIN_NT-5.1 TYR 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin

$ bash --version
GNU bash, version 3.2.39(20)-release (i686-pc-cygwin)
Copyright (C) 2007 Free Software Foundation, Inc.


When I execute a non-cygwin executable from the bash and the program
crashes with an exception raised (e.g. access violation), the bash
doesn't return immediately. Instead the crashed program is executed 4
more times before the bash finally returns.


This behavior is reproducible with the attached code compiled with the
free Borland compiler.

If the example is executed, the output of `fprintf` is only shown once,
but the messagebox is shown 5 times.


Any ideas?


Frank
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: crash.c
URL: <http://cygwin.com/pipermail/cygwin/attachments/20081029/d6cda6c5/attachment.c>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list