Oscar Fuentes has discovered a serious problem with DWARF2 exception handling in GCC in context of windows messages, reported below and discussed in several posts to mingw users. This will also affect Cygwin apps that use C++ exceptions in combination with windows callbacks.
The immediate kneejerk is to revert to sjlj exception handling. What does Cygwin want to do? IMO, an even worse bug would be to have mingw use sjlj and cygwin use Dwarf2, or vice-versa. Danny ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, 29 September 2002 07:54 Subject: [Mingw-notify] [ mingw-Bugs-616059 ] Win Callbacks/C++ exceptions crashes app > This list is used to send updates of submitted patches, bug reports and file releases. You are discouraged from posting to this list. If you wish to unsubscribe you can do so at https://lists.sourceforge.net/lists/listinfo/mingw-notify.Bugs item #616059, was opened at 2002-09-29 06:54 > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=102435&aid=616059&grou p_id=2435 > > Category: None > Group: None > Status: Open > Resolution: None > Priority: 5 > Submitted By: Oscar Fuentes (oscarfuentes) > Assigned to: Nobody/Anonymous (nobody) > Summary: Win Callbacks/C++ exceptions crashes app > > Initial Comment: > G++ 3.2 configured with DWARF2 exception handling (as distributed by www.mingw.org). > > When a C++ exception is thrown from a Windows Callback (or, more generally, the exception needs to cross a Windows callback on its way to the exception handler) the application dies before reaching the exception handler. > > On the attached test case, an exception is thrown when you close the window. The exception handler is never reached. > > ---------------------------------------------------------------------- > > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=102435&aid=616059&grou p_id=2435 > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > MinGW-notify mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/mingw-notify http://mobile.yahoo.com.au - Yahoo! Messenger for SMS - Always be connected to your Messenger Friends