-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SEGV when python code is pycall-ed from Puma (works without puma) #185
Comments
snickell
changed the title
SEGV when python code is pycall-ed from Puma (same code works without puma)
SEGV when python code is pycall-ed from Puma (works without puma)
Aug 6, 2024
I've got a pandas-only repro now, updating main comment to match. |
Aha! Even when you set threads=1, puma still spawns a different thread for requests than ran the initial code. This will affect Rails users as well:
Conclusion: there may not be a safe way to use pycall from puma-using servers, including a default rails configuration. Puma always starts a thread even if threads=1. |
This was referenced Aug 6, 2024
See: #96 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are hitting an issue where we have code that works from simple irb, or from
rails console
, but crashes when run from a Rails controller. I have reduced our issue to a minimal repro that uses only Puma. I'm comfortable with C and C-debugging tools if that helps, I'm just trying to figure out where to start.Minimal repro (tried to make it very simple): https://github.com/snickell/pycall_puma_crash
We'd like to use pycall.rb for code.org (github). Its a very clever approach, thank you @mrkn 🙇
The text was updated successfully, but these errors were encountered: