Author Benoit Hudson
Recipients Benoit Hudson, ned.deily, ronaldoussoren
Date 2019-08-23.15:39:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
On OSX, with --enable-shared, if you shut down python and reinitialize, you can get a crash.

Repro steps: see attached crashy.c
gcc -I. -I ../Include/ -L. crashy.c -lpython3.9

On OSX, with --enable-shared, you get a crash! On other platforms including on OSX static builds, no crash.

Not a regression: it's present in 2.7 (where we actually hit it).

PR incoming, the fix is simple. It has to do with caching (on OSX shared builds only) a stale value for the environment when building os.environ the first time; if you change the environment, the second initialization reads garbage when building os.environ.
Date User Action Args
2019-08-23 15:39:47Benoit Hudsonsetrecipients: + Benoit Hudson, ronaldoussoren, ned.deily
2019-08-23 15:39:47Benoit Hudsonsetmessageid: <>
2019-08-23 15:39:47Benoit Hudsonlinkissue37931 messages
2019-08-23 15:39:47Benoit Hudsoncreate