You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
I am getting a segmentation fault when using Raven with the Flask development server on Alpine Linux. Oddly, this issue only appears to occur when I install a recent version of the requests library (>= v2.13.0) (even if I don't import that library in my code). This issue is only specific to Alpine - it works fine on other Python Docker images. The issue occurs on versions of Raven >= 5.4.0.
@rossgray based on my research from those other issues I'm confident that this is an issue with musl's smaller default stack size; you can try this workaround or try upgrading to requests>=2.18.1, which does not suffer from the segfault in my experience (but you may still experience it if you use other dependencies, especially ones that include ultrajson).
Hi,
I am getting a segmentation fault when using Raven with the Flask development server on Alpine Linux. Oddly, this issue only appears to occur when I install a recent version of the
requests
library (>= v2.13.0) (even if I don't import that library in my code). This issue is only specific to Alpine - it works fine on other Python Docker images. The issue occurs on versions of Raven >= 5.4.0.I think the segmentation fault is related to some imports within the Raven library.
When I change the following lines it fixes the problem:
https://github.com/getsentry/raven-python/blob/master/raven/conf/remote.py#L18-L19
from:
to:
i.e. remove the submodule, which isn't needed since in
transport/__init__.py
there is:I have created a test project to reproduce this issue:
https://github.com/ingresso-group/flask-raven-debug
Environment:
python:3.6-alpine
Docker imageThe text was updated successfully, but these errors were encountered: