bpo-38009: Do not call weakref callbacks that are being collected by pablogsal · Pull Request #15645 · python/cpython
Oh, I understand. Well, after this fix there is no hard crash, but an incorrect implementation of the garbage collector can have undefined consequences. These range from leaks because tp_traverse is not correctly implemented or some other crashes elsewhere.
What do you think we should do here? Maybe a more comprehensive message?