GNU bug report logs - #36007
double close() of of=file if receiving SIGINT during fdatasync()

Previous Next

Package: coreutils;

Reported by: Hans Henrik Bergan <divinity76 <at> gmail.com>

Date: Thu, 30 May 2019 16:03:02 UTC

Severity: normal

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: Hans Henrik Bergan <divinity76 <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 36007-done <at> debbugs.gnu.org
Subject: bug#36007: double close() of of=file if receiving SIGINT during fdatasync()
Date: Thu, 30 May 2019 23:50:30 +0200
[Message part 1 (text/plain, inline)]
the issue does not reproduce on a current git master build of dd (
commit 00d72e6122d37bbc32ef0e057c1e847fd8129133 )
, good job :)

(dd is an old build, ./dd is a git master build)
root <at> 1:/temp/coreutils/src# dd if=/dev/zero of=/dev/sda4 bs=10M count=100
iflag=fullblock conv=fdatasync
^C100+0 records in
100+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 17.3542 s, 60.4 MB/s
dd: closing input file '/dev/zero': Bad file descriptor
root <at> 1:/temp/coreutils/src#
root <at> 1:/temp/coreutils/src#
root <at> 1:/temp/coreutils/src# ./dd if=/dev/zero of=/dev/sda4 bs=10M count=100
iflag=fullblock conv=fdatasync
^C100+0 records in
100+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 19.0614 s, 55.0 MB/s
root <at> 1:/temp/coreutils/src#



On Thu, 30 May 2019 at 22:56, Paul Eggert <eggert <at> cs.ucla.edu> wrote:

> Thanks for reporting the bug. I installed the attached patch into the
> development version on Savannah, to fix the bug you reported along with
> a closely related bug that I found when looking into your problem.
> Please give this patch a try at your convenience.
>
[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 360 days ago.

Previous Next


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