| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…changes syslog_get_argv() took sys.argv[0] with PyList_GetItem() and increfed it only afterwards, so on the free-threaded build a concurrent replacement of sys.argv[0] could free it in between. Use PyList_GetItemRef() instead. Co-authored-by: Lazizbek Ergashev <20501725+lazerg@users.noreply.github.com>
Sorry, something went wrong.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
|
Thanks @espressolee for the PR, and @ZeroIntensity for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
Sorry, something went wrong.
|
Sorry, @espressolee and @ZeroIntensity, I could not cleanly backport this to 3.14 due to a conflict. Please backport manually with cherry_picker, see the devguide for more information. cherry_picker e5e0748abd27e39655cb8dc313a82cad6563c54f 3.14 |
Sorry, something went wrong.
|
GH-159952 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
GH-159954 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
Congrats on your first contribution :) |
Sorry, something went wrong.
… changes (GH-159884) (GH-159952) syslog_get_argv() took sys.argv[0] with PyList_GetItem() and increfed it only afterwards, so on the free-threaded build a concurrent replacement of sys.argv[0] could free it in between. Use PyList_GetItemRef() instead. (cherry picked from commit e5e0748) Co-authored-by: Junhyung Lee <70549809+espressolee@users.noreply.github.com> Co-authored-by: Lazizbek Ergashev <20501725+lazerg@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
syslog_get_argv() took sys.argv[0] with PyList_GetItem() and only increfed it afterwards, so on the free-threaded build another thread replacing sys.argv[0] could free it in between. Use PyList_GetItemRef() instead.
Adds a regression test to test_free_threading.test_syslog that races syslog.openlog() (without ident) against sys.argv[0] assignment.
Thanks to @lazerg for confirming the crash on main and identifying the fix.
Fixes #159864.