Last active
November 22, 2018 03:18
-
-
Save akiym/0e8bc77b59a325fc82430b5181d51c02 to your computer and use it in GitHub Desktop.
Reproduction code segmentation fault with --py-autoreload (uwsgi 2.0.17, Python 3.7)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7-stretch | |
WORKDIR /app | |
RUN pip install uwsgi==2.0.17 | |
COPY foobar.py . | |
COPY __init__.py foo/bar/__init__.py | |
CMD ["uwsgi", "--http", ":9090", "--wsgi-file", "foobar.py", "--py-autoreload", "1"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import foo.bar | |
def application(env, start_response): | |
start_response('200 OK', [('Content-Type','text/html')]) | |
return [b"Hello World"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment