Apache segfaults with mod_perl

Created:

2016-11-16 13:13:52 UTC

Modified:

2017-08-08 13:25:06 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Apache segfaults with mod_perl

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  • Lots of segmentation faults in the error_log for apache 2.4 running mpm_event or mpm_worker
  • mod_perl enabled

  • Coredump analyses shown the following:

    #0 __GI___pthread_mutex_lock (mutex=0x30) at pthread_mutex_lock.c:50
    #1 0x00007fac3745f58a in modperl_tipool_putback_base () from /etc/httpd/modules/mod_perl.so
    #2 0x00007fac3745ecd8 in modperl_interp_unselect () from /etc/httpd/modules/mod_perl.so
    #3 0x00007fac452a41ae in run_cleanups (cref=<optimized out>) at memory/unix/apr_pools.c:2352
    #4 apr_pool_destroy (pool=0x7fabc0011508) at memory/unix/apr_pools.c:814
    #5 0x00007fac465e5b26 in remove_empty_buckets ()
    #6 0x00007fac465e5ec8 in send_brigade_nonblocking ()
    #7 0x00007fac465e6d7a in ap_core_output_filter ()
    #8 0x00007fac3bfc172f in worker_thread () from /etc/httpd/modules/mod_mpm_event.so
    #9 0x00007fac45076dc5 in start_thread (arg=0x7fac247f0700) at pthread_create.c:308
    #10 0x00007fac44b9fced in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Cause

mod_perl is not compatible with Apache 2.4 mpm_event or mpm_worker

Resolution

Switch 'MPM mode' to mpm_prefork or disable mod_perl in Tools & Settings > Apache Web Server Settings

Have more questions? Submit a request
Please sign in to leave a comment.