[issue28055] pyhash's siphash24 assumes alignment of the data pointer

Matthias Klose report at bugs.python.org
Tue Sep 13 17:19:40 EDT 2016


Matthias Klose added the comment:

> I believe the unaligned memory access configure check is supposed to
> prevent siphash from being used, so we might look into why that's not
> working.
> 
> IMO, though, we should just require alignment for the argument to
> _PyHash_Bytes. It's private after all.

If I understand it correctly, the hash value differs depending on the kernel configuration when the python binary is built, leading to different pickle objects which cannot be shared, making them incompatible .  I think the safest thing would be to remove the hash make the selection of the hash method unconditional, and to make this hash function working for all cases.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28055>
_______________________________________


More information about the Python-bugs-list mailing list