The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Segfaults with eaccelerator and php 5.4.38 (EasyApache 3.28.4)

Discussion in 'EasyApache' started by dan_haworth, Mar 12, 2015.

  1. dan_haworth

    dan_haworth Registered

    Joined:
    Jan 20, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Guys,

    After doing an Apache rebuild this morning through EasyApache 3.38.4 we've noticed Apache processes segfaulting an awful lot. I got the following backtrace from one of the faults (included at the end) which seems to indicate the fault lies within php and I had the sneaking suspicion it could be opcache based.

    I cleared out old cache from /tmp/eaccelerator which seemed to alleviate the issues somewhat (but not completely) however disabling eAccelerator entirely made the problem vanish. Playing around with some of the configuration seems to indicate that having eaccelerater.optimizer enabled was the cause of these segfaults. Everything is fine with optimisations off but starts segfaulting when enabled.

    Has anyone seen similar behaviour in this configuration recently? Especially since the 5.4.38 update? I fear that eAccelerator just doesn't play nicely with the latest version of PHP (and looking through the EasyApache changelog this wouldn't be the first time either).

    Hope someone can help, many thanks in advance,

    Dan

    -- backtrace follows --

    Program received signal SIGSEGV, Segmentation fault.
    0x00002b7e0f9da59f in do_bind_function (op_array=<value optimized out>, opline=<value optimized out>, function_table=0x15aaa2b0, compile_time=0 '\000')
    at /home/cpeasyapache/src/php-5.4.38/Zend/zend_compile.c:4266
    4266 (*function->op_array.refcount)++;
    (gdb) bt
    #0 0x00002b7e0f9da59f in do_bind_function (op_array=<value optimized out>, opline=<value optimized out>, function_table=0x15aaa2b0, compile_time=0 '\000')
    at /home/cpeasyapache/src/php-5.4.38/Zend/zend_compile.c:4266
    #1 0x00002b7e0fa257a0 in ZEND_DECLARE_FUNCTION_SPEC_HANDLER (execute_data=0x2b7e115f8150) at /home/cpeasyapache/src/php-5.4.38/Zend/zend_vm_execute.h:965
    #2 0x00002b7e0fa2e990 in execute (op_array=0x2b7e1162e050) at /home/cpeasyapache/src/php-5.4.38/Zend/zend_vm_execute.h:410
    #3 0x00002b7e14fb23e6 in zend_oe () from /usr/local/Zend/lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so
    #4 0x00002b7e0fa4f67a in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER (execute_data=0x2b7e115f4358) at /home/cpeasyapache/src/php-5.4.38/Zend/zend_vm_execute.h:27484
    #5 0x00002b7e0fa2e990 in execute (op_array=0x2b7e1162d6a8) at /home/cpeasyapache/src/php-5.4.38/Zend/zend_vm_execute.h:410
    #6 0x00002b7e14fb23e6 in zend_oe () from /usr/local/Zend/lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so
    #7 0x00002b7e0fa45a5a in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (execute_data=0x2b7e115f3fc0) at /home/cpeasyapache/src/php-5.4.38/Zend/zend_vm_execute.h:7080
    #8 0x00002b7e0fa2e990 in execute (op_array=0x2b7e1162cec0) at /home/cpeasyapache/src/php-5.4.38/Zend/zend_vm_execute.h:410
    #9 0x00002b7e14fb23e6 in zend_oe () from /usr/local/Zend/lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so
    #10 0x00002b7e0fa45a5a in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (execute_data=0x2b7e115f34e0) at /home/cpeasyapache/src/php-5.4.38/Zend/zend_vm_execute.h:7080
    #11 0x00002b7e0fa2e990 in execute (op_array=0x2b7e1162c8d0) at /home/cpeasyapache/src/php-5.4.38/Zend/zend_vm_execute.h:410
    #12 0x00002b7e14fb23e6 in zend_oe () from /usr/local/Zend/lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so
    #13 0x00002b7e0fa45a5a in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (execute_data=0x2b7e115f32c8) at /home/cpeasyapache/src/php-5.4.38/Zend/zend_vm_execute.h:7080
    #14 0x00002b7e0fa2e990 in execute (op_array=0x2b7e1162c3f8) at /home/cpeasyapache/src/php-5.4.38/Zend/zend_vm_execute.h:410
    #15 0x00002b7e14fb23e6 in zend_oe () from /usr/local/Zend/lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so
    #16 0x00002b7e0fa45a5a in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (execute_data=0x2b7e115f31b8) at /home/cpeasyapache/src/php-5.4.38/Zend/zend_vm_execute.h:7080
    #17 0x00002b7e0fa2e990 in execute (op_array=0x2b7e1162bc58) at /home/cpeasyapache/src/php-5.4.38/Zend/zend_vm_execute.h:410
    #18 0x00002b7e14fb23e6 in zend_oe () from /usr/local/Zend/lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so
    #19 0x00002b7e0f9f9e2f in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/cpeasyapache/src/php-5.4.38/Zend/zend.c:1329
    #20 0x00002b7e0f99cca8 in php_execute_script (primary_file=0x7ffff9595850) at /home/cpeasyapache/src/php-5.4.38/main/main.c:2502
    #21 0x00002b7e0faa2a1d in php_handler (r=0x15beb038) at /home/cpeasyapache/src/php-5.4.38/sapi/apache2handler/sapi_apache2.c:667
    #22 0x000000000044bfe7 in ap_run_handler ()
    #23 0x000000000044c8b0 in ap_invoke_handler ()
    #24 0x00000000004b7ae5 in ap_internal_redirect ()
    #25 0x00000000004f7b79 in handler_redirect ()
    #26 0x000000000044bfe7 in ap_run_handler ()
    #27 0x000000000044c8b0 in ap_invoke_handler ()
    #28 0x00000000004b6f9a in ap_process_request ()
    #29 0x00000000004b37c5 in ap_process_http_connection ()
    #30 0x0000000000455aa3 in ap_run_process_connection ()
    #31 0x0000000000455f07 in ap_process_connection ()
    #32 0x00000000004f9291 in child_main ()
    #33 0x00000000004f945b in make_child ()
    #34 0x00000000004f96ee in perform_idle_server_maintenance ()
    #35 0x00000000004f9c2d in ap_mpm_run ()
    #36 0x00000000004312fb in main ()
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi Dan,

    We've actually noticed SegFaults with Apache 2.4.12. This is due to an upstream bug caused when a VHost is accessed on port 443 when it does not have a SSL setup. Are you running Apache 2.4.12? Here's the bug report upstream (they've fixed it, just not released it yet): https://issues.apache.org/bugzilla/show_bug.cgi?id=57531
     
  3. dan_haworth

    dan_haworth Registered

    Joined:
    Jan 20, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hey Jacob,

    Thanks for the quick reply :) We're actually on apache 2.2.29 for this particular host so this doesn't appear to be the same issue - indeed the backtraces seem very different in terms of where the fault happens (your post has given me a pointer on another problem we've been seeing this morning though, sounds like the issue so many thanks for that, you've probably just saved me a bunch of investigation time!!).

    I wouldn't say this is a critical issue - we're in the process of migrating to apache 2.4/php 5.5 anyway (as always, customers slow you down...) and we're not noticing any massive performance impacts of turning off EA optimisations.

    More of a "has anyone seen this before? / here's a potential workaround" post ..

    Cheers!

    --dan
     
    #3 dan_haworth, Mar 12, 2015
    Last edited: Mar 12, 2015
Loading...
Similar Threads - Segfaults eaccelerator php
  1. darwin7
    Replies:
    4
    Views:
    354

Share This Page