Skip to content
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

Segfault when using python_autoreload #42

Closed
sobolevn opened this issue Nov 12, 2017 · 3 comments
Closed

Segfault when using python_autoreload #42

sobolevn opened this issue Nov 12, 2017 · 3 comments
Labels

Comments

@sobolevn
Copy link
Member

For some reason I have now started to receive segmentation fault errors in development. It does not happen all the time. Just happens at some unpredictable cases.

I have found two solutions (hacks):

  1. Add --noreload option to runserver command
  2. Add import threading; threading.stack_size(2*1024*1024) # noqa to the top level of manage.py

Waiting this issue to be fixed: https://bugs.alpinelinux.org/issues/8134
Also related: docker-library/python#211

sobolevn added a commit that referenced this issue Nov 12, 2017
Also improves `ci.sh` checks and caching.
Improves common settings.

Refs #42
@ncopa
Copy link

ncopa commented Nov 14, 2017

Does it make any difference if you add ENV JSON_MAX_STACK_BUFFER_SIZE=1024 before running pip?

@sobolevn
Copy link
Member Author

sobolevn commented Nov 14, 2017

@ncopa I will test this setting shortly, thanks.

@sobolevn
Copy link
Member Author

sobolevn commented Nov 14, 2017

@ncopa nope, it did not work.

But import threading; threading.stack_size(2*1024*1024) works.

So, I have tried to increase JSON_MAX_STACK_BUFFER_SIZE's value to 2048. And it still fails.

I guess it happens, because JSON_MAX_STACK_BUFFER_SIZE setting is specific to ujson, while I having trouble with django_rest_framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants