From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10738 invoked by alias); 18 Aug 2017 16:20:46 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 10345 invoked by uid 89); 18 Aug 2017 16:20:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=houder, Houder, ATM, atm X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Aug 2017 16:20:44 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id 7427371B09F0B for ; Fri, 18 Aug 2017 18:20:41 +0200 (CEST) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id A5F465E021D for ; Fri, 18 Aug 2017 18:20:40 +0200 (CEST) Received: by calimero.vinschen.de (Postfix, from userid 500) id 898AAA80990; Fri, 18 Aug 2017 18:20:40 +0200 (CEST) Date: Fri, 18 Aug 2017 16:20:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: REVISITED: Signal delivered while blocked Message-ID: <20170818162040.GC6314@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ghzN8eJ9Qlbqn3iT" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-SW-Source: 2017-08/txt/msg00171.txt.bz2 --ghzN8eJ9Qlbqn3iT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1375 On Aug 16 23:22, Houder wrote: > Hi, >=20 > Please read this post first: >=20 > https://cygwin.com/ml/cygwin/2017-08/msg00048.html > ( Signal delivered while blocked -- by Noah Misch, August 4th 2017 ) >=20 > This post is not intended to "hijack" the post by Noah Misch; this post o= nly > ships an alternative (i.e. revised) testcase for the one by provided by N= oah > Misch. >=20 > The alternative testcase in fact consists of 2 testcases (2 files): >=20 > 1. sigprocmask-exclusion4.c > 2. sigprocmask-exclusion5.c Thanks for the testcases. This is still a pretty tricky problem and a few hours of debugging haven't shown anything conclusive. The signal code was my former co-maintainer's domain, so I'm not as fluent in debugging it. ATM it looks like a race inside of the Cygwin DLL to me. The checks if a signal should be handled and the *creation* of the call to the signal handler (but *not* the actual call to the signal handler) may occur before the signal is blocked, while the call then occurs after the blocking. Anyway, I'm not sure I have enough time to fully immerse into that problem any time soon. I'd be not too unhappy if somebody would try to debug this in the Cygwin DLL, too... Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ghzN8eJ9Qlbqn3iT Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZlxPYAAoJEPU2Bp2uRE+g4pMQAIsfJSVWc3kDgM4GgsuDeyPF /knUHqRvBmAFfFC3glULn65RaSsSOiayVSkpPDysTo7RJZVMPbhe3qiiEFMiI74J PIsA2uSOOFB7JjQUMtgt+bdffUyWgnvU6TaKDk5GeLRCnBc2vqRHk1XZ+bSfi+1Y IP1YZBxAt79k3BxEoqi5r9HlFTMQnUFBm26X76QsMrfzYkwwNNOJAGvRZqn/WvJX tK7DO1tBJgbf2JiaRPc5MCYWKyj7g7ZaVcKGJzAEQpvDMkJcB402Dhqz2euqWx7h To9/biJDIp5DNXe5H4hU97UoUbNBn3uuwBOzM1AUMrTCpNonS3Mc7EWXttyNQxC0 GIBpgXYx05Oc2em0swUhD0hlYX9vChgV6RcSBbj3hBSOtiddFXP7/70AoK4YCGVR 51KOxzecmPsF8gZz6y2tuL9IJbZ0G/wK9XFx0gvlzuudaK9NBW8UMarJzkRzFHwP Jsw4TqPhwHuwWYLjbXPXggeas1k83dQoXdHha8ehG1Q/kjkQoTlQpKdbUqRhaWmZ qqtztCHjCHUXBwD9u2NSi1P0bNA/4ca9sRe2MhW7MkJkihM+iFM7aoY921PHJUJU t9+jj0Go/wunYgGzDfILhywmliaryL/n09AoMgkK8vlSPADplXN1v1B6kwBj5G1/ zfibscqld2M9SsxohJC5 =W/ev -----END PGP SIGNATURE----- --ghzN8eJ9Qlbqn3iT--