[patch] recognise when an exec()d process terminates due to unhandled exception

Brian Dessent brian@dessent.net
Fri Mar 14 02:46:00 GMT 2008


Brian Dessent wrote:

> As we all know, Cygwin calls SetErrorMode (SEM_FAILCRITICALERRORS) to
> suppress those pop up GUI messageboxes from the operating system when 

Oh, I forgot to mention:

In the course of testing this I came to realize that because of some
sort of "retry if fork doesn't seem to be working" code (not sure of the
details), every time that this situation comes up we are actually
launching five copies of the binary.  I had at one point a testcase so
pathological that it somehow managed to invoke a MS runtime popup error,
even though it was a pure Cygwin binary.  And you'd get 5 copies of the
thing before it gave up and stopped trying.  You can see it in strace a
lot easier though since strace is running the debugger loop you see the
exceptions.

Brian



More information about the Cygwin-patches mailing list