From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic307-4.consmr.mail.bf2.yahoo.com (sonic307-4.consmr.mail.bf2.yahoo.com [74.6.134.43]) by sourceware.org (Postfix) with ESMTPS id C51583858C60 for ; Tue, 28 Dec 2021 13:41:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C51583858C60 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sbcglobal.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=sbcglobal.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1640698907; bh=Zivz29C3STf30HO1Tgqxyt9MO2XRM3ufh8RmCBVbwfk=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=OlBqqz3n2XmDbwiTlHYPBCkgv7XENkBMEyEm6CsRqCOIrVZSUGQ48JlE+1EwaNNEWbpcIovi3BNC7SExoHYw3KSjlsBgvaUZUK8W+L9Y0Ghyfrd/6nx4zZD5Xc7XeH9tve1O5bHXGSdriIJ+63iaiovMasQiKLpJG+znOPjC7z1YJjFI2DQtNsexYM52YDVMlvvTW3LttgsiiGf9AFAM/RzzSqGXTXoXGnDnCIV9oJ00xKaaB60G65ztLtJLyS6vij3dyEB2xkUely3vHzN+9/oIMMeHv09PNX+I3AA4A94HFtVfBEH4XIb/KLYRGFxDy3uciyvlciamRWG3UVgJ1Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1640698907; bh=3EdhGmJGh4B9JP3QbhTy/tIsxRMqFc4eJlM73C+TZeF=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=mt1d93winbX4m1p5+RUBQnTACUrVF/R5f0Mo7oaPeOaiwI6tJxut54m7P7lEz2+Ip6iEaJVnN2IKq4NXOKd7s1SsujHyWfymJEk1X5vNX7dxMrqxMPQg6GPpLggdscSL3YloDHOHQ6m8tIhBtUZ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bluY7RaYr6G63xK4t00lTZCz4ylTTp8OkyncXbxmhJM.Cj3P1obEcV0O4SD7 SyiGoz7wVDL7xlBtNeBB0unAiTG6kVEU1qNLy0Y89k3ikIm5MhvY1CAzXVG4cwvD1JDtafYtyjkZ u6wjE8gtv7TRSTrFyCDa7pxMcBpH7DeHWu.MwEcptHSsG7mrW12I90Q2u_GwbRqXGc0yu18_bz2m iw.pATNUPbMUzb_0zZ6tP85ucHwulsjH6qPPA2fogBceZ13CtT0gMKuwhbpa0YZ2B9qKmBDqyCv1 EZh8nJDukXa6at8rrX84g5DZsVyj8plOvKKSWKV2KcYDyyYArUV6sTxGHtBuQGcmttoSafSICmle _s9BBqeJct78NHUg- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.bf2.yahoo.com with HTTP; Tue, 28 Dec 2021 13:41:47 +0000 Date: Tue, 28 Dec 2021 13:41:30 +0000 (UTC) From: "Z. Majeed" To: "cygwin-developers@cygwin.com" Message-ID: <337923187.1098548.1640698890736@mail.yahoo.com> In-Reply-To: References: <2e5e006e-256d-17af-fbd5-2f38fce19b7c@gmail.com> Subject: Re: Signal delivered while blocked MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.19498 YMailNorrin X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin-developers@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component developers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2021 13:41:49 -0000 The discussion continued in=C2=A0https://sourceware.org/legacy-ml/cygwin/20= 17-08/msg00180.html On Monday, December 27, 2021, 06:15:05 PM EST, David McFarland wrote:=20 > Hi Guys, >=20 > Some time ago (2017) a Postgres developer reported a signal issue > not present in older version (2013) >=20 > https://sourceware.org/pipermail/cygwin/2017-August/234001.html >=20 > For what I can see the issue is still present. >=20 >=20 > Ideas for debugging ? I had a look at your program. What seems to be happening is that he signal thread receives the signal, and uses find_tls to find a thread to handle it. If this is after a call to sigpermit(), then the mask will be zero and it will commit to sending the signal to the main thread of the test program. This is done without any lock, so the main thread can now handle an existing signal, call sigforbid() then usleep(). At this point the signal thread can resume, queuing up the next signal, and the main thread will pick it up when usleep calls sig_dispatch_pending, even though the main thread signal mask now disallows it. The old thread ended with a discussion about whether this is even valid se of sigprocmask(), which didn't seem to be resolved. Anyone have any thoughts on that?