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: Mail-Followup-To: cygwin AT cygwin DOT com References: <838238ed-0bf4-9374-fb8a-bc6a47c512a9 AT t-online DOT de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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