setproctitle causes apache mod_wsgi to crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-setproctitle (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
== Impact ==
If setproctitle is installed, celery will call it, making any WSGI application that imports celery at risk.
There are a lot of those in the world.
== Test Case ==
The patch includes a build time unit test that can replicate the bug.
OR
Point apache at this wsgi app:
from wsgiref.
import setproctitle
application = demo_app
e.g. with WSGIScriptAlias / /var/www/foo.wsgi
== Regression Potential ==
This patch hobbles setproctitle in embedded Pythons. Upstream later added embedded support in 1.1.4, but I don't see any bugs being closed as a result of that.
So, probably minimal.
== ORIGINAL REPORT ==
When python-setproctitle is installed alongside mod_wsgi and the wsgi application imports setproctitle it causes apache to segfault every time a request comes in to that wsgi vhost.
GDB output:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 fix_argv (argv=0x0, argc=0) at src/setproctitl
124 src/setproctitle.c: No such file or directory.
Traceback (most recent call last):
File "/usr/share/
from libstdcxx.
This was fixed in version 1.1.1 (https:/
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: python-setproctitle 1.0.1-1ubuntu1
ProcVersionSign
Uname: Linux 3.19.0-42-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
Date: Wed Jan 27 20:34:46 2016
Ec2AMI: ami-9c1f8ef4
Ec2AMIManifest: (unknown)
Ec2Availability
Ec2InstanceType: m4.large
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
SourcePackage: python-setproctitle
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
Changed in python-setproctitle (Ubuntu): | |
importance: | Undecided → Medium |
Hello Jared, or anyone else affected,
Accepted python-setproctitle into trusty-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ python- setproctitle/ 1.0.1-1ubuntu1. 14.04.1 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed. In either case, details of your testing will help us make a better decision.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance!