GNU bug report logs - #48002
Gnu design flaw fixes hindered by Gnu (sexism?) biases

Previous Next

Package: coreutils;

Reported by: L A Walsh <coreutils <at> tlinx.org>

Date: Sat, 24 Apr 2021 20:05:01 UTC

Severity: normal

To reply to this bug, email your comments to 48002 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#48002; Package coreutils. (Sat, 24 Apr 2021 20:05:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to L A Walsh <coreutils <at> tlinx.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sat, 24 Apr 2021 20:05:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: L A Walsh <coreutils <at> tlinx.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Coreutils <bug-coreutils <at> gnu.org>, Peter van Dijk <peter <at> 7bits.nl>
Subject: Gnu design flaw fixes hindered by Gnu (sexism?) biases
Date: Sat, 24 Apr 2021 13:03:50 -0700
On 2021/04/21 19:11, Paul Eggert wrote:
> On 4/18/21 10:46 AM, Peter van Dijk wrote:
>> While the manual (but not the manpage) mentions the data loss, I 
>> think it would be great if sort did not have this problem at all, and 
>> I think the OpenGroup text also says it should not have this problem.
>>  I looked around, and a lot of software does get this right (by opening a randomly-named temp file to write to, and only moving it into place when it is written successfuly) - GNU sed -i, OpenBSD sort, and surely there are more. As a bonus, doing this would also make the `-o someinputfile -m` case safe.
>>
>
> I don't know of any 'sort' implementation that does not have the 
> problem at all. ...
Nevertheless, it is the same problem as reported _1.5_months_
ago where no one had time to look at the same design flaw
in gnu-coreutils implementation of 'cp' (bug#47059).

That bug, still untriaged, had the same suggested solution:

  "When creating a link to a local file, I
   first create the link to a temporary name to ensure
   I have appropriate access (or that its not
   cross-linked in this case)."

At that time the bug was only reported against 'cp', but it
seems that not testing for final location writeability is
a gnu-bug stemming from mono-culture development where
outside ideas and bug reports tend to be ignored.

The previous, similar bug in 'cp' I reported was ignored for
1.5-2 YEARS, before a large enough corporation lost enough
data for GNU to pay attention.  Though in this case, did
the report against 'sort' get noticed because the reporter
wasn't female?  Perhaps others within GNU have inculcated
the biases of RMS and my feelings of tolerance were naive
(wouldn't be the first time).


That bug was left untriaged
that was left untriaged with bug#47059.  And it is the same
solution -- opening a randomly-named temp file to write to
and only performing final actions when writeability of
the destination is confirmed.
>
> Also, I don't see where the Open Group spec says what you're saying. 
> On the contrary, the spec merely says that '-o output' should cause 
> output to be sent to the output file. If there are multiple hard links 
> to the output file, this suggests 'sort' should update the output 
> file's contents without breaking any hard links. Admittedly the Open 
> Group spec is a bit vague in this area, but I certainly don't see 
> anything implying that GNU 'sort' does not conform to POSIX in this area.
>
> FreeBSD 'sort' has a problem, in that 'sort -o A B' preserves all hard 
> links to A's file, but 'sort -o A A' does not because it breaks the 
> link from A. That's confusing.
>
> Traditional Unix 'sort -o A' behaves the way GNU 'sort' does; it 
> preserves all hard links to A's file. So there is a compatibility 
> argument for doing things the way GNU 'sort' does them, even if that 
> might lead to more data loss in rare cases.
>
>
>




Merged 47059 47883 48002. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Sat, 24 Apr 2021 21:46:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-coreutils <at> gnu.org:
bug#48002; Package coreutils. (Mon, 21 Feb 2022 09:06:01 GMT) Full text and rfc822 format available.

Message #10 received at 48002 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 48002 <at> debbugs.gnu.org
Subject: unmerging separate bug reports about cp etc.
Date: Mon, 21 Feb 2022 01:05:10 -0800
A while back I merged GNU Coreutils bug reports 47059, 47883, and 48002. 
I now see that that was a mistake as they're about three different 
issues. So, I'm unmerging the bug reports and will look at each separately.

The main topic of bug#48002 is not a bug in Coreutils; it's about the 
bug-reporting process, and this would better be addressed in another 
forum. One possible forum would be gnu-misc-discuss <at> gnu.org.




Disconnected #47883 from all other report(s). Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Mon, 21 Feb 2022 09:06:02 GMT) Full text and rfc822 format available.

Disconnected #48002 from all other report(s). Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Mon, 21 Feb 2022 09:06:02 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 115 days ago.

Previous Next


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