This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: deepfreeze should rehash all strings upon reset
Type: behavior Stage: resolved
Components: Build Versions: Python 3.11
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum
Priority: normal Keywords:

Created on 2021-12-14 16:58 by gvanrossum, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg408550 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2021-12-14 16:58
In https://github.com/python/cpython/pull/30096#discussion_r768802144 it is pointed out that the hash seed can be changed if the interpreter is reset.

To guard against this we need to force (re)calculation of all hash seeds in the generated code when the corresponding code object is retrieved. This can be done by adding extra code to the `_Py_get_<name>_toplevel()` functions. (Strings that are shared between code objects will have to be rehashed repeatedly -- no big deal.)
msg408572 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2021-12-14 22:16
Never mind, this was based on incorrect information. See subsequent messages in the linked thread.
History
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90232
2021-12-14 22:16:01gvanrossumsetstatus: open -> closed
resolution: not a bug
messages: + msg408572

stage: test needed -> resolved
2021-12-14 16:58:44gvanrossumcreate