mod_wsgi crashes with Segmentation Fault in daemon mode

Solution Verified - Updated -

Issue

  • mod_wsgi crashes when configured in daemon mode
  • mod_wsgi gets SegFault when using daemon mode
# gdb /opt/rh/httpd24/root/usr/sbin/httpd  core.7200
(gdb) bt
#0  0x00007f3bb7b01343 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f3bb7ff7480 in apr_poll (aprset=0x7fff54e72350, num=1, nsds=0x7fff54e723a4, timeout=<value optimized out>) at poll/unix/poll.c:120
#2  0x00007f3baccda55b in wsgi_daemon_main (p=0x7f3bbb15f158, daemon=0x7f3bbb227300) at src/server/mod_wsgi.c:8703
#3  0x00007f3baccdd1b1 in wsgi_start_process (p=0x7f3bbb15f158, daemon=0x7f3bbb227300) at src/server/mod_wsgi.c:9411
#4  0x00007f3baccddff5 in wsgi_manage_process (reason=<value optimized out>, data=0x7f3bbb227300, status=<value optimized out>) at src/server/mod_wsgi.c:7353
#5  0x00007f3bb7ff2301 in apr_proc_other_child_alert (proc=<value optimized out>, reason=<value optimized out>, status=<value optimized out>) at misc/unix/otherchild.c:115
#6  0x00007f3baed683b1 in prefork_run (_pconf=<value optimized out>, plog=<value optimized out>, s=<value optimized out>) at prefork.c:1066
#7  0x00007f3bb92947de in ap_run_mpm (pconf=0x7f3bbb15f158, plog=0x7f3bbb18c378, s=0x7f3bbb188340) at mpm_common.c:96
#8  0x00007f3bb928e801 in main (argc=1, argv=0x7fff54e72918) at main.c:777

Environment

  • Red Hat Enterprise Linux
  • Red Hat Software Collections
  • httpd24-httpd-2.4.12-4
  • rh-python34-mod_wsgi-4.4.3-1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content