bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25149: md5sum fails with message "Invalid argument" on 4, 294, 967,


From: Pádraig Brady
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
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]