X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 09063385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1686370126; bh=5hVB/6N+dz9p4YOmv0yHxrW7rPduQa03k898lcDoKJM=; h=Date:To:Cc:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=efk4wHwkarAVvRa9jvEeDL6DM0qM2/9Py4/tC3baZ35n2EVlfAWwgZs6tF3gk1Hu0 XMeb6oZeDhUh3nscrUy1K/Qgar8vSicTfShXpcYorhiZGp+9X3U5t4WMATQWui9IAM jVMKHJCuuNZLIuN6c/dpl+oBjN5g0MezdHb+Yo9Q= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0719E3858D35 Date: Sat, 10 Jun 2023 13:08:04 +0900 (JST) To: cygwin AT cygwin DOT 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 AT email DOT android DOT com> <64831a27 DOT 170a0220 DOT 1f805 DOT 81bfSMTPIN_ADDED_BROKEN AT mx DOT google DOT com> Subject: Re: Memory Barriers at pthread using CYGWIN MIME-Version: 1.0 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 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" "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 -- 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