DX Application Performance Management

  • 1.  PHP Agent - Segmentation fault

    Posted Oct 04, 2018 09:01 AM

    After installation of PHP agent I'm getting segfault errors in "/var/log/messages" and core dumps from php process.

    Am I doing something wrong or my environment is not supported? Please help.

     

    One line from messages log:

    Oct  4 14:03:57 ispa-node2t kernel: php-fpm[19645]: segfault at 0 ip 00007fea1a8a9c31 sp 00007fffcd44a598 error 4 in libc-2.17.so[7fea1a823000+1b8000]

     

    Output from gdb command for core ...

     

    #0  0x00007fa6fb1111f7 in raise () from /lib64/libc.so.6

    #1  0x00007fa6fb1128e8 in abort () from /lib64/libc.so.6

    #2  0x00007fa6fb150f47 in __libc_message () from /lib64/libc.so.6

    #3  0x00007fa6fb156b54 in malloc_printerr () from /lib64/libc.so.6

    #4  0x00007fa6fb159df7 in _int_malloc () from /lib64/libc.so.6

    #5  0x00007fa6fb15c10c in malloc () from /lib64/libc.so.6

    #6  0x00007fa6fd5fa1bd in operator new(unsigned long) () from /lib64/libstdc++.so.6

    #7  0x00007fa6fd658cf9 in std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) () from /lib64/libstdc++.so.6

    #8  0x00007fa6fd65990b in std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) () from /lib64/libstdc++.so.6

    #9  0x00007fa6fd6599b4 in std::string::reserve(unsigned long) () from /lib64/libstdc++.so.6

    #10 0x00007fa6fd659c1f in std::string::append(char const*, unsigned long) () from /lib64/libstdc++.so.6

    #11 0x00007fa6e2ba1ced in SingleProcessLogger::log(LogLevel, char const*, char*) () from /usr/lib64/php/modules/wily_php_agent.so

    #12 0x00007fa6e2b8dd00 in logInfo () from /usr/lib64/php/modules/wily_php_agent.so

    #13 0x00007fa6e2b82def in wilyPhpAgentJoinSingleThread () from /usr/lib64/php/modules/wily_php_agent.so

    #14 0x00007fa6e2b82eef in wilyPhpAgentJoinThread () from /usr/lib64/php/modules/wily_php_agent.so

    #15 0x00007fa6e2b7f4c4 in zm_shutdown_wily_php_agent () from /usr/lib64/php/modules/wily_php_agent.so

    #16 0x00005617e2fb6047 in module_destructor ()

    #17 0x00005617e2fad92c in module_destructor_zval ()

    #18 0x00005617e2fc1768 in zend_hash_graceful_reverse_destroy ()

    #19 0x00005617e2faf245 in zend_shutdown ()

    #20 0x00005617e2f4c6eb in php_module_shutdown ()

    #21 0x00005617e2de0fc5 in main ()

     

    My environment is:

    RHEL 7.4

    PHP Version => 7.1.20 (php-fpm)

    PHP Agent, CA APM 10.7 SP2

     

     

    Thanks,

    Marko



  • 2.  Re: PHP Agent - Segmentation fault

    Broadcom Employee
    Posted Oct 04, 2018 10:57 AM

    Can someone make suggestions to Marko for next steps. 



  • 3.  Re: PHP Agent - Segmentation fault
    Best Answer

    Broadcom Employee
    Posted Oct 04, 2018 05:37 PM

    Hi Marko,

    PHP 7.1 is supported per PCM

    PCM for CA Software - Agile Operations Product Compatibility Search 

    However php-fpm seems to be the FastCGI Process Manager and fast-cgi mode is not supported

    The PCM notes state

    Notes on Agent apm10.7.x => PHP
    On Apache 2.2.x WebServer.
    PHP Agent only supports Apache Module (mod-php) scripts on the server. php-cli and fast-cgi mode are not supported.

     

    Regards,

     

    Lynn



  • 4.  Re: PHP Agent - Segmentation fault

    Broadcom Employee


  • 5.  Re: PHP Agent - Segmentation fault

    Broadcom Employee
    Posted Nov 20, 2018 04:34 AM

    Thank You for information.