[fedora-arm] Broken sha512sum in coreutils

Andrew Haley aph at redhat.com
Fri Jan 7 18:29:44 UTC 2011


On 01/07/2011 04:50 PM, Gordan Bobic wrote:
> Gordan Bobic wrote:
>> Andy Green wrote:
>>> On 01/07/11 16:15, Somebody in the thread at some point said:
>>>
>>>> [root at sheeva ~]# cat /proc/cpu/alignment
>>>> User:           12230853
>>>> System:         1
>>>> Skipped:        0
>>>> Half:           0
>>>> Word:           0
>>>> DWord:          1
>>>> Multi:          0
>>>> User faults:    0 (ignored)
>>>
>>> I wrote about the alignment issue here on ARM:
>>>
>>> http://warmcat.com/_wp/2007/05/25/the-alignment-monster/
>>>
>>> If I understood it, you have a bazillion alignment faults in your user
>>> code that aren't being fixed up, which will cause exactly this kind of
>>> symptom with sha512sum.
>>>
>>> Try
>>>
>>> echo 2>  /proc/cpu/alignment
>>>
>>> (take care to keep the spaces as shown) and try the tests again.
>>
>> Yup, that fixes it! :)
>>
>> So what is the correct/permanent solution to avoid problems like this?

That was a fantastic piece of detective work!

This must be a bug in sha512sum -- it shouldn't be affected by alignment.

Andrew


More information about the arm mailing list