delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/15/10:55:07

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 15 Jul 2010 10:54:49 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Sending SIGUSR1 to thread in nanosleep causes segfault
Message-ID: <20100715145449.GA25644@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <AANLkTil1j8AMz_RV7_tEETMf2wioTrOr89miENO37fsw AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <AANLkTil1j8AMz_RV7_tEETMf2wioTrOr89miENO37fsw@mail.gmail.com>
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 Mon, Jul 12, 2010 at 11:36:04AM -0500, James Cotton wrote:
>Hello, I've been trying to get the FreeRTOS Posix simulator to run on
>Cygwin and have run into a few bugs in the signal handling/pthread
>libraries and have isolated test cases
>
>Essentially sending a SIGUSR1 to a pthread causes a segfault if that
>thread is in sleep/nanosleep/select.  This behavior continues if you
>comment out the printing behavior.
>
>I believe at least nanosleep is meant to return when it receives a
>signal so this seems like a bug.

Well, yes.  A SIGSEGV in cygwin code is always a bug.

I'm investigating.  I see how it happens but not why yet.

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