delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/03/12/13:01:20

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:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=hDZ1JvEyexjjVHobUixQsxTtEAwTuNHuvJY43XORYb/7WcARXPNF0
4BPb1dfXZSzWb2uMzTqV4PcpHVvwX+W6dbHK6ZuXCr5E416NYOXRNwOT/vTkZEQN
S7y90iuMPMRl623y//fPBoM+uhJT0l1bi1mvIOciq3QBbOJrxZLukA=
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:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=eFIHH0hQgSqosndD/9y7/xuyOh0=; b=lTcawL96K03lds7I7n6nXRyDNTJH
8GPXrVr8rIz7G1TcGeIQQ1WRF8l3qQ8nl3xBrJUTECnPKoSP9BsYaiCXpugoR0fN
4n9vsE0bQWYn/p149mDg8jheE5lGbCMimDNxAOCsz3Ph+8MuWuJpAAmRKwMzZIuV
06icNgSPnVXS6Vg=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-99.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,UNSUBSCRIBE_BODY autolearn=ham version=3.3.2 spammy=H*f:sk:11cc435, H*MI:sk:11cc435, H*i:sk:11cc435, atzeri
X-HELO: drew.franken.de
Date: Sun, 12 Mar 2017 18:00:53 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: dd -- bs>=2G, error writing to /dev/null - possible bug? (win7; coreutils 8.26)
Message-ID: <20170312170053.GF3340@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <aa90da78-60b7-489a-e953-0a48639785cf AT gmx DOT ch> <20170312113912 DOT GE3340 AT calimero DOT vinschen DOT de> <11cc4359-a1f0-de30-24b5-6803fca100a9 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <11cc4359-a1f0-de30-24b5-6803fca100a9@gmail.com>
User-Agent: Mutt/1.7.1 (2016-10-04)

--WfZ7S8PLGjBY9Voh
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mar 12 15:49, Marco Atzeri wrote:
> On 12/03/2017 12:39, Corinna Vinschen wrote:
> > On Mar 12 00:33, Josef Frank wrote:
> > >=20
> > > Dear all,
> > >=20
> > >=20
> > > dd utility has problems to write to /dev/null with bs>=3D2^31,
> > > while bs<2^31 is ok.
> > >=20
> > > Increasing bs further to 2^33 leads to extended error message
> > >=20
> > > For description see below
> >=20
> > Thanks for the testcase.  It's a combination of two bugs:
> >=20
> > - At a crucial point in write(2), Cygwin used an int variable where
> >   it should have used a ssize_t variable.  This fouled up the return
> >   value for lengths >=3D 2^31.
> >=20
> > - When writing to the Windows NUL device, NtWriteFile only returns the
> >   lower 32 bits od the number of bytes written.  This fouls up the
> >   return value of write(2) for lengths >=3D 2^32.
> >=20
> > I fixed the first problem and created a workaround for the second.
> >=20
> > I uploaded new developer snapshots to XXXXXXXXXXXXXXXXXXXXXXXXXXXX
> > Please give 'em a try.
>=20
> May be
> https://cygwin.com/snapshots/

Oops, right :)


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--WfZ7S8PLGjBY9Voh
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJYxX7FAAoJEPU2Bp2uRE+gPVEP/1lnf6hW5Cg9XrLUJKy9yWU5
qqmYsLK5dbLGVMO3s5MOmiJbsSplnNJTrEg3i/xok3F5Fpi9jCu8VEAOLg1PyebH
/BkJTRdCJJr8bfImKj72/nbEJ9I+jYU55pjXRMRW+OhOFEpkYZg6U9IatN/hMVGr
JQ6twm8vjuYh+G3Hf6/SjmtJSWNa8vanpw670uZG1cYl7XPzICthAq0/R3YRTEhk
LwofwknaLjhKBNnljp2RNQwk/dJehKWIE7MAQFvvNwPqUKUJPJ28UhHAR708rnsH
cIJtEGONZ2LgMJaWN8aLyjKzjLOEg5W7y5Mr9OGqm03zwbLJJodXTyAi4oi9u1Sz
mXP2odl74b1QMqDr8Rgyf8h9iwkmuTDDjiG1o3LkW8hdmXQoUa0ed8vlEBNs1NZ0
0PWcuL3SyularhQZlRTVnn0xdydncnLtbOWmXLwd8RQSf60zUGPQLj4Jpxj0xNoh
V9eFD99euN/EmLLVHEC6qd8IBAkxyzQ7ukpNm9cOOlv+O0oGOZEb/MYG47RiLpFY
8WBe+50jr498TQIrcHXkS8kMW9glDFx+Y8FojTOfSM94uFwwB2tsytzaeC84RsR1
6rG0DYyOtZdN8MoQzN6VR4Mc/ISberT+rowDEzKfLecXi0MLNLb9I7cJTHYYjojS
Do77+ifvNUYMe9iO6BHh
=vYcm
-----END PGP SIGNATURE-----

--WfZ7S8PLGjBY9Voh--

- Raw text -


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