[pkg-uWSGI-devel] Bug#1133977: uwsgi breaks uwsgi-plugin-python autopkgtest on s390x: Segmentation Fault
Alexandre Rossi
niol at zincube.net
Thu Apr 16 08:58:59 BST 2026
Hi,
> Currently this regression is blocking the migration of uwsgi to testing
> [1]. Due to the nature of this issue, I filed this bug report against
> both packages. Can you please investigate the situation and reassign the
> bug to the right package?
This is not a regression but rather the side-effect of test_mountpoints now being
enabled.
> (HTTP/1.1 200) 1 headers in 44 bytes (1 switches on core 0)
> 56s !!! uWSGI process 1460 got Segmentation Fault !!!
> 56s *** backtrace of 1460 ***
> 56s /usr/bin/uwsgi(uwsgi_backtrace+0x2a) [0x2aa1d284f22]
> 56s /usr/bin/uwsgi(uwsgi_segfault+0x32) [0x2aa1d285332]
> 56s linux-vdso64.so.1(__kernel_sigreturn+0) [0x3ffe42fe4d8]
> 56s /usr/lib/s390x-linux-gnu/libpython3.13.so.1.0(+0x22c5a8)
> [0x3ff8e92c5a8]
> 56s
> /usr/lib/uwsgi/plugins/python3_plugin.so(uwsgi_request_subhandler_wsgi+0xa0)
> [0x3ff8f0191c8]
> 56s /usr/lib/uwsgi/plugins/python3_plugin.so(uwsgi_request_wsgi+0x146)
> [0x3ff8f01801e]
> 56s /usr/bin/uwsgi(wsgi_req_recv+0xbc) [0x2aa1d22cf84]
> 56s /usr/bin/uwsgi(simple_loop_run+0xda) [0x2aa1d280272]
> 56s /usr/bin/uwsgi(simple_loop+0x7e) [0x2aa1d280386]
> 56s /usr/bin/uwsgi(uwsgi_ignition+0x260) [0x2aa1d285660]
> 56s /usr/bin/uwsgi(uwsgi_worker_run+0x2fc) [0x2aa1d289214]
> 56s /usr/bin/uwsgi(uwsgi_run+0x51c) [0x2aa1d2898a4]
> 56s /usr/bin/uwsgi(_start+0) [0x2aa1d22c570]
> 56s /usr/lib/s390x-linux-gnu/libc.so.6(+0x2ccba) [0x3ff8f1accba]
> 56s /usr/lib/s390x-linux-gnu/libc.so.6(__libc_start_main+0xa8)
> [0x3ff8f1acdb0]
> 56s /usr/bin/uwsgi(+0x2c5b0) [0x2aa1d22c5b0]
> 56s *** end of backtrace ***
I can reproduce the segfault on s390x with both uwsgi-plugin-python from the
archive and a binary rebuild of src:uwsgi-plugin-python .
If I rebuild uwsgi-plugin-python and run:
(sid_s390x-dchroot)niol at zelenka:~/uwsgi-plugin-python$ gdb --args uwsgi --plugin-dir . --plugin python3 --http-socket 127.0.0.1:8000 python/manage_script_name/manage_script_name_test.ini
And in another terminal do what the test script does:
niol at zelenka:~$ wget -qO- http://localhost:8000/foo/resource
/fooniol at zelenka:~$ wget -qO- http://localhost:8000/foobis/resource
/foobis/niol at zelenka:~$ wget -qO- http://localhost:8000/footris/resource
/footris/niol at zelenka:~$ wget -qO- http://127.0.0.1:8000/footris/resource
/footris/niol at zelenka:~$ wget -qO- http://127.0.0.1:8000/foobis/resource
/foobis/niol at zelenka:~$ wget -qO- http://127.0.0.1:8000/fooanything
niol at zelenka:~$ wget -qO- http://127.0.0.1:8000/foobisbis/
niol at zelenka:~$ wget -qO- http://127.0.0.1:8000/foofighters
I don't get the SEGFAULT.
So I need to spend more time on this to reproduce.
Thanks,
Alex
More information about the pkg-uWSGI-devel
mailing list