delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/03/11/18:33:55

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:subject:to:message-id:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=R9+
s5Fug6t3GTOTiS4VZ6vceASHo3Q05A+k+K7b/6kKScbDj00dvLGAmPancA6+n2YH
gfJHClDWqpC6LPvIO/nEPEOewT9uw/ChnOmkWqVHsOl6B32u/d9NsTTEtbXGkyrW
y7FextIiche5mtdINoo+Rpp3gloIIaVuHXhWTHOo=
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:subject:to:message-id:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=dAOU5RBMj
U7RF4h1FH6k+RX+GaY=; b=bZhcQUDxmJLe4iV5HUKr8ri7mNLSm6gKS/V3EJdkz
YyMQ50Yl3s9zidkIo031gL5ruGQXHn43B7mNfWsP2S6dyIytQ9qkhCml+xLRUY78
bA26su2AnAca1hGSYuz2BXteIURNmKEjYBzZa6bXon1D/v0VR4hYe7F0aLur+7wX
GU=
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=-0.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS,UNSUBSCRIBE_BODY autolearn=no version=3.3.2 spammy=32gb, 32GB, packaged, 24GB
X-HELO: mout.gmx.net
From: Josef Frank <josef DOT frank AT gmx DOT ch>
Subject: dd -- bs>=2G, error writing to /dev/null - possible bug? (win7; coreutils 8.26)
X-Mozilla-News-Host: news://news://news.gmane.org:119
To: cygwin AT cygwin DOT com
Message-ID: <aa90da78-60b7-489a-e953-0a48639785cf@gmx.ch>
Date: Sun, 12 Mar 2017 00:33:29 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
X-UI-Out-Filterresults: notjunk:1;V01:K0:yNmIV+X8FKE=:/w/CCIj0SeISgy1P8yQn9Z TCCtkGOVfDyUBnMRCaEZuW1UuC3t5uuUzy2FSSfSX7DDusTUONBhmizcWlyN/KO9BszGYc1qP mmJ1GxwgVuUjd+LzbmMrLYPBoGIMGZidbPBP6C6/+PkNoiwcUMkdgVWDWsgtGgsCdjzQikP/s nG9M42Q0ZhRgCFm3D6/QVR6vLUJgGMK+ZHt/YEuTFwxqeqr1cKEgx9GUfUldm8UrvwAv0MUnz beXYBd0adZTbYpZpnPH4Cq+UWfntieB8u1vrEuPMM5R17PHTBEnDfSaqJjGKyyzzTB8pJGc8l h1XkrG1cw0VpQL/F6IcgfZtdZItUaSM+JIpP2LfiTaHq/kTB+AF5SHAwtcwvgM5byGeSOUOUD P6+/pIe2fzcYhSVZ8feQL7zjxhwbEIJbPMoxJoVIkpRBAaZSHsW9SjUFIaflPW6Wfe9UuoPlL 5vD8wMa91xQyUPJhf9mL47Z0o/if+GUQ3WzSjQ/kmxU1xRqBuzjJQv+imk99XM8Dqy6HZuYHF 4CVd0kCxO7OfoUgK71+vLLM1at6bN4cU6UMp5ekZpKHVIhDNEnS7dsv8ztnmiBetSjQlT7ZUL wVrayiqjw6QEzVi9XlQkCXuqtXTqzPW1WULu+YU/CCXll9toEtTR/LdPnFdWEihA4f5qEyyom PqBkZiGLPrdmFnsveKwXOApk0BNUy0xu5naiIAG3WXq7JxgMcLs/FBVSXGD5D82KBxJJZ7y1L ZpNQ/54nWP+VexgxQiiYL0QT8Mai2xLBx0KR+5d3B0WLSVdadaVTN0Wdj3SMDspe0xxMGtzKG EgILZEy
X-IsSubscribed: yes

Dear all,


dd utility has problems to write to /dev/null with bs>=2^31,
while bs<2^31 is ok.

Increasing bs further to 2^33 leads to extended error message

For description see below


jf




Steps to reproduce:


$ dd if=/dev/zero of=/dev/null bs=2147483647 count=1
1+0 records in
1+0 records out
2147483647 bytes (2.1 GB, 2.0 GiB) copied, 0.522774 s, 4.1 GB/s


$ dd if=/dev/zero of=/dev/null bs=2147483648 count=1
dd: error writing '/dev/null'
1+0 records in
0+0 records out
0 bytes copied, 0.517421 s, 0.0 kB/s


$ dd if=/dev/zero of=/dev/null bs=8589934591 count=1
dd: error writing '/dev/null'
1+0 records in
0+0 records out
0 bytes copied, 2.13474 s, 0.0 kB/s


$ dd if=/dev/zero of=/dev/null bs=8589934592 count=1
dd: error writing '/dev/null': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 2.08004 s, 0.0 kB/s



In contrast the following lines (also coreutils 8.26) run fine (without
reporting any error):

head -c 2147483648 /dev/zero > /dev/null

head -c 8589934592 /dev/zero > /dev/null




Configuration:

Applies to several different machines with different amounts of main 
memory (up to 32GB, >24GB available), and sufficient free space on 
/var/tmp (100-180GB), all using Windows 7


$ uname -a
CYGWIN_NT-6.1 rab 2.7.0(0.306/5/3) 2017-02-12 13:18 x86_64 Cygwin


$ dd --version
dd (coreutils) 8.26
Packaged by Cygwin (8.26-2)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, and Stuart Kemp.


$ cygcheck dd
Found: C:\cygwin64\bin\dd.exe
Found: C:\cygwin64\bin\dd.exe
C:\cygwin64\bin\dd.exe
   C:\cygwin64\bin\cygwin1.dll
     C:\windows\system32\KERNEL32.dll
       C:\windows\system32\API-MS-Win-Core-RtlSupport-L1-1-0.dll
       C:\windows\system32\ntdll.dll
       C:\windows\system32\KERNELBASE.dll
       C:\windows\system32\API-MS-Win-Core-ProcessThreads-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-Heap-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-Memory-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-Handle-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-Synch-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-File-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-IO-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-ThreadPool-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-LibraryLoader-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-NamedPipe-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-Misc-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-SysInfo-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-Localization-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-String-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-Debug-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-ErrorHandling-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-Fibers-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-Util-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Core-Profile-L1-1-0.dll
       C:\windows\system32\API-MS-Win-Security-Base-L1-1-0.dll
   C:\cygwin64\bin\cygintl-8.dll
     C:\cygwin64\bin\cygiconv-2.dll

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