Как получить более подробную информацию из процесса uWSGI Segmentation Fault?
Я решил следовать "учебнику по uwsgi, Django и nginx"; Но я не успел далеко уйти, как получил сообщение об ошибке сегментации. Я не могу понять, как получить более подробную информацию. Как получить более подробную информацию из процесса uWSGI Segmentation Fault?
Вот шаги, которые помогут воспроизвести ту же проблему.
Учебник: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html
Установка ОС: alpine3.13 Python: 3.10 Django: 3.2.9
Dockerfile: https://github.com/docker-library/python/tree/8e591562e4e9ea0c2ab27d428918007abbc688a1/3.10/alpine3.13
RUN apk update && apk add gcc musl-dev python3-dev libffi-dev libressl-dev cargo bash vim && \
apk add pcre pcre-dev supervisor openssl curl ca-certificates nginx && \
pip install --upgrade pip && \
pip install Django==3.2.9 && \
pip install -I --no-cache-dir uwsgi
После запуска контейнера и входа в него:
git clone https://github.com/do-community/django-polls.git
cd django-polls/
uwsgi --http :8000 --module mysite.wsgi
Вывод и Отсутствие деталей к ошибке сегментации
*** Starting uWSGI 2.0.20 (64bit) on [Sun Nov 14 18:30:03 2021] ***
compiled with version: 10.2.1 20201203 on 14 November 2021 08:43:40
os: Linux-5.10.47-linuxkit #1 SMP Sat Jul 3 21:51:47 UTC 2021
nodename: 39e77de2e1ed
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /app/django-polls
detected binary path: /usr/local/bin/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
detected max file descriptor number: 1048576
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on :8000 fd 4
spawned uWSGI http 1 (pid: 89)
uwsgi socket 0 bound to TCP address 127.0.0.1:38983 (port auto-assigned) fd 3
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Python version: 3.10.0 (default, Nov 13 2021, 03:43:50) [GCC 10.2.1 20201203]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x7f2dd3d10980
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 72920 bytes (71 KB) for 1 cores
*** Operational MODE: single process ***
!!! uWSGI process 88 got Segmentation Fault !!!