[issue37931] crash reimporting posix after Py_Finalize on mac
New submission from Benoit Hudson : 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 ./a.out 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. -- components: Interpreter Core, macOS files: crashy.c messages: 350309 nosy: Benoit Hudson, ned.deily, ronaldoussoren priority: normal severity: normal status: open title: crash reimporting posix after Py_Finalize on mac type: crash versions: Python 3.9 Added file: https://bugs.python.org/file48559/crashy.c ___ Python tracker <https://bugs.python.org/issue37931> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37931] crash reimporting posix after Py_Finalize on mac
Change by Benoit Hudson : -- keywords: +patch pull_requests: +15125 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15428 ___ Python tracker <https://bugs.python.org/issue37931> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37931] crash reimporting posix after Py_Finalize on mac
Benoit Hudson added the comment: Ping! The patch has been ready for review for over a month. If the patch can be backported to 2.7.x before that gets end-of-lifed it would be ideal. -- versions: +Python 2.7 ___ Python tracker <https://bugs.python.org/issue37931> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41100] Support macOS 11 and Apple Silicon Macs
Benoit Hudson added the comment: Is there any hope of a backport to 3.7? Or has that ship sailed? -- nosy: +benoithudson ___ Python tracker <https://bugs.python.org/issue41100> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com