-
Notifications
You must be signed in to change notification settings - Fork 518
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
Version 6.0.1 produces Segmentation Fault on Python 3.7 and Alpine 3.14 #737
Comments
We've never published PyYAML wheels for Alpine, which means the native code extension build that's failing occurred in your environment upon installation. 6.0.1 and 6.0 are literally exactly the same code (there was just a packaging metadata hint added to block usage of the newest incompatible versions of Cython). It's likely something has changed in your environment since your local 6.0 wheel was built (dev tools, headers, libraries, or the way it was installed). There's not really anything we can do to help you debug that problem, since the same code (6.0) was clearly already working in your environment. Further, AFAICT, Python 3.7 isn't even packaged for Alpine 3.14, so maybe you built your own? In any case, it appears you may have a number of complexities in your environment that could be breaking things, but I had no trouble just now building PyYAML with the native libyaml extension using the Alpine-3.14 packaged Python 3.9 and passing its full test suite successfully using the following in a vanilla Alpine 3.14 container:
You should be able to alter what I did there to use the Python 3.7 you've got installed and replicate the same process. If you're unable, I'd suggest maybe trying without the libyaml extension (eg In any case, I'm going to close this issue, as it's almost certainly an environment-specific configuration problem- hopefully the info provided can help you back to a working installation of PyYAML. |
We use that package together with Flask and run inside Docker container with UWSGI.
I see normal startup in the logs
which fails with
!!! uWSGI process 12 got Segmentation Fault !!!
once we reach the code which tries to
import yaml
We cannot see a detailed backtrace because of that limitation.
Version 6.0 works without problems
The text was updated successfully, but these errors were encountered: