From:             judas at mailchile dot com
Operating system: SUSE Linux 9.3
PHP version:      5.0.3
PHP Bug Type:     MySQLi related
Bug description:  mysqli crash apache with Segmentation fault

Description:
------------
Trying to run phpmyadmin using the mysqli extension result in a
Segmentation fault.

enabled modules:

ctype,gd,mbstring,mysql,sqlite,dom,gettext,mcrypt,openssl 
xmlrpc,bz2,exif,iconv,mhash,pgsql,xsl,calendar,ftp,ldap    
mysqli,sockets,zlib


Apache version:

apache2-prefork-2.0.53-9

PHP version: 5.0.3

AMD64 arch.


Reproduce code:
---------------
install phpmyadmin (latest stable,or CVS same result)and try to run it
using the mysqli extension.

Expected result:
----------------
apache child should not die.

Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912514400672 (LWP 27386)]
0x00002aaaacc285e0 in zend_object_store_get_object () from
/usr/lib64/apache2/libphp5.so
(gdb) bt
#0  0x00002aaaacc285e0 in zend_object_store_get_object () from
/usr/lib64/apache2/libphp5.so
#1  0x00002aaaafffa824 in php_mysqli_fetch_into_hash () from
/usr/lib64/php5/extensions/mysqli
#2  0x00002aaab00039cf in zif_mysqli_fetch_array () from
/usr/lib64/php5/extensions/mysqli
#3  0x00002aaaacc400f4 in zend_do_fcall_common_helper () from
/usr/lib64/apache2/libphp5.so
#4  0x00002aaaacc40305 in zend_do_fcall_handler () from
/usr/lib64/apache2/libphp5.so
#5  0x00002aaaacc49f66 in execute () from /usr/lib64/apache2/libphp5.so
#6  0x00002aaaacc3fc29 in zend_do_fcall_common_helper () from
/usr/lib64/apache2/libphp5.so
#7  0x00002aaaacc40305 in zend_do_fcall_handler () from
/usr/lib64/apache2/libphp5.so
#8  0x00002aaaacc49f66 in execute () from /usr/lib64/apache2/libphp5.so
#9  0x00002aaaacc3fc29 in zend_do_fcall_common_helper () from
/usr/lib64/apache2/libphp5.so
#10 0x00002aaaacc404f1 in zend_do_fcall_by_name_handler () from
/usr/lib64/apache2/libphp5.so
#11 0x00002aaaacc49f66 in execute () from /usr/lib64/apache2/libphp5.so
#12 0x00002aaaacc3fc29 in zend_do_fcall_common_helper () from
/usr/lib64/apache2/libphp5.so
#13 0x00002aaaacc40305 in zend_do_fcall_handler () from
/usr/lib64/apache2/libphp5.so
#14 0x00002aaaacc49f66 in execute () from /usr/lib64/apache2/libphp5.so
#15 0x00002aaaacc3fc29 in zend_do_fcall_common_helper () from
/usr/lib64/apache2/libphp5.so
#16 0x00002aaaacc404f1 in zend_do_fcall_by_name_handler () from
/usr/lib64/apache2/libphp5.so
#17 0x00002aaaacc49f66 in execute () from /usr/lib64/apache2/libphp5.so
#18 0x00002aaaacc3ae71 in zend_include_or_eval_handler () from
/usr/lib64/apache2/libphp5.so
#19 0x00002aaaacc49f66 in execute () from /usr/lib64/apache2/libphp5.so
#20 0x00002aaaacc11a2d in zend_execute_scripts () from
/usr/lib64/apache2/libphp5.so
#21 0x00002aaaacbd93cf in php_execute_script () from
/usr/lib64/apache2/libphp5.so
#22 0x00002aaaacc4a6f4 in php_ap2_register_hook () from
/usr/lib64/apache2/libphp5.so
#23 0x0000000000427221 in ap_run_handler ()
#24 0x000000000042a249 in ap_invoke_handler ()
#25 0x00000000004250ca in ap_process_request ()
#26 0x000000000041fff8 in _start ()
#27 0x0000000000431431 in ap_run_process_connection ()
#28 0x0000000000431542 in ap_process_connection ()
#29 0x00000000004260f5 in ap_graceful_stop_signalled ()
#30 0x00000000004262b9 in ap_graceful_stop_signalled ()
#31 0x00000000004263a4 in ap_graceful_stop_signalled ()
#32 0x0000000000426a72 in ap_mpm_run ()
#33 0x000000000042cb5f in main ()


-- 
Edit bug report at http://bugs.php.net/?id=33462&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33462&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33462&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33462&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33462&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33462&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33462&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33462&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33462&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33462&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33462&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33462&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33462&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33462&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33462&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33462&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33462&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33462&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33462&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33462&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33462&r=mysqlcfg

Reply via email to