ID: 51043 Updated by: [email protected] Reported By: php at lokedupont dot info -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: OS X Snow leopard PHP Version: 5.3.1 -Assigned To: +Assigned To: stas New Comment:
Try to catch where it crashed in ZF and write a script to reproduce the same situation. Or try to convince the ZF developers to figure out why it crashes. But using the ZF to fix a crash is not smtg we can do. Assigned to Stas so he can ping the ZF guys if necessary. Previous Comments: ------------------------------------------------------------------------ [2010-02-14 19:41:17] php at lokedupont dot info I am not sure how to reproduce it without the zend framework. As i have only experienced it using this. If you have any ideas please let me know. Meanwhile i'll see if i can provoke it some other way. But i haven't yet seen anything else fail. ------------------------------------------------------------------------ [2010-02-14 12:33:49] [email protected] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2010-02-14 12:22:13] php at lokedupont dot info I am also seeing the same issue with the code on 5.2.12 on FreeBSD using the Zend Framework 1.10.1 ------------------------------------------------------------------------ [2010-02-14 00:28:22] php at lokedupont dot info Description: ------------ apache crashes on a return statement in php5 uwing Zend Framework 1.10 on the following line: return $dbSelect; If this line is removed, no creashes are experienced. Reproduce code: --------------- The function in which the line resides protected function _authenticateCreateSelect() { [UNRELATED CODE REMOVED] // get select $dbSelect = clone $this->getDbSelect(); $dbSelect->from($this->_tableName, array('*', $credentialExpression)) ->where($this->_zendDb->quoteIdentifier($this->_identityColumn, true) . ' = ?', $this->_identity); return $dbSelect; } This is part of Zend Auth Adapter DbTable in Zend Framework. Expected result: ---------------- Working auth using Zend Framework Actual result: -------------- Blank page returned. [Sun Feb 14 01:20:39 2010] [notice] child pid 73195 exit signal Segmentation fault (11) in apaches logfiles. Backtrace: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x0000000000000000 0x00000001011acf85 in _zend_mm_free_int () (gdb) bt #0 0x00000001011acf85 in _zend_mm_free_int () #1 0x00000001011ee213 in zend_std_write_property () #2 0x000000010123144f in zend_assign_to_object () #3 0x0000000101231ccd in ZEND_ASSIGN_OBJ_SPEC_UNUSED_CONST_HANDLER () #4 0x00000001011f0adb in execute () #5 0x00000001011c119c in zend_call_function () #6 0x00000001011e33c9 in zend_call_method () #7 0x00000001011ec0d8 in zend_std_cast_object_tostring () #8 0x0000000101210f92 in ZEND_ECHO_SPEC_VAR_HANDLER () #9 0x00000001011f0adb in execute () #10 0x00000001011cc5eb in zend_execute_scripts () #11 0x00000001011758ff in php_execute_script () #12 0x000000010125b64c in php_handler () #13 0x000000010000149b in ap_run_handler () #14 0x000000010000331a in ap_invoke_handler () #15 0x0000000100024d28 in ap_process_request () #16 0x0000000100021998 in ap_process_http_connection () #17 0x000000010000ebeb in ap_run_process_connection () #18 0x00000001000295bd in child_main () #19 0x00000001000297df in make_child () #20 0x000000010002a469 in ap_mpm_run () #21 0x0000000100007e58 in main () (gdb) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=51043&edit=1
