Bug #67083 [Fbk->Opn]: While php was shutdowning, Php had called a yii method then dumped a core

From: Date: Sun, 04 May 2014 07:06:30 +0000
Subject: Bug #67083 [Fbk->Opn]: While php was shutdowning, Php had called a yii method then dumped a core
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185615@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67083&edit=1 ID: 67083 User updated by: zhaoyong dot lc at gmail dot com Reported by: zhaoyong dot lc at gmail dot com Summary: While php was shutdowning, Php had called a yii method then dumped a core -Status: Feedback +Status: Open Type: Bug Package: Reproducible crash Operating System: Redhat2.6.9 x86-64 PHP Version: 5.4.27 Block user comment: N Private report: N New Comment: It couldn't be reproduce simple. Problem could like this, We use php Memcache extension to save session. In this case php has shutdowned and noticed memcache to save session data, however, the key to memcache is empty on mmc_prepare_key_ex function 560 line in memecache.c, then memcahe throw a error by php_error_docref. In this time, the PHP was shutdown, no class can be found, then PHP call Yii::autoload that has been registered for spl_autoload, I think the address for this method is not exists, so core be dumped. Previous Comments: ------------------------------------------------------------------------ [2014-04-29 07:07:45] pajoye@php.net We really need a small script to reproduce the problem, maybe the Yii devs can help? ------------------------------------------------------------------------ [2014-04-29 03:26:17] zhaoyong dot lc at gmail dot com I don't have script now, this happend at times. We use Yii PHP framework, Using Clogger class to note something wrong when php run. I think this is a bug, because php was shutdown, however, PHP find Clogger class to note something, It can't be accomplished. ------------------------------------------------------------------------ [2014-04-16 07:56:11] zhaoyong dot lc at gmail dot com Description: ------------ gdb /home/work/env/apache2/bin/httpd core.httpd.13068.1394772303 (wd: /home/coresave/bak) (gdb) bt #0 0x0000002a95fef030 in zend_fetch_var_address_helper_SPEC_CONST_VAR (type=3, execute_data=0x2a96d922d8) at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend.h:399 #1 0x0000002a95fe427f in execute (op_array=0xa25230) at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend_vm_execute.h:410 #2 0x0000002a95fad401 in zend_call_function (fci=0x7fbfffd620, fci_cache=Variable "fci_cache" is not available. ) at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend_execute_API.c:958 #3 0x0000002a95fd16b9 in zend_call_method (object_pp=0x0, obj_ce=0xa23f40, fn_proxy=0x2aabbe5f00, function_name=0xa34720 "yiibase::autoload", function_name_len=18, retval_ptr_ptr=0x7fbfffd6d0, param_count=56, arg1=0x2a96dc9dc0, arg2=0x0) at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend_interfaces.c:97 #4 0x0000002a95e8caa5 in zif_spl_autoload_call (ht=Variable "ht" is not available. ) at /home/work/sitemap-env/tmp/php-5.4.11/ext/spl/php_spl.c:436 #5 0x0000002a95fad614 in zend_call_function (fci=0x7fbfffd930, fci_cache=0x7fbfffd900) at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend_execute_API.c:980 #6 0x0000002a95fadd75 in zend_lookup_class_ex (name=0x2a9bb945b8 "CLogger", name_length=7, key=0x2a9bf96050, use_autoload=1, ce=0x7fbfffd9e8) at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend_execute_API.c:1127 #7 0x0000002a95faecff in zend_fetch_class_by_name (class_name=0x2a9bb945b8 "CLogger", class_name_len=Variable "class_name_len" is not available. ) at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend_execute_API.c:1607 #8 0x0000002a95febaf3 in ZEND_FETCH_CONSTANT_SPEC_CONST_CONST_HANDLER (execute_data=0x2a96d914d0) at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend_vm_execute.h:3600 #9 0x0000002a95fe427f in execute (op_array=0x2aabb03e30) at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend_vm_execute.h:410 #10 0x0000002a95fad401 in zend_call_function (fci=0x7fbfffdbf0, fci_cache=Variable "fci_cache" is not available. ) at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend_execute_API.c:958 #11 0x0000002a95fad9c0 in call_user_function_ex (function_table=Variable "function_table" is not available. ) at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend_execute_API.c:750 #12 0x0000002a95fbbb7d in zend_error (type=2, format=0x2a964d1286 "%s") at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend.c:1198 #13 0x0000002a95f59b08 in php_verror (docref=0x0, params=0x2a96504900 "", type=2, format=Variable "format" is not available. ) at /home/work/sitemap-env/tmp/php-5.4.11/main/main.c:862 #14 0x0000002a95f59edf in php_error_docref0 (docref=Variable "docref" is not available. ) at /home/work/sitemap-env/tmp/php-5.4.11/main/main.c:874 #15 0x0000002a9a102fa6 in mmc_prepare_key_ex (key=Variable "key" is not available. ) at /tmp/pear/temp/memcache/memcache.c:560 #16 0x0000002a9a1086e0 in ps_write_memcache (mod_data=Variable "mod_data" is not available. ) at /tmp/pear/temp/memcache/memcache_session.c:230 #17 0x0000002a95e3ea06 in php_session_flush () at /home/work/sitemap-env/tmp/php-5.4.11/ext/session/session.c:489 #18 0x0000002a95e3fcf5 in zm_deactivate_session (type=Variable "type" is not available. ) at /home/work/sitemap-env/tmp/php-5.4.11/ext/session/session.c:2144 ---Type <return> to continue, or q <return> to quit--- #19 0x0000002a95fc148f in zend_deactivate_modules () at /home/work/sitemap-env/tmp/php-5.4.11/Zend/zend_API.c:2335 #20 0x0000002a95f5b7b5 in php_request_shutdown (dummy=Variable "dummy" is not available. ) at /home/work/sitemap-env/tmp/php-5.4.11/main/main.c:1769 #21 0x0000002a9605567d in php_handler (r=0x97f790) at /home/work/sitemap-env/tmp/php-5.4.11/sapi/apache2handler/sapi_apache2.c:507 Test script: --------------- I don't have script now, this happend at times. We use Yii PHP framework, Using Clogger class to note something wrong when php run. I think this is a bug, because php was shutdown, however, PHP find Clogger class to note something, It can't be accomplished. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67083&edit=1

« previous php.bugs (#185615) next »