From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81981 invoked by alias); 10 Jan 2020 11:51:15 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 81974 invoked by uid 89); 10 Jan 2020 11:51:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.2 required=5.0 tests=AWL,BAYES_50,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 spammy=UD:test.bin, @makecaboutput, perl, 10.0.18363 X-HELO: conssluserg-03.nifty.com Received: from conssluserg-03.nifty.com (HELO conssluserg-03.nifty.com) (210.131.2.82) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Jan 2020 11:51:13 +0000 Received: from Express5800-S70 (ntsitm247158.sitm.nt.ngn.ppp.infoweb.ne.jp [124.27.253.158]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 00ABowBk030238 for ; Fri, 10 Jan 2020 20:50:58 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 00ABowBk030238 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1578657058; bh=jn/hnfvHBlywpOkkG6tA0rwJOrLb+XT1BoXlkVVovzg=; h=Date:From:To:Subject:In-Reply-To:References:From; b=ECex6/iqAVyHt45ILPCXQoR+EycMLB9paRnBsBYGX3BRQ2eDzqSTuLWDPGmskyjtd mMb+kS3U7TWcdzJHcu9k82weTrYjq9z5zYqEG/nRDoSsgva3s1UOQY18hkiLJGOQxt 8LcwKIDfibKM4YWBGKvTti+HhcqcfAK980px29F1dI/uEqT61y6Kjjf1KUqDHB/hqW 7PnWv4UY71+Fy8d6Nf4qsvcKQ0p3oDilDZWf3yn0gn4TBrhrbocBKN9251PHRmyvvb 2iXX7nmVuyg1eHqJrngXfyurZoNIudd7WG6lyJv7KD7/B9zETAfY6YjxChVpsZuYiR lCwziPYzW6sCA== Date: Fri, 10 Jan 2020 11:51:00 -0000 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: makecab.exe hangs on cygwin 3.1 Message-Id: <20200110205107.fa2cab25a9bf9607cd92752e@nifty.ne.jp> In-Reply-To: <97c2e912-8f7d-8ca8-8f7c-bbfaeec26b39@collabora.com> References: <97c2e912-8f7d-8ca8-8f7c-bbfaeec26b39@collabora.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00098.txt.bz2 On Thu, 9 Jan 2020 20:21:46 +0300 Mike Kaganski wrote: > Using cygwin 3.1.2-1, I get a hang running a makecab.exe job started > from a perl script. > > The version of perl is 5.26.3-2; Windows 10.0.18363 x64. > > I was able to create a minimal reproducer in perl: > > ############ > > select STDERR; # non-buffering output - just to see printed messages > print "Preparing 80 MiB of random data... "; > open my $randfile, '<:raw', "/dev/random" or die; > open my $testbin, '>:raw', "test.bin" or die; > for ( my $i = 0; $i < 20480; $i++ ) > { >     my $buf = ''; >     read $randfile, $buf, 4*1024; >     print $testbin $buf; > } > close $randfile; > close $testbin; > print "done!\n"; > > my $syscall = "C:/Windows/System32/makecab.exe /V3 test.bin 2\>\&1 |"; > my @makecaboutput = (); > print "Now the actual test: this hangs with cygwin 3.1 ... "; > open (CAB, $syscall); > while () { push(@makecaboutput, $_); } > close (CAB); > print "makecab finished!\n"; # <<< this never prints > > for ( my $i = 0; $i <= $#makecaboutput; $i++ ) > { >     print $makecaboutput[$i]; > } > > ############ > > I put this code to c:/makecab/test.pm, and run from mintty as > > $ perl c:/makecab/test.pm > > The text "makecab finished!" never appears with cygwin 3.1; it appears > as expected (several seconds, most of which is creation of random test > data) with cygwin 3.0.7-1. Thanks for the report. I looked into this problem and found this occurs after commit: commit e1a0775dc0545b5f9c81b09a327fc110c538b7b4 Author: Takashi Yano Date: Thu Sep 26 19:52:46 2019 +0900 Cygwin: pty: Fix PTY so that cygwin setup shows help with -h option. - After commit 169d65a5774acc76ce3f3feeedcbae7405aa9b57, cygwin setup fails to show help message when -h option is specified, as reported in https://cygwin.com/ml/cygwin/2019-09/msg00248.html. This patch fixes the problem. I have submitted a patch for this issue just now. -- Takashi Yano -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple