Author barisione
Recipients barisione
Date 2020-07-01.16:05:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The generation of pickle files in load_grammar in lib2to3/pgen2/ is racy as other processes may end up reading a half-written pickle file.

This is reproducible with the command line tool, but it's easier to reproduce by importing lib2to3. You just need different processes importing lib2to3 at the same time to make this happen, see the attached reproducer.

I tried with Python 3.9 for completeness and, while it happens there as well, it seems to be less frequent ony my computer than when using Python 3.6 (2% failure rate instead of 50% failure rate).
Date User Action Args
2020-07-01 16:05:44barisionesetrecipients: + barisione
2020-07-01 16:05:44barisionesetmessageid: <>
2020-07-01 16:05:44barisionelinkissue41185 messages
2020-07-01 16:05:44barisionecreate