delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=1.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <20090722211238.sj3v40w3mgcsc0c8@webmail.mit.edu> |
Date: | Wed, 22 Jul 2009 21:12:38 -0400 |
From: | Joshua John Bialkowski <jbialk AT MIT DOT EDU> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: (g++) program crashes when I throw an exception in a separate thread |
References: | <20090722200521 DOT zftez7gasggsk0gw AT webmail DOT mit DOT edu> <4A67AD3A DOT 8060800 AT sbcglobal DOT net> <20090722203715 DOT rejtt46nhccswo4g AT webmail DOT mit DOT edu> |
In-Reply-To: | <20090722203715.rejtt46nhccswo4g@webmail.mit.edu> |
MIME-Version: | 1.0 |
User-Agent: | Internet Messaging Program (IMP) H3 (4.0.3) |
X-Spam-Score: | -2.599 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Quoting Joshua John Bialkowski >>> I'm using g++ (GCC) version 3.4.4 from the cygwin installer, and >>> I've run in to >>> this very confusing problem. I'm compiling with the -mno-cygwin option >> [...] >>> The problem I have is that when I launch a separate thread, and >>> then throw an >>> exception in that separate thread, my program will crash... even if I catch >>> that exception. >> >> Are you compiling with '-mthreads'? >> > > I was not, in fact. Of course the first results in Google for "MinGW > '-mthreads'" is: "always use -mthreads when using threads under MinGW. I just > spent hours using gdb instead of -mthreads." I will give that a try > and report > back to the list for the benefit of posterity. > That was the problem. Both the toy code and my original now work as I expected them to. Thank you for your help. :$. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |