Subject: bug#9620: dd: bogus behavior when interrupted

From: John Reiser <[email-masked]>
Date: Tue, 27 Sep 2011 13:49:10 -0700

On 09/27/2011 12:33 PM, Paul Eggert wrote:
> This happened with coreutils 8.13 on Fedora 14 x86-64
> (coreutils compiled with GCC 4.6.1).  I interrupted
> 'dd' with control-C, but it didn't respond right away;
> instead, it churned away and created the entire output file,
> issuing a bogus diagnostic about the input file.  Here's
> the transcript:
> 
> $ dd if=/dev/zero of=$HOME/junk/zero bs=1024 count=1000000
> ^C1000000+0 records in
> 1000000+0 records out
> 1024000000 bytes (1.0 GB) copied, 20.1583 s, 50.8 MB/s
> dd: closing input file `/dev/zero': Bad file descriptor
> $ ls -l zero
> -rw-r--r-- 1 eggert eggert 1024000000 Sep 27 12:18 zero
> 
[snip]
>                              Quite possibly it is not
> a coreutils bug at all, but a kernel bug, but in that case
> where do I report it? to a Fedora mailing list?

https://bugzilla.redhat.com
Create an account (requires e-mail address and password)
or login using old account; select: New, Fedora, Fedora;
choose Component: kernel; enter details.  Use <tab> to
switch fields (including Summary:); beware that <Enter>
activates and Submits a mostly-empty bug report.

--