[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

Brandt Bucher report at bugs.python.org
Fri Sep 3 11:55:17 EDT 2021


Brandt Bucher <brandtbucher at gmail.com> added the comment:

I'm compiling Clang now to try to reproduce using a UBSan build (I'm on Ubuntu, though).

I'm not entirely familiar with how these sanitizer builds work... could the implication be that we're hitting undefined behavior at some point? Or is it just a red herring?

Note also that the "set([float('nan'), b'a', b'b', b'c', 'x', 'y', 'z'])" and "frozenset([float('nan'), b'a', b'b', b'c', 'x', 'y', 'z'])" tests seem to be working just fine... meaning their ordering on this buildbot is different under PYTHONHASHSEEDs 0 and 1 (as expected). It may still be a platform-or-configuration-dependent ordering, though.

Raymond: off the top of your head, are there any obvious reasons this could be happening?

----------
assignee:  -> brandtbucher

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37596>
_______________________________________


More information about the Python-bugs-list mailing list