GNU bug report logs - #25149
md5sum fails with message "Invalid argument" on 4,294,967,295-byte files in FAT32

Previous Next

Package: coreutils;

Reported by: Jaime Gaspar <mail <at> jaimegaspar.com>

Date: Fri, 9 Dec 2016 17:56:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Jaime Gaspar <mail <at> jaimegaspar.com>, 25149 <at> debbugs.gnu.org
Subject: bug#25149: md5sum fails with message "Invalid argument" on 4, 294, 967, 295-byte files in FAT32
Date: Fri, 9 Dec 2016 19:22:20 +0000
tag 25149 notabug
close 25149
stop

On 09/12/16 18:28, Jaime Gaspar wrote:
>    read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32768) = 32767

OK we've read all we can, but to verify md5sum will do:
  fread(buffer + 32767, 1, 1, stream)

Then the stdio stream will issue the underlying read()s
I'm not too sure where there are two reads here,
but they shouldn't be returning EINVAL, but just
returning 0 to indicate EOF.

>    read(3, 0x25c12b0, 8192)                = -1 EINVAL (Invalid argument)
>    read(3, 0x25c12b0, 8192)                = -1 EINVAL (Invalid argument)

So it's a kernel bug as suspected.

thanks,
Pádraig




This bug report was last modified 6 years and 208 days ago.

Previous Next


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