delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/19/13:03:43

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sat, 19 Dec 2009 13:03:22 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 2nd occurrence of signal not being handled?
Message-ID: <20091219180322.GB7183@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <loom DOT 20091219T060807-696 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20091219T060807-696@post.gmane.org>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Sat, Dec 19, 2009 at 05:23:42AM +0000, Mark Geisert wrote:
>I'm trying to get a larger application working but have an issue with
>signal handling.  I've boiled the issue down to the STC below.  It
>causes two access violations, only the first of which gets handled by
>the SIGSEGV signal handler I've registered for the purpose.  The second
>access violation kills the program, as if the handler were no longer
>registered.  Using diagnostic code not shown I've made sure the handler
>is still registered, but somehow it's not being called by Cygwin's
>internal fault handling.  Or maybe there's some subtle mistake in my
>use of the signal functions.  Any advice would be appreciated.

I don't suppose you tried it on linux?  Cygwin behaves the same way as
linux.  There may be some sa_flags setting that will cause the handler
to continue to be arms.

cgf

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019