delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/01/27/14:35:39

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 50RJZdZi2028472
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 50RJZdZi2028472
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=QSNp9hrK
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6BF43857C63
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1738006538;
bh=eUCdjkweh7Hv6IVVQQb9gbB5pzR/tb6XY9hHSLpYfTI=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=QSNp9hrKJbOpbYXiEVoQP1730tiY4k6KMopEpugx8gShSuH6EpoJ0l3VpBuLUPd2C
n6mrPmhgCxltrWKEOOqmFX/k3UFi1YrLMVUtx09Vt0bzkmzZVGNTYsOQfaSgIw7Piu
Lkh58ydlucyxPRZ6KE5F8r71Xvjn7VJE82qqokpY=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 55E093858D1E
Date: Mon, 27 Jan 2025 20:35:11 +0100
To: cygwin AT cygwin DOT com
Subject: Re: mq_send()/mq_receive() may never return if used from threads
Message-ID: <Z5ff7yCrS0CTPVwe@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <838238ed-0bf4-9374-fb8a-bc6a47c512a9 AT t-online DOT de>
<ea441ab3-14ab-3d2e-4e54-ec81c14efa92 AT t-online DOT de>
MIME-Version: 1.0
In-Reply-To: <ea441ab3-14ab-3d2e-4e54-ec81c14efa92@t-online.de>
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: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
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>

On Jan 27 19:59, Christian Franke via Cygwin wrote:
> Christian Franke wrote:
> > Found with 'stress-ng --workload ...':
> > 
> > If mq_receive is called on an empty queue and mq_send is called later
> > from a different thread, both functions never return and signals
> > (including SIGKILL) are no longer processed.
> > 
> > Testcase (attached):
> > 
> > $ uname -r
> > 3.5.5-1.x86_64
> > 
> 
> The problem is also reproducible with 3.5.6-1 and recent
> 3.6.0-0.345.gb940faa144ca

Yes, because I didn't have the time to look into it yet.

I just did, and I think I see what's going on.  This should be fixed
in 3.5.7.


Corinna

-- 
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