Your message dated Sun, 23 Sep 2018 08:37:31 +0000
with message-id <e1g3ztt-0003ga...@fasolo.debian.org>
and subject line Bug#900174: fixed in uwsgi 2.0.17.1-4
has caused the Debian Bug report #900174,
regarding uwsgi: Segmentation fault with searx and even simple python3 
application
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
900174: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900174
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: uwsgi
Version: 2.0.15-10.4
Severity: normal

Control: affects -1 + searx

Hi,

this might not even be a uwsgi bug, but filing it here anyways, because
it leads to a segmentation fault in uwsgi (and no logs being written)
which shouldn't happen.

I found this bug when #900068 was filed against my package src:searx.
Searx uses uwsgi to run and because of this issue, its autopkgtest
doesn't complete anymore since the end of April:

https://ci.debian.net/packages/s/searx/unstable/amd64/

I'm also able to reproduce this bug without searx, though. Steps to
reproduce:

    $ sudo debootstrap sid debian-sid 
http://snapshot.debian.org/archive/debian/20180424T000000Z
    $ sudo chroot debian-sid passwd
    $ sudo systemd-nspawn -bD ~/debian-sid

login with root and chosen password and then:

    # apt install uwsgi uwsgi-plugin-python3 nginx
    # cat > /var/www/hello.py << END
def application(env, start_response):
    start_response('200 OK', [('Content-Type','text/html')])
    return [b"Hello World"]
END
    # cat > /etc/uwsgi/apps-enabled/hello.ini << END
[uwsgi]
uid = www-data
gid = www-data
chdir = /var/www
module = python3
master = true
END
    # systemctl restart uwsgi
    # systemctl status uwsgi

Convince yourself that everything works just fine. Now upgrade the
system to some new package versions of six days later:

    # echo 'deb http://snapshot.debian.org/archive/debian/20180430T000000Z sid 
main' > /etc/apt/sources.list
    # apt update -o Acquire::Check-Valid-Until=false
    # apt upgrade -o Acquire::Check-Valid-Until=false

The following packages will be upgraded:

file gcc-8-base ifupdown libargon2-0 libaudit-common libaudit1
libcap-ng0 libgcc1 liblognorm5 libmagic-mgc libmagic1 libncurses5
libncursesw5 libnorm1 libreadline7 libseccomp2 libstdc++6 libtinfo5
libzstd1 ncurses-base ncurses-bin perl-base vim-common vim-tiny xxd
zlib1g

After this upgrade, try restarting uwsgi and witness that it now fails
to start:

    # systemctl restart uwsgi
    # systemctl status uwsgi
● uwsgi.service - LSB: Start/stop uWSGI server instance(s)
   Loaded: loaded (/etc/init.d/uwsgi; generated)
   Active: failed (Result: exit-code) since Sun 2018-05-27 06:59:20 CEST; 10min 
ago
     Docs: man:systemd-sysv-generator(8)
  Process: 38 ExecStart=/etc/init.d/uwsgi start (code=exited, status=1/FAILURE)

May 27 06:59:17 hoothoot systemd[1]: Starting LSB: Start/stop uWSGI server 
instance(s)...
May 27 06:59:20 hoothoot uwsgi[38]: Starting app server(s): uwsgi -> ! failed!
May 27 06:59:20 hoothoot systemd[1]: uwsgi.service: Control process exited, 
code=exited status=1
May 27 06:59:20 hoothoot systemd[1]: uwsgi.service: Failed with result 
'exit-code'.
May 27 06:59:20 hoothoot systemd[1]: Failed to start LSB: Start/stop uWSGI 
server instance(s).

The root cause for this might be a segmentation fault. Try running the
following which (I hope) correctly simulates what the init.d script
does:

    # UWSGI_DEB_CONFNAME=hello UWSGI_DEB_CONFNAMESPACE=app uwsgi --ini 
/usr/share/uwsgi/conf/default.ini --ini /etc/uwsgi/apps-enabled/hello.ini
[...]
Sun May 27 07:10:47 2018 - spawned uWSGI worker 1 (pid: 282, cores: 1)
Sun May 27 07:10:47 2018 - !!! uWSGI process 282 got Segmentation Fault !!!
Sun May 27 07:10:47 2018 - spawned uWSGI worker 2 (pid: 283, cores: 1)
Sun May 27 07:10:47 2018 - !!! uWSGI process 283 got Segmentation Fault !!!
[...]

Funnily, these segmentation faults also occur when only using
default.ini:

    # UWSGI_DEB_CONFNAME=hello UWSGI_DEB_CONFNAMESPACE=app uwsgi --ini 
/usr/share/uwsgi/conf/default.ini

I'm at a loss at how to debug this problem further.

Thanks!

cheers, josch

--- End Message ---
--- Begin Message ---
Source: uwsgi
Source-Version: 2.0.17.1-4

