Core dumps

Discussion in 'Bug Reports' started by amerm, Mar 1, 2011.

  1. amerm

    amerm New Member

    Hello,
    any body knows how/where dump files from litespeed will be created?
    I have my public_html directory full of files named core.(some random numbers).
    and I made sure that I disabled core dump.

    very weird.
  2. mistwang

    mistwang LiteSpeed Staff

    Likely produced by PHP processes. better check it with GDB to find out what causing it.

    yum install gdb
    gdb /usr/local/lsws/fcgi-bin/lsphp5 <core_file_name>
    bt

    maybe submit a bug report to PHP group.
    If "LSAPI_ALLOW_CORE_DUMP" is set for lsphp5 external app, you can remove it, it can prevent core files from PHP, however, it is better to find out what is the root cause and fix it.
  3. amerm

    amerm New Member

    here is the out put, which I frankly don't know what does it mean.

    GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.2)
    Copyright (C) 2009 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-redhat-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /usr/local/lsws/fcgi-bin/lsphp5...done.
    Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libcrypt.so.1
    Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/librt.so.1
    Reading symbols from /usr/lib64/libmcrypt.so.4...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libmcrypt.so.4
    Reading symbols from /usr/lib64/libgd.so.2...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libgd.so.2
    Reading symbols from /usr/lib64/libcurl.so.3...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libcurl.so.3
    Reading symbols from /usr/lib64/libz.so.1...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libz.so.1
    Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libm.so.6
    Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libdl.so.2
    Reading symbols from /lib64/libnsl.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libnsl.so.1
    Reading symbols from /usr/lib64/libxml2.so.2...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libxml2.so.2
    Reading symbols from /usr/lib64/mysql/libmysqlclient.so.16...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/mysql/libmysqlclient.so.16
    Reading symbols from /lib64/libssl.so.6...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libssl.so.6
    Reading symbols from /lib64/libcrypto.so.6...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libcrypto.so.6
    Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libc.so.6
    Reading symbols from /lib64/libresolv.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libresolv.so.2
    Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libpthread.so.0
    Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/ld-linux-x86-64.so.2
    Reading symbols from /usr/lib64/libXpm.so.4...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libXpm.so.4
    Reading symbols from /usr/lib64/libX11.so.6...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libX11.so.6
    Reading symbols from /usr/lib64/libjpeg.so.62...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libjpeg.so.62
    Reading symbols from /usr/lib64/libfontconfig.so.1...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libfontconfig.so.1
    Reading symbols from /usr/lib64/libfreetype.so.6...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libfreetype.so.6
    Reading symbols from /usr/lib64/libpng12.so.0...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libpng12.so.0
    Reading symbols from /usr/lib64/libgssapi_krb5.so.2...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libgssapi_krb5.so.2
    Reading symbols from /usr/lib64/libkrb5.so.3...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libkrb5.so.3
    Reading symbols from /usr/lib64/libk5crypto.so.3...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libk5crypto.so.3
    Reading symbols from /lib64/libcom_err.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libcom_err.so.2
    Reading symbols from /usr/lib64/libidn.so.11...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libidn.so.11
    Reading symbols from /usr/lib64/libXau.so.6...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libXau.so.6
    Reading symbols from /usr/lib64/libXdmcp.so.6...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libXdmcp.so.6
    Reading symbols from /lib64/libexpat.so.0...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libexpat.so.0
    Reading symbols from /usr/lib64/libkrb5support.so.0...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libkrb5support.so.0
    Reading symbols from /lib64/libkeyutils.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libkeyutils.so.1
    Reading symbols from /lib64/libselinux.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libselinux.so.1
    Reading symbols from /lib64/libsepol.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libsepol.so.1
    Reading symbols from /usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so...done.
    Loaded symbols for /usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so
    Reading symbols from /usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626/memcache.so...done.
    Loaded symbols for /usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626/memcache.so
    Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libnss_files.so.2
    Core was generated by `lsphp5:'.
    Program terminated with signal 7, Bus error.
    #0 lex_scan (zendlval=0x7fff8914b548)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_language_scanner.c:2063
    2063 switch (yych) {
  4. mistwang

    mistwang LiteSpeed Staff

    use GDB "bt" command to get the full stack trace.
  5. amerm

    amerm New Member

    #0 0x00000000006b4db4 in lex_scan (zendlval=0x7fff8914aed8)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_language_scanner.c:2446
    #1 0x00000000006c5c9d in zendlex (zendlval=0x7fff8914aed0)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_compile.c:4949
    #2 0x00000000006af384 in zendparse ()
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_language_parser.c:3280
    #3 0x00000000006b39c8 in compile_file (file_handle=0x7fff8914b1b0, type=2)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_language_scanner.c:359
    #4 0x0000000000599361 in phar_compile_file (file_handle=0x7fff8914b1b0,
    type=2) at /usr/local/lsws/phpbuild/php-5.3.5/ext/phar/phar.c:3393
    #5 0x00000000006b35a4 in compile_filename (type=2, filename=0x2079c238)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_language_scanner.c:402
    #6 0x0000000000720dc6 in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER (
    execute_data=0x1e22b930)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_vm_execute.h:22475
    #7 0x00000000007012bc in execute (op_array=0x1df3e438)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_vm_execute.h:107
    #8 0x00000000006d3fbf in zend_call_function (fci=0x7fff8914b530,
    fci_cache=0x7fff8914b580)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_execute_API.c:964
    #9 0x00000000006f3bb1 in zend_call_method (object_pp=0x1df44910,
    obj_ce=0x1df2fb80, fn_proxy=0x1df44908,
    ---Type <return> to continue, or q <return> to quit---
    ", function_name_len=51, retval_ptr_ptr=0x7fff8914b680, param_count=1,
    arg1=0x20794ee0, arg2=0x0)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_interfaces.c:97
    #10 0x00000000005c5438 in zif_spl_autoload_call (ht=<value optimized out>,
    return_value=<value optimized out>,
    return_value_ptr=<value optimized out>, this_ptr=<value optimized out>,
    return_value_used=<value optimized out>)
    at /usr/local/lsws/phpbuild/php-5.3.5/ext/spl/php_spl.c:405
    #11 0x00000000006d4087 in zend_call_function (fci=0x7fff8914b890,
    fci_cache=0x7fff8914b8e0)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_execute_API.c:986
    #12 0x00000000006d476c in zend_lookup_class_ex (
    name=0x2078df70 "Mage_Core_Block_Abstract", name_length=24,
    use_autoload=<value optimized out>, ce=0x7fff8914b998)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_execute_API.c:1121
    #13 0x00000000006d491d in zend_fetch_class (
    class_name=0x2078df70 "Mage_Core_Block_Abstract", class_name_len=24,
    fetch_type=4)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_execute_API.c:1563
    #14 0x00000000006ffc55 in ZEND_FETCH_CLASS_SPEC_CONST_HANDLER (
    execute_data=0x1e22b7d8)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_vm_execute.h:727
    #15 0x00000000007012bc in execute (op_array=0x20fe50b0)
    ---Type <return> to continue, or q <return> to quit---
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_vm_execute.h:107
    #16 0x00000000006d3fbf in zend_call_function (fci=0x7fff8914bba0,
    fci_cache=0x7fff8914bbf0)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_execute_API.c:964
    #17 0x00000000006f3bb1 in zend_call_method (object_pp=0x1df44910,
    obj_ce=0x1df2fb80, fn_proxy=0x1df44908,
    function_name=0x1dd92790 "aitoc_aitsys_model_rewriter_autoload::autoload\004", function_name_len=51, retval_ptr_ptr=0x7fff8914bcf0, param_count=1,
    arg1=0x20766e28, arg2=0x0)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_interfaces.c:97
    #18 0x00000000005c5438 in zif_spl_autoload_call (ht=<value optimized out>,
    return_value=<value optimized out>,
    return_value_ptr=<value optimized out>, this_ptr=<value optimized out>,
    return_value_used=<value optimized out>)
    at /usr/local/lsws/phpbuild/php-5.3.5/ext/spl/php_spl.c:405
    #19 0x00000000006d4087 in zend_call_function (fci=0x7fff8914bf00,
    fci_cache=0x7fff8914bf50)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_execute_API.c:986
    #20 0x00000000006d476c in zend_lookup_class_ex (
    name=0x2078aaa0 "Mage_Core_Block_Template", name_length=24,
    use_autoload=<value optimized out>, ce=0x7fff8914c008)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_execute_API.c:1121
    #21 0x00000000006d491d in zend_fetch_class (
    ---Type <return> to continue, or q <return> to quit---
    class_name=0x2078aaa0 "Mage_Core_Block_Template", class_name_len=24,
    fetch_type=4)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_execute_API.c:1563
    #22 0x000000000070172f in ZEND_FETCH_CLASS_SPEC_CV_HANDLER (
    execute_data=0x1e22ad80)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_vm_execute.h:1146
    #23 0x00000000007012bc in execute (op_array=0x1e776070)
    at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend_vm_execute.h:107
    #24 0x00000000006dea3d in zend_execute_scripts (type=8, retval=0x0,
    file_count=3) at /usr/local/lsws/phpbuild/php-5.3.5/Zend/zend.c:1194
    #25 0x000000000068e6ad in php_execute_script (primary_file=0x7fff8914e500)
    at /usr/local/lsws/phpbuild/php-5.3.5/main/main.c:2265
    #26 0x0000000000762847 in lsapi_execute_script (
    show_source=<value optimized out>)
    at /usr/local/lsws/phpbuild/php-5.3.5/sapi/litespeed/lsapi_main.c:502
    #27 lsapi_module_main (show_source=<value optimized out>)
    at /usr/local/lsws/phpbuild/php-5.3.5/sapi/litespeed/lsapi_main.c:551
    #28 0x0000000000762c61 in processReq ()
    at /usr/local/lsws/phpbuild/php-5.3.5/sapi/litespeed/lsapi_main.c:606
    #29 0x0000000000762ed5 in main (argc=1, argv=0x7fff8914e828)
    at /usr/local/lsws/phpbuild/php-5.3.5/sapi/litespeed/lsapi_main.c:988
  6. mistwang

    mistwang LiteSpeed Staff

    You should report this problem to PHP group, bugs.php.net . call stack back trace should be helpful.
    And, you can try downgrade PHP to 5.3.4 or 5.2.17.
  7. amerm

    amerm New Member

    how do I get to know what options are currently compiled in php? so I won't lose the current options
    Last edited: Mar 2, 2011
  8. mistwang

    mistwang LiteSpeed Staff

    check phpinfo() output.
  9. amerm

    amerm New Member

    Hello,
    I've disabled it from external app. set to 0
    but it still generates massive amount of core files.
    how can i disable it?
  10. mistwang

    mistwang LiteSpeed Staff

    remove it from environment. Again, it does not fix the problem in PHP engine, just prevent the core dump files from producing. Better switch to a PHP version does not have this problem.
  11. amerm

    amerm New Member

    I couldn't recompile, whenever I recompile my application doesnt work.
    I used the options in phpinfo page and I missed some extensions like PDO_mysql and lost the php.ini custom config. and still didn't work (im running magento).
    I went to the compile option in the admin panel, and then I chose "Use Configuration from previous build" and didn't work too..
  12. mistwang

    mistwang LiteSpeed Staff

Share This Page