Issue 38076: Make struct module PEP-384 compatible (original) (raw)

Executing this simple code after this commit segfaults:

from multiprocessing.pool import Pool class A(object): def init(self): self.pool = Pool() def del(self): self.pool.close() self.pool.join() a = A()

[1] 28019 segmentation fault ./python.exe ../lel.py

The reason is that there is a call to PyModule_GetState with the module being NULL:

I am marking this as a release blocked