C++ Exceptions in Multithreaded Applications Crash
Lenny Primak
lprimak@hope.nyc.ny.us
Sat Jun 29 18:29:00 GMT 2002
This has been submitted to GCC GNATS as PR/7168.
Using the G++ exception system from multiple threads corrupts the gcc's
internal exception stack, due to not including the thread-specific
exception context in the compile.
GCC Version: 2.95.3-5 from default Cygwin install.
I tried to re-compile gcc with --enable-threads=posix and with
--enable-sjlj-exceptions
with no results. The following program is used to determine if the
exception context is thread-specific or not:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc_exception.C
URL: <http://cygwin.com/pipermail/cygwin/attachments/20020629/84923345/attachment.ksh>
-------------- next part --------------
This prevents any sort of complex exception-sensitive multithreaded C++
programs to run in Cygwin/GCC environment.
Thanks for all your help,
Lenny
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list