From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dwmta1017.nifty.com (mta-snd01005.nifty.com [106.153.227.37]) by sourceware.org (Postfix) with ESMTPS id 0719E3858D35 for ; Sat, 10 Jun 2023 04:08:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0719E3858D35 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from aps7mgn-06 by dwmta1017.nifty.com with ESMTP id <20230610040804476.CVJF.29352.aps7mgn-06@nifty.com>; Sat, 10 Jun 2023 13:08:04 +0900 Date: Sat, 10 Jun 2023 13:08:04 +0900 (JST) From: Takashi Yano To: cygwin@cygwin.com Cc: "M=?ISO-2022-JP?B?Pw==?=min A." Message-ID: <1503743851.9556.1686370084334@aps7mgn-06>takashi.yano@nifty.ne.jp> In-Reply-To: References: <96718c68-af84-45a5-9332-337ec4b2f04a@email.android.com> <64831a27.170a0220.1f805.81bfSMTPIN_ADDED_BROKEN@mx.google.com> Subject: Re: Memory Barriers at pthread using CYGWIN MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Priority: normal X-Mailer: @nifty Webmail X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,INVALID_MSGID,KAM_DMARC_STATUS,MISSING_MIMEOLE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: "M?min A." wrote: > //windows cmd line > C:\cygwin64\home\maydin\test>cygcheck ./main.exe > C:\cygwin64\home\maydin\test\main.exe > C:\cygwin64\bin\cygwin1.dll > C:\WINDOWS\system32\KERNEL32.dll > C:\WINDOWS\system32\ntdll.dll > C:\WINDOWS\system32\KERNELBASE.dll > > C:\cygwin64\home\maydin\test>ldd ./main.exe > ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffa92350000) > KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL > (0x7ffa90570000) > KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll > (0x7ffa8ffb0000) > cygwin1.dll => /usr/bin/cygwin1.dll (0x7ffa27960000) Looks OK. > //When cygwin terminal closed and cmd line command. Join throw fails. > C:\cygwin64\home\maydin\test>main.exe > Failed to join the thread t1. > Failed to join the thread t2. > r1 = 1, r2 = 1 > > //when cygwin terminal opened. The test is passed. > C:\cygwin64\home\maydin\test>main.exe > r1 = 1, r2 = 1 > > > I think Cygwin terminal should be always open in order to execute a file in > windows. Am I right ? It should not be. Weird enough. Could you please provide a strace log file such as: strace -o faild.log ./main.exe ? -- Takashi Yano