ius-coredev team mailing list archive
-
ius-coredev team
-
Mailing list archive
-
Message #04160
[Bug 1341325] Re: python27-mod_wsgi crashes when loaded by apache
It looks like Graham was able to push out 4.2.6. Since the code change
is minimal, we are going to push this version directly to the stable
repos. Our goal will be to prevent anyone on the 4.1.x series who
hasn't upgraded yet from ever seeing this issue. The following packages
will hit the stable repos tonight, but may take up to 24 hours to sync
to all mirrors.
python27-mod_wsgi-4.2.6-1.ius
python32-mod_wsgi-4.2.6-1.ius
python33-mod_wsgi-4.2.6-1.ius
** Changed in: ius
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/1341325
Title:
python27-mod_wsgi crashes when loaded by apache
Status in IUS Community Project:
Fix Released
Bug description:
I've been running python27-mod_wsgi 4.2.4 with apache 2.2.3 to host a
Django app running within a virtualenv with no problems for some time
now but recently it has started to segfault constantly when trying to
load the python interpreter with a message like: child pid 12574 exit
signal Segmentation fault (11).
I dumped the core and extracted the following from gdb but am at a
loss at this point. I've read through
https://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions#Apache_Process_Crashes
but haven't had any success applying those fixes yet - httpd is loaded
with expat 1.95.8 and my virtualenv python is running 2.0.1 but I
didn't encounter a segfault when running:
(in-virtualenv) % LD_PRELOAD=/lib64/libexpat.so.0 python
Python 2.7.7 (default, Jun 4 2014, 17:09:35)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyexpat
>>> pyexpat.version_info
(1, 95, 8)
>>>
Results of gdb /usr/sbin/httpd /path/to/core.dump:
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff1dffd000
Core was generated by `/usr/sbin/httpd'.
Program terminated with signal 11, Segmentation fault.
#0 0x00002aed3f67ef40 in strlen () from /lib64/libc.so.6
(gdb) where
#0 0x00002aed3f67ef40 in strlen () from /lib64/libc.so.6
#1 0x00002aed4a24e43b in PyString_FromString () from /usr/lib64/libpython2.7.so.1.0
#2 0x00002aed49f8124b in ?? ()
#3 0x00002aed00005168 in ?? ()
#4 0x00002aed49f97190 in ?? ()
#5 0x00002aed4a552e00 in ?? () from /usr/lib64/libpython2.7.so.1.0
#6 0x00000000ffffffff in ?? ()
#7 0x00002aed49f97190 in ?? ()
#8 0x00002aed3d826cf0 in ?? ()
#9 0x00002aed4a1a0b98 in ?? ()
#10 0x0000000000000001 in ?? ()
#11 0x00002aed3d826cf0 in ?? ()
#12 0x0000000000000000 in ?? ()
(gdb)
# httpd -V
Server version: Apache/2.2.3
Server built: Mar 26 2014 08:47:55
Server's Module Magic Number: 20051115:3
Server loaded: APR 1.5.0, APR-Util 1.5.3
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="run/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Please let me know if you need any additional information, and I'd
appreciate any thoughts as to why this might be happening..
To manage notifications about this bug go to:
https://bugs.launchpad.net/ius/+bug/1341325/+subscriptions
References