Ошибка сегментации uWSGI с Python 3.6.8
Я использую Raspberry Pi 3 B+ в качестве основы для простого резервного копирования, прежде чем что-либо менять.
Теперь я установил новый с Python 3.6.8, и я, кажется, не могу запустить uWSGI.
- ОС FreeBSD находится на SSD
- Установленный Python 3 версии 3.6.8
Рабочая система имеет Python 3.6.7, а FreeBSD находится на Micro SD
(www) [webapp@generic ~/www/netwhere]$ uname -mrs
FreeBSD 12.0-RELEASE arm64
(www) [webapp@generic ~/www/netwhere]$ python --version
Python 3.6.8
(www) [webapp@generic ~/www/netwhere]$ django-admin --version
2.2
(www) [webapp@generic ~/www/netwhere]$ uwsgi --version
2.0.18
Я делаю тот же тест, чтобы увидеть, работает ли uWSGI, но он не работает с ошибкой сегментации. Процесс все еще выполняется в фоновом режиме, но тестовый веб-сайт 192.168.0.129:8000 выдает "ERR_EMPTY_RESPONSE":
(www) [webapp@generic ~/www/netwhere]$ cat test.py
def application(env, start_response):
start_response('200 OK', [('Content-Type','text/html')])
return [b"Hello World"] # python3
#return ["Hello World"] # python2
(www) [webapp@generic ~/www/netwhere]$ uwsgi --http :8000 --wsgi-file test.py
*** Starting uWSGI 2.0.18 (64bit) on [Mon Apr 22 20:20:13 2019] ***
compiled with version: 4.2.1 Compatible FreeBSD Clang 6.0.1 (tags/RELEASE_601/final 335540) on 19 April 2019 18:43:08
os: FreeBSD-12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC
nodename: generic
machine: arm64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /srv/www/netwhere
detected binary path: /srv/www/bin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 5677
your memory page size is 4096 bytes
detected max file descriptor number: 26649
lock engine: POSIX semaphores
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on :8000 fd 4
spawned uWSGI http 1 (pid: 7618)
uwsgi socket 0 bound to TCP address 127.0.0.1:65427 (port auto-assigned) fd 3
Python version: 3.6.8 (default, Apr 12 2019, 18:42:08) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.1 (tags/RELEASE_601/final 335540)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x410e4a00
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 72904 bytes (71 KB) for 1 cores
*** Operational MODE: single process ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x410e4a00 pid: 7617 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 7617, cores: 1)
!!! uWSGI process 7617 got Segmentation Fault !!!
Segmentation fault (core dumped)
(www) [webapp@generic ~/www/netwhere]$ [uwsgi-http] unable to connect() to node "127.0.0.1:65427" (0 retries): Connection refused
[uwsgi-http] unable to connect() to node "127.0.0.1:65427" (1 retries): Connection refused
[uwsgi-http] unable to connect() to node "127.0.0.1:65427" (2 retries): Connection refused
[uwsgi-http] unable to connect() to node "127.0.0.1:65427" (3 retries): Connection refused
(www) [webapp@generic ~/www/netwhere]$ kill 7618
Любые рекомендации, какие шаги я мог бы сделать дальше?