From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-06.nifty.com (conssluserg-06.nifty.com [210.131.2.91]) by sourceware.org (Postfix) with ESMTPS id 521713858C27 for ; Mon, 25 Oct 2021 08:57:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 521713858C27 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 Express5800-S70 (z221123.dynamic.ppp.asahi-net.or.jp [110.4.221.123]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 19P8ukTG031100 for ; Mon, 25 Oct 2021 17:56:46 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 19P8ukTG031100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1635152206; bh=WporWljArn1v+kwZuY7iO7PNbLVZRVxYUP1R4icHBZ4=; h=Date:From:To:Subject:In-Reply-To:References:From; b=iWKz556M/Nj8jEUa9BZFCAs/c7i7UnKs828oBntw7k/RjIHGdqjIfl8osLyGvTLIr QrmdW51FBXFCae0OkqtN7jUwm0ZbyW7/mBx1HaSpph2BDWhhBTGtbQ+fEriOF7nsI1 RBSxrE2e8AGZs6Y5gTl8kutFyadYhhhdpm8EKoUAjKiEcBE4JC99L/NsQa+ZwNvUvf Oq50V1XtCkVfnoVhfKlPbwKatys51ZmxVlN/36bVT0veTC499fZHWgmFHmlxyYO25W fK0Q4Y95zoFhmAgsm8PQ6N7X7ZCJZ28J1/yvFBsGTsIefyNT6yjdBhL5OM/kAs+1wK Mzd+WjMAWTpbQ== X-Nifty-SrcIP: [110.4.221.123] Date: Mon, 25 Oct 2021 17:56:46 +0900 From: Takashi Yano To: cygwin-developers@cygwin.com Subject: Re: malloc crash Message-Id: <20211025175646.c558458b7ef6eb4b88dc1dc7@nifty.ne.jp> In-Reply-To: <6a4d6675-7e4d-bcb3-9aff-acc0788d211d@cornell.edu> References: <6a4d6675-7e4d-bcb3-9aff-acc0788d211d@cornell.edu> 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=-5.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin-developers@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component developers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2021 08:57:11 -0000 On Sun, 24 Oct 2021 17:46:40 -0400 Ken Brown wrote: > I'm trying to debug the fifo problem reported here: > > https://cygwin.com/pipermail/cygwin/2021-October/249635.html > > To keep my email self-contained, here are the reproduction instructions. Run > the attached script with argument 1000. The output is supposed to look like this: > > $ ./fifo_test.sh 1000 > Creating 1000 fifo readers... > Created PID=6503 reading from /tmp/catfifo_0 > FIFO 0 > Created PID=6506 reading from /tmp/catfifo_1 > FIFO 1 > [...] > Created PID=9506 reading from /tmp/catfifo_998 > FIFO 998 > Created PID=9509 reading from /tmp/catfifo_999 > FIFO 999 > > But invariably one of the exec'd cat processes will appear to hang. (Actually > it goes into an infinite loop.) If you attach gdb to that process and catch it > at the right time, you see something like this: I noticed that this does not occur with 32-bit cygwin. This occurs only with 64-bit cygwin in my environment. Does malloc behave differently between 32 and 64 bit cygwin? -- Takashi Yano