We believe that the bug you reported is fixed in the latest version of
uwsgi, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 900...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonas Smedegaard <d...@jones.dk> (supplier of updated uwsgi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 22 Sep 2018 19:49:13 +0200
Source: uwsgi
Binary: libapache2-mod-ruwsgi libapache2-mod-ruwsgi-dbg libapache2-mod-uwsgi 
libapache2-mod-uwsgi-dbg python-uwsgidecorators python3-uwsgidecorators uwsgi 
uwsgi-app-integration-plugins uwsgi-core uwsgi-dbg uwsgi-dev uwsgi-emperor 
uwsgi-extra uwsgi-infrastructure-plugins uwsgi-plugin-alarm-curl 
uwsgi-plugin-alarm-xmpp uwsgi-plugin-asyncio-python 
uwsgi-plugin-asyncio-python3 uwsgi-plugin-curl-cron uwsgi-plugin-emperor-pg 
uwsgi-plugin-fiber uwsgi-plugin-gccgo uwsgi-plugin-geoip 
uwsgi-plugin-gevent-python uwsgi-plugin-gevent-python3 uwsgi-plugin-glusterfs 
uwsgi-plugin-graylog2 uwsgi-plugin-greenlet-python 
uwsgi-plugin-greenlet-python3 uwsgi-plugin-jvm-openjdk-11 
uwsgi-plugin-jwsgi-openjdk-11 uwsgi-plugin-ldap uwsgi-plugin-lua5.1 
uwsgi-plugin-lua5.2 uwsgi-plugin-mono uwsgi-plugin-psgi uwsgi-plugin-python 
uwsgi-plugin-python3 uwsgi-plugin-rack-ruby2.5 uwsgi-plugin-rados 
uwsgi-plugin-rbthreads uwsgi-plugin-ring-openjdk-11 uwsgi-plugin-router-access 
uwsgi-plugin-servlet-openjdk-11
 uwsgi-plugin-sqlite3 uwsgi-plugin-tornado-python uwsgi-plugin-tornado-python3 
uwsgi-plugin-xslt uwsgi-plugins-all
 uwsgi-src
Architecture: source
Version: 2.0.17.1-4
Distribution: unstable
Urgency: medium
Maintainer: uWSGI packaging team <pkg-uwsgi-de...@lists.alioth.debian.org>
Changed-By: Jonas Smedegaard <d...@jones.dk>
Description:
 libapache2-mod-ruwsgi - uwsgi module for Apache2 (mod_Ruwsgi)
 libapache2-mod-ruwsgi-dbg - debugging symbols for Apache2 mod_Ruwsgi
 libapache2-mod-uwsgi - uwsgi module for Apache2 (mod_uwsgi)
 libapache2-mod-uwsgi-dbg - debugging symbols for Apache2 mod_uwsgi
 python-uwsgidecorators - module of decorators for elegant access to uWSGI API 
(Python 2)
 python3-uwsgidecorators - module of decorators for elegant access to uWSGI API 
(Python 3)
 uwsgi      - fast, self-healing application container server
 uwsgi-app-integration-plugins - plugins for integration of uWSGI and 
application
 uwsgi-core - fast, self-healing application container server (core)
 uwsgi-dbg  - debugging symbols for uWSGI server and it's plugins
 uwsgi-dev  - fast, self-healing application container server (headers)
 uwsgi-emperor - fast, self-healing application container server (emperor 
scripts)
 uwsgi-extra - fast, self-healing application container server (extra files)
 uwsgi-infrastructure-plugins - infrastructure plugins for uWSGI
 uwsgi-plugin-alarm-curl - cURL alarm plugin for uWSGI
 uwsgi-plugin-alarm-xmpp - XMPP alarm plugin for uWSGI
 uwsgi-plugin-asyncio-python - asyncio plugin for uWSGI (Python 2)
 uwsgi-plugin-asyncio-python3 - asyncio plugin for uWSGI (Python 3)
 uwsgi-plugin-curl-cron - cron cURL plugin for uWSGI
 uwsgi-plugin-emperor-pg - Emperor PostgreSQL plugin for uWSGI
 uwsgi-plugin-fiber - Fiber plugin for uWSGI
 uwsgi-plugin-gccgo - GNU Go plugin for uWSGI
 uwsgi-plugin-geoip - GeoIP plugin for uWSGI
 uwsgi-plugin-gevent-python - gevent plugin for uWSGI (Python 2)
 uwsgi-plugin-gevent-python3 - gevent plugin for uWSGI (Python 3)
 uwsgi-plugin-glusterfs - GlusterFS storage plugin for uWSGI
 uwsgi-plugin-graylog2 - graylog2 plugin for uWSGI
 uwsgi-plugin-greenlet-python - greenlet plugin for uWSGI (Python 2)
 uwsgi-plugin-greenlet-python3 - greenlet plugin for uWSGI (Python 3)
 uwsgi-plugin-jvm-openjdk-11 - Java plugin for uWSGI (OpenJDK 11)
 uwsgi-plugin-jwsgi-openjdk-11 - JWSGI plugin for uWSGI (OpenJDK 11)
 uwsgi-plugin-ldap - LDAP plugin for uWSGI
 uwsgi-plugin-lua5.1 - Lua WSAPI plugin for uWSGI (Lua 5.1)
 uwsgi-plugin-lua5.2 - Lua WSAPI plugin for uWSGI (Lua 5.2)
 uwsgi-plugin-mono - Mono/ASP.NET plugin for uWSGI
 uwsgi-plugin-psgi - Perl PSGI plugin for uWSGI
 uwsgi-plugin-python - WSGI plugin for uWSGI (Python 2)
 uwsgi-plugin-python3 - WSGI plugin for uWSGI (Python 3)
 uwsgi-plugin-rack-ruby2.5 - Rack plugin for uWSGI ()
 uwsgi-plugin-rados - Ceph/RADOS storage plugin for uWSGI
 uwsgi-plugin-rbthreads - Ruby native threads plugin for uWSGI ()
 uwsgi-plugin-ring-openjdk-11 - Closure/Ring plugin for uWSGI (OpenJDK 11)
 uwsgi-plugin-router-access - Access router plugin for uWSGI
 uwsgi-plugin-servlet-openjdk-11 - JWSGI plugin for uWSGI (OpenJDK 11)
 uwsgi-plugin-sqlite3 - SQLite 3 configurations plugin for uWSGI
 uwsgi-plugin-tornado-python - tornado plugin for uWSGI (Python 2)
 uwsgi-plugin-tornado-python3 - tornado plugin for uWSGI (Python 3)
 uwsgi-plugin-xslt - XSLT request plugin for uWSGI
 uwsgi-plugins-all - all available plugins for uWSGI
 uwsgi-src  - sources for uWSGI plugins
Closes: 900174
Changes:
 uwsgi (2.0.17.1-4) unstable; urgency=medium
 .
   * Fix stop enable flag autoload by default.
     Closes: Bug#900174. Thanks to Johannes Schauer.
   * Tidy comments in default.in.
   * Set Rules-Requires-Root: no.
   * Declare compliance with Debian Policy 4.2.1.
Checksums-Sha1:
 2086e5d1d4e4702a1c996fd90c99a2a48af546e4 8273 uwsgi_2.0.17.1-4.dsc
 b3a3b25f0957be5cf4ab83eca8d955fa735dd13d 55148 uwsgi_2.0.17.1-4.debian.tar.xz
 b4fbd65feb606a3b7ff89729704293b25e049a8c 41268 uwsgi_2.0.17.1-4_amd64.buildinfo
Checksums-Sha256:
 d741e33f6f1f9c0aa6a828f047d1bb4277e78c14b4db9d075779563a0cca4586 8273 
uwsgi_2.0.17.1-4.dsc
 bd6c451bd01bce9eb91e0d93221d0ed5888ca59eef1f781aedcd4e67265a5d3e 55148 
uwsgi_2.0.17.1-4.debian.tar.xz
 3922c697dd6042d48c58bb4f480a05c51eb2d9aaf927352c66e075e51bb7c9e8 41268 
uwsgi_2.0.17.1-4_amd64.buildinfo
Files:
 7bb261bd4081464b4150a88e30acc9d4 8273 httpd optional uwsgi_2.0.17.1-4.dsc
 4dcfa320ea3c2bad074510f77bacc723 55148 httpd optional 
uwsgi_2.0.17.1-4.debian.tar.xz
 c3ab3d664d629dcc3277b50f4738e38a 41268 httpd optional 
uwsgi_2.0.17.1-4_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAlunT1AACgkQLHwxRsGg
ASEhsw/+KaeTNEIKH4SKsD3vqEW6Oet8RCaA7XRquq0maw/Kr0r/1BUZyAbyNrtu
gFKf2zMXXCl3mtwvnl/LUIqdf07zLvAGpenrM+pRh0Kg8iJdpRqaSbp7b/I3CbYb
KkMlWz9i3xg6ZzCu+gUhb/no9wG1Yu7VYkWN5qfB69id/YzFEmYTpJFsg83fWXTm
r6Ke13PQccdgbuow9HwiQsXQ1Zo2Xnm1SPzfksucxoj79q+INmzL3l8jpgPKEsBu
Np0PcqXOm+nqH9vi1wSIxVv3nGmaSL3DnhOJV4ewe5ltePGE6bSmu7vho48/fGjA
THpWewF/LNbrb87qYcCiB2YRn+YuNufSu1dtNKXFYajX1z/j1PW3UYDiKKxd0RBl
lVbP3g3PxmHLWuaeMxyVkK0uhF0WjlIr50PPbOl0koXcAuf/rVdrzQAEm//Nki+6
0ZWqUDOKXvylgfwRpwZJ/WYbP3swzpTgqmJR1joI4l8B4CmWaTt1QKOEeQs1f1or
sgV96CXJfPPB0Bsf9f37QOH7c2Vv43WxxTT8eELyAWDXVmUYokgV7lIT/QWT6cJh
COgmiv6WLAqnFZDuWE1smdeK3PvaUHfvqMAH+7bdCruR9C5ZHHUBbUvh5Gxie35i
bAs9NMQLLjBTBpdZx+IOB9ZLXDcMRJ+4LMAa4pBms/tEg8FuyOU=
=w5/5
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to