X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=JfpeLeTlZyWwq2gm10a3NT1OWlzgDD1lBnnIxTSTKpz PtXpran6zucjMrQMRKPw7ZQ9xMbPKZDubp1IF72M999Zql9z9QpmPKhVPvuqvkNS kABWnISWbvRIBEBEmrmy+WZLCjr1LJmYeJZlLbgZ8KvMHiR24PXTjHLq2igV+GF4 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; s=default; bh=t84RzGHAKzGgBPxBM+Zl6ibovEo=; b=Qa0Zg7SDmQBrkDlbw fEhkqkoridWEef83fvXaCHFeYRSj7HvCvjunHmdLiG/trbxwiBIkKtlIEXn27fEY eQiRhx3d2f+aMXuMIPGVPRFWoOLGBqOdRXWvpeeclFPFtPjVSirHGsrJxhhaehWk BdbwVtRUGz1zlVcTeU20ekwvKg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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 20:51:07 +0900 From: Takashi Yano To: cygwin AT cygwin DOT 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 AT collabora DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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