Skip to content

fix: use _exit() instead of exit() from uwsgi_exit()#2746

Open
taegyunkim wants to merge 3 commits intounbit:masterfrom
taegyunkim:exit-destructor
Open

fix: use _exit() instead of exit() from uwsgi_exit()#2746
taegyunkim wants to merge 3 commits intounbit:masterfrom
taegyunkim:exit-destructor

Conversation

@taegyunkim
Copy link
Contributor

@taegyunkim taegyunkim commented Nov 3, 2025

When a native Python extension module uses thread-local storage and an atexit hook using that TLS is installed, uwsgi results in a segmentation fault.

A minimal repro code is available at https://github.com/taegyunkim/uwsgi-tls-segfault

@taegyunkim
Copy link
Contributor Author

Do you mind taking a look @xrmx?

@taegyunkim
Copy link
Contributor Author

Gentle reminder @xrmx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants