delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.6 required=5.0 tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <20100712230519.4e871a91@CorvusMC.home> |
References: | <20100712230519 DOT 4e871a91 AT CorvusMC DOT home> |
Date: | Tue, 13 Jul 2010 06:58:36 +0100 |
Message-ID: | <AANLkTikNDgiExxExCh-6u7AIOfNjGWiYekW3nIDf_JKU@mail.gmail.com> |
Subject: | Re: Sending SIGUSR1 to thread in nanosleep causes segfault |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
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 12 July 2010 22:05, Corvus Corax wrote: > Just to update some details. > > I am working with James Cotton on the OpenPilot project. > We are trying to port the POSIX simulation port of FreeRTOS to cygwin. > > We run into issues with signal handling in cygwin 1.7.5 that are > currently blocking our development, since every method to suspend a > running thread via signals either causes: > > - random segfaults within Cygwin DLL. > or > - failure to execute the signal handler. I'm afraid you're unlikely to get a quick and comprehensive answer, because the Cygwin signal guru currently is on a well-deserved vacation. Thanks for the testcases, hopefully they'll prove useful. You could also try the latest snapshot from http://cygwin.com/snapshots to see whether that makes a difference. A debug version of the DLL is available there as well. And if you're brave enough, you could try getting stuck into the Cygwin sources yourself. The trouble with Cygwin signals is that Windows provides practically no support for them, so everything has to be manually mapped to Windows concepts. Have a look at the Signals section of http://www.cygwin.com/cygwin-ug-net/highlights.html for some of the tricks. Obviously pthreads further complicate matters, and the sort of thing you're doing here is not something that tends to get a lot of use by "normal" programs, so shortcomings are quite likely. Andy -- 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 |