delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/01/09/14:50:08

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:from:to:subject:date:message-id:references
:in-reply-to:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=BUtCTn6s0IFSbuTg
ZKRPYTK9rl9mOBYPgintjvtEHkErPkm12pwitHlGy/u8THgwBRHOEOvQgaVhlYbx
+SC7wjNUtf5IXYXmYDMUb3sBc0FDfLxEM1UTyBU5KfT6HC9KgF6qpJYnovn2Aica
G/yTQ989x11SiY/hFcOzzyp6mOg=
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:from:to:subject:date:message-id:references
:in-reply-to:mime-version:content-type
:content-transfer-encoding; s=default; bh=sJ3Gt9CK4EQHQXc7Q1d+Rr
MjhOA=; b=gD8PhJM+TLGTQf47DYVDTsyFHGl9WyWjdPpu+zF6kcHSewRtYQoM1n
vMJLHqFH/tty4O4UZ7zN+zu6J+lYZhBPjN+3sWnLwrm5KNqLbzJBnArp5GqARjnP
B2LKB3Y2TJeYajkbK4NtJzsNMDZoVBqtYLg+5a/mJwAZnTRwGRXbc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=0.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1 spammy=jos, hangs, 3.0.7-1, 3071
X-HELO: EUR02-HE1-obe.outbound.protection.outlook.com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J4l4JfjzF/0MYDGPmuy7BmVlC2gYBlcwO7AzIxl5PfguqmStDG44vS/nqLj63RTZ3ovL+ZGKln2vTAkp1NnodgGfv5zTvb7HiN8yzlEEKORG2IoLrmxxH4kXBs38n7s7fEQQ8u7vGgzZKI9osys4zAOT+m3EVcbGg68dnH3OLIgjiQTMjdG86PHfe+f386/seCbjN0dKheusU6+AFhQmvqwpxnCBvzTHXmVVhq2Vcap3l0s1ZAuIihRTprSCr0pyllx4iHug0lK63pDp87FKkV4labmzqCeJpY2GzB2l2dY6Av1xPs8Ipa+lqbGd2c4esXBWPy8cRToj2B9gIgKDgw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F3MqNErxzc0uyNX7bPj64oOTxPIGuDJMWMXxdLh1lhU=; b=cKcExUNRrSmjVtoud7IRzfqsbo5+ohnKsP7EP1lP3cfiUyUgqPYWeJQ5kqzkRxPC9Puk8YHkIkzG6eU+LydXiu2EvSa/QYeQgkVR+Ojo20pmGAcxPubtG5eF6g2U9785EEnLKyC2gx/7vOIkoQbECzSVBU7PrAakt5PlnYNyn/1AZlDmYea6dWS+iyGQFmr6tL7snSR6xnoalZhWB7/zEnUukU+IBiiJrkfeedg05pZmAMjerEnkO3YCbiowSkF12ClNyRy7S51/08PMMZBkl7XJCIK0G5xD0NUAlfNRJLpIuBcqS/iuMm9RBBgtZ0zXPzGTJlF7OYS8K9adQ+VOPw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F3MqNErxzc0uyNX7bPj64oOTxPIGuDJMWMXxdLh1lhU=; b=Cr53dQdlccliKT0kUNpkTZcV3OTLkpD7avvlTtbeFYSzpgzPkKTxg3SVd/gKevv2lB0suJDQn4A4p+qXY6ttXwcqHB5hxjh0q1NOkVCqRxKmI8rffav6GYCE2bt0feXHlkyi1rkLlohJd1Ycr5WSTY4iQLkybmDerTU02C8w2V4OjTtSq7mcJUdgnDAktLo+p6PZMn7ZEhEcknx3FfKYTAHZYd5+RFcJIcpMdrImEOUNwyvgcQpq7sG/7mB7iTkE4R4Q6mWIfIR4kMhScvKE+R83oyOAOnteKjg4pxtsR062L78nm+xLMk8mFNboKwPyh35L7BkgMpmyHvAVtVvFUg==
From: Jose Isaias Cabrera <jicman AT outlook DOT com>
To: Mike Kaganski <mike DOT kaganski AT collabora DOT com>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: makecab.exe hangs on cygwin 3.1
Date: Thu, 9 Jan 2020 19:48:21 +0000
Message-ID: <VI1P195MB0765F22F1F020A277E0209D4DE390@VI1P195MB0765.EURP195.PROD.OUTLOOK.COM>
References: <97c2e912-8f7d-8ca8-8f7c-bbfaeec26b39 AT collabora DOT com>
In-Reply-To: <97c2e912-8f7d-8ca8-8f7c-bbfaeec26b39@collabora.com>
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 009Jnhep023845

Mike Kaganski, on Thursday, January 9, 2020 12:21 PM, wrote...
>
> Hello,
>
> 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 (<CAB>) { 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.
>
> Note that the test creates two files in current directory: test.bin, and
> (if succeeds) test.bi_

Works fine with cytwin 3.0.7...
$ uname -a
CYGWIN_NT-10.0-WOW HOR711318E 3.0.7(0.338/5/3) 2019-04-30 18:04 i686 Cygwin

$ perl test.pm
Preparing 80 MiB of random data... done!
Now the actual test: this hangs with cygwin 3.1 ... makecab finished!
Cabinet Maker - Lossless Data Compression Tool

  0.00% - raw=0  compressed=0
  0.04% - raw=32,768  compressed=32,775
[clip]
 99.88% - raw=83,787,776  compressed=83,805,675
 99.92% - raw=83,820,544  compressed=83,838,450
 99.96% - raw=83,853,312  compressed=83,871,225
100.00% - raw=83,886,080  compressed=83,904,000
** test.bin placed in cabinet test.bi_(47251456) on disk
100.00% [flushing current folder]
eureka AT HORSE ~

thanks.

josé


--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019