From: php at lokedupont dot info
Operating system: OS X Snow leopard
PHP version: 5.3.1
PHP Bug Type: Reproducible crash
Bug description: apache crashes on php return statement
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 bug report at http://bugs.php.net/?id=51043&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=51043&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=51043&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=51043&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=51043&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=51043&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=51043&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=51043&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=51043&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=51043&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=51043&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=51043&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=51043&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=51043&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=51043&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51043&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51043&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=51043&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=51043&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=51043&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=51043&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=51043&r=mysqlcfg