[pkg-uWSGI-devel] Bug#1133977: uwsgi breaks uwsgi-plugin-python autopkgtest on s390x: Segmentation Fault

Alexandre Rossi niol at zincube.net
Thu Apr 16 12:30:11 BST 2026


Hi,

> > (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

The request triggering the SEGFAULT without gdb is:

    $ wget -qO- http://127.0.0.1:8000/footris

With gdb the SEGFAULT does not occur.

Thanks,

Alex



More information about the pkg-uWSGI-devel mailing list