Skip to content

Instantly share code, notes, and snippets.

@akiym
Last active November 22, 2018 03:18
Show Gist options
  • Save akiym/0e8bc77b59a325fc82430b5181d51c02 to your computer and use it in GitHub Desktop.
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)
# -*- coding: utf-8 -*-
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"]
# -*- 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