X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Sat, 4 Jul 2009 23:26:25 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Segmentation fault when exception is thrown or assertion fails [g++/gcc] Message-ID: <20090705032625.GA20167@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sun, Jul 05, 2009 at 04:18:44AM +0100, Roman Werpachowski wrote: >I get the following output: > > 4 [sig] a 1408 _cygtls::handle_exceptions: Error while dumping >state (probably corrupted stack) >Segmentation fault (core dumped) > >When running the following test programs: > >#include > >int main(void) >{ > assert( 1 == 0 ); > return 0; >} > >or > >#include >#include > >int main() >{ > throw new std::runtime_error("Just because"); // the same with >assert(false); >} > >I am using gcc-3.4.4. > >I understand that Cygwin defaults to dumping the stack trace, but why >the message about segmentation fault? It confuses the hell out of me. Please provide these details ||||||||||||||||||||||||||||||| VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV -- 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