GNU bug report logs - #12794
Bug in dd: it sends wrong messages to stderr

Previous Next

Package: coreutils;

Reported by: Ganton <kubry <at> terra.com>

Date: Sat, 3 Nov 2012 17:46:01 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#12794: closed (Bug in dd: it sends wrong messages to stderr)
Date: Sat, 03 Nov 2012 19:12:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 03 Nov 2012 12:08:45 -0700
with message-id <50956BBD.5080802 <at> cs.ucla.edu>
and subject line Re: bug#12794: Bug in dd: it sends wrong messages to stderr
has caused the debbugs.gnu.org bug report #12794,
regarding Bug in dd: it sends wrong messages to stderr
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
12794: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12794
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ganton <kubry <at> terra.com>
To: bug-coreutils <at> gnu.org
Subject: Bug in dd: it sends wrong messages to stderr
Date: Sat, 3 Nov 2012 16:28:49 +0100
Dear sirs:

I send you a bug report.

# DESCRIPTION

Bug in dd: it sends wrong messages to stderr.

For example, when I do backups, I see "errors" from dd... that really aren't. 

# WAY TO REPRODUCE THE BUG

A user can execute:
   partition=$(mount | awk '$2=="on" && $3=="/" {print $1}')
   sudo dd if="$partition" of=/tmp/copseg.dd count=1 bs=512 >/dev/null
and then he sees something like this in his screen:
  1+0 records in
  1+0 records out
  512 bytes (512 B) copied, 0,000129625 s, 3,9 MB/s

# EXPECTED RESULTS:

The user should see nothing, as there was no error and stdout was redirected 
to /dev/null.



[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Ganton <kubry <at> terra.com>
Cc: 12794-done <at> debbugs.gnu.org
Subject: Re: bug#12794: Bug in dd: it sends wrong messages to stderr
Date: Sat, 03 Nov 2012 12:08:45 -0700
On 11/03/2012 08:28 AM, Ganton wrote:

> when I do backups, I see "errors" from dd... that really aren't. 

You have a point, but I'm afraid that dd is documented to behave
that way, and it's part of the POSIX standard, and lots of people
depend on it.  To turn off the chatter, use "dd status=noxfer".


This bug report was last modified 12 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.