www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/02/28/07:20:54

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51SCKrtp1193122
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 51SCKrtp1193122
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=YhBpG1KY
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A62B7385840C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1740745250;
bh=8C9107KYGjZGiF0HfRertiNRJNm7KhOMWGMgfde24z8=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=YhBpG1KYFRVmmLeWvlAGibf4mJT1ozk4OXEKJzVfTBNT82wOMimmGl16E7StEPvh7
0Ii2sZ4K0Wcf0Z77qMNNw9CvTMePGdQm/slli2rznBXK2gsjuheQi67x3A9IHFYLHP
XagSSwCISnq9c2mJoF6fdkpKIRBIOGhjhEb/IR8o=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 34E773858C56
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 34E773858C56
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740745225; cv=none;
b=RtXviT3EWP0zSeFhvYYrY915lTXnGdUe4UYhabTw6d7eheKXUrHlOXZ9ZyiPm/Eb8dhebcRaV1w/OC/A+yI6VpHlNEOawGe2gSKEUaM8Vvjta3H9Kv9E8jRsfP+1cY2o4RPFumj+UKRwc0a6ERqVWcDub21J9FRPR0j+ZfDuavc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1740745225; c=relaxed/simple;
bh=/IVydIHLKB5isutgI41ahAOwwyVdGy7CfHg3FnWsOtQ=;
h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
b=FfR4c9/i16iOc/XB9G0oS1BYT1rWeaIZ94ncZB/4N54HUuHXB3GLmNDGIGYs5bTbT0pHGOfKtgtVVnGVaJ4rECJ/bxN6p8Ajg8TZdxU1EZa4qi7Fk9rkqFYBaTDWarld9KRvU0Bseq1eJwpJb3XM72QGbnd6VH5v2PUDF3yiZDk=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 34E773858C56
Date: Fri, 28 Feb 2025 21:20:20 +0900
To: cygwin AT cygwin DOT com
Subject: Re: cygwin 3.6.0: Signals may fail permanently if received after
SIGSTOP
Message-Id: <20250228212020.433a339f073060f65a0a736d@nifty.ne.jp>
In-Reply-To: <8c465025-4858-3113-fe2d-ce00dad21f8a@t-online.de>
References: <8c465025-4858-3113-fe2d-ce00dad21f8a AT t-online DOT de>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 51SCKrtp1193122

On Mon, 24 Feb 2025 11:29:59 +0100
Christian Franke wrote:
> Found with 'stress-ng --cpu-sched 1':
> 
> Testcase (attached):
> 
> $ uname -r
> 3.6.0-0.387.g8cebbb2b42bf.x86_64
> 
> $ gcc -o timersig timersig.c
> 
> $ ./timersig
> 638: fork()=639
> !!!!!!!!!!!!!...!!!!!!!!!!!!!SIGSTOP: Permission denied
>      0 [itimer] timersig 639 sig_send: error sending signal 14, pid 639, 
> pipe handle 0x14C, nb 0, packsize 192, Win32 error 0
> SIGKILL: Permission denied
> 
> $ kill 639
> -bash: kill: (639) - Permission denied
> 
> $ kill -9 639
> -bash: kill: (639) - Permission denied
> 
> $ /bin/kill --force 639
> 
> $ /bin/kill --force 639
> kill: 639: No such process
> 
> 
> A similar problem, but without the "error sending signal" message, 
> occurs if the timer is not used but the parent process issues SIGSTOP 
> SIGALRM SIGCONT ... sequences.

Thanks for the report, especially for the test case. I was able to
easily reproduce the issue. However, I haven't found the cause until
today. I spent 3 days investigating and discovered three bugs that
prevent the test case from behaving as expected.

I'll submit the patch seriese shotly.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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