From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dmta1004.nifty.com (mta-snd01002.nifty.com [106.153.227.34]) by sourceware.org (Postfix) with ESMTPS id 4B9453858D28 for ; Fri, 19 Jan 2024 13:44:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4B9453858D28 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 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4B9453858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=106.153.227.34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705671883; cv=none; b=VGTIJk4oSKAzG7NPVJJLoJUHuKJShH5aoyOpz/YlMvs93U4hzu6IPHOwWbdNyQHLW+i43f5iy2SCHvUxUZhqlb2CzaMV1gtSAJ3rJuLjCkKVsNEE062imEWgZaJ+cUiIXxqsXuScJUG7o8nsJoUQmFzw7GcynOh5iClmuCQnJZ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705671883; c=relaxed/simple; bh=uveLwh4fU1UU4qmH7y2VwZfEQS7cSA/bpBbNUTpFPls=; h=Date:From:To:Subject:Message-Id:Mime-Version; b=ujJ0tf9/l4AR0wl4bdW3/3QxCUuPJAEQUDuuGv5nsrDTdCV9RRqrU534FXM9+troMdv2/yqVP13nEIVl+9dcF1syPI1834Uci7TsrTMYTnogjxzyp1mTLeO6cygRB+8Xusi1NeQcOj7t8aUMrgsUIhR/nMr93Ux/cVQV6lgV7xg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from HP-Z230 by dmta1004.nifty.com with ESMTP id <20240119134437875.USLX.94204.HP-Z230@nifty.com> for ; Fri, 19 Jan 2024 22:44:37 +0900 Date: Fri, 19 Jan 2024 22:44:36 +0900 From: Takashi Yano To: cygwin@cygwin.com Subject: Possiblly bug of cygwin1.dll Message-Id: <20240119224436.876a055f356f7c6796bc725b@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,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 List-Id: Hi, I might find the bug of cygwin1.dll (including 3.4.x, 3.5.0 (TEST)). The following test case (c++ code) causes handle leak. This issue is reproducible with both g++ and clang++. However, it does not happen in Linux environment. So I guess this is the cygwin1.dlll bug. I looked into this problem a bit, and found number of event handle increases every loop. I doubt pthread_mutex_xxx functions. #include int func() { return 0; } int main() { for (;;) { std::future f = std::async(std::launch::async, func); f.get(); } return 0; } -- Takashi Yano