DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 44TA6mNV1606774 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=e8aGyGKt X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F7173858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1716977206; bh=zTDPhT6L5C2XcqFBfE+so3LLFc+oBgGim69+rigsCFU=; h=Date:To:Cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=e8aGyGKtx4k0V7AJunc8YPYwKJKe9xIdZUEl6wIJeXgVjUqInYwZtziUuwu/fq/oy fBWYCXBTiE95QrTuJbwlRfHCXhu/fKgXFpjtJrQiu2doe8Wbq1/KrnMQxIUy3OnIZY FIIG9YnPJsN20dK+ylavq9W4HCMH+yU+vDgoCf2o= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6674E3858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6674E3858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716977185; cv=none; b=L422LS4KwAfQLsG+RqQznHAfJE1Z+uzpW1GU+JA6rQ6L5VP4o8w/arPp56oChRfrHFHa5qBQqNs3Z6kxD5WP0K9ZsUAZPWv1pWdtYdLZF2PnI96gTe14URpYR40ODPAQwzLPBT73zY7fdDcNtx2XNWGW7tsMjMUjlYREZaqgYnI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716977185; c=relaxed/simple; bh=PA2QfOHmbldWuIZwxaCY39gDj5xXKGRD7QsmqAKUbV0=; h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; b=Gm73Js8ZsVXtwdXUE/HJVd2/bmTyJ0tOSEqL+F0YxNUxY3yOhMzbGgafe5gQkOHfo8chgtvw69zthBy+D84jKk+XQcdhGT0YpnmvpKfoRBhJT1RzJGVtDBXaEY2QaVfqdfvJJzdPp1htyJjwv7IbtjlYuIbsM+anG4TqrolUxb4= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Wed, 29 May 2024 19:06:19 +0900 To: cygwin AT cygwin DOT com Cc: Bruno Haible Subject: Re: multithreading broken in Cygwin 3.5.3 Message-Id: <20240529190619.53c5820ecafcf31909c4320c@nifty.ne.jp> In-Reply-To: <3631253.RrQHTzY0li@nimes> References: <3631253 DOT RrQHTzY0li AT nimes> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: Takashi Yano via Cygwin Reply-To: Takashi Yano 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 Thu, 23 May 2024 20:09:09 +0200 Bruno Haible wrote: > In Cygwin 3.5.3, on different machines, I see 3 Gnulib tests failing by > timeout that worked perfectly fine in Cygwin 3.4.6 and older: > FAIL: test-call_once2.exe > FAIL: test-lock.exe > FAIL: test-pthread-once2.exe > > Find here attached a simplified version of test-pthread-once2.c. > Compile and run: > $ x86_64-pc-cygwin-gcc -Wall foo.c > $ ./a > > Expected behaviour: Termination within 1 minute. > Actual behaviour: Terminates by timeout after 10 minutes. > > When I change > #define ENABLE_DEBUGGING 0 > to > #define ENABLE_DEBUGGING 1 > the test does lots of output and terminates within 20 seconds. > Therefore I can't really tell where the problem comes from. > But I do see some changes in > $ git diff cygwin-3.4.6 cygwin-3.5.3 winsup/cygwin/thread.cc > $ git diff cygwin-3.4.6 cygwin-3.5.3 winsup/testsuite/winsup.api/pthread Thanks for the report. As you mentioned in private mail to me, this seems to be a regression of pthread::once() introduced by commit 2c5433e5da8216aaf7458e50c63683c68fb0d3e8. I'll submit a patch for that issue shortly. -- Takashi Yano -- 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