[fedora-arm] Broken sha512sum in coreutils

Gordan Bobic gordan at bobich.net
Fri Jan 7 19:36:10 UTC 2011


On 01/07/2011 06:29 PM, Andrew Haley wrote:

>>>>> [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.

I am inclined to think it might be compiler related. Andy's package is 
the same version as mine, his works, mine does not. The only thing that 
is likely to be different is the build environment.

Gordan


More information about the arm mailing list