From: etremblay at kronostechnologies dot com Operating system: Kubuntu hardy PHP version: 5.3CVS-2009-07-13 (snap) PHP Bug Type: Reproducible crash Bug description: Segmentation fault in mysqli_stmt_execute
Description: ------------ I'have not yet isolated the problem, but since updating to 5.3.0 (snapshot), some prepared statement cause segmentation fault. Reproduce code: --------------- NOTE : Fields 0 to 4 are php serialized objects. $update_stmt->bind_param('bbbbbs', $bidon, $bidon, $bidon, $bidon, $bidon,$system_name); $update_stmt->send_long_data(0, $serializedFieldRef); $update_stmt->send_long_data(1, $serializedFieldRef2); $update_stmt->send_long_data(2, $serializedFieldRef3); $update_stmt->send_long_data(3, $serializedFieldRef4); $update_stmt->send_long_data(4, $serializedSelection); $update_stmt->execute(); Expected result: ---------------- The query is executed Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb74589f0 (LWP 16404)] 0x0828a9f7 in php_mysqli_stmt_copy_it (copies=0xbfeb9540, original=0x0, param_count=6, current=0) at /opt/php5.3-200907131830/ext/mysqli/mysqli_api.c:706 706 *(*copies)[current] = *original; (gdb) bt #0 0x0828a9f7 in php_mysqli_stmt_copy_it (copies=0xbfeb9540, original=0x0, param_count=6, current=0) at /opt/php5.3-200907131830/ext/mysqli/mysqli_api.c:706 #1 0x0828abb4 in zif_mysqli_stmt_execute (ht=0, return_value=0xce3fd30, return_value_ptr=0x0, this_ptr=0xce3ca90, return_value_used=0) at /opt/php5.3-200907131830/ext/mysqli/mysqli_api.c:736 #2 0x084d1a4a in zend_do_fcall_common_helper_SPEC (execute_data=0xa266414) at /opt/php5.3-200907131830/Zend/zend_vm_execute.h:313 #3 0x084d2650 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0xa266414) at /opt/php5.3-200907131830/Zend/zend_vm_execute.h:422 #4 0x084d0eba in execute (op_array=0xa24f678) at /opt/php5.3-200907131830/Zend/zend_vm_execute.h:104 #5 0x084a6520 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /opt/php5.3-200907131830/Zend/zend.c:1188 #6 0x0843c30f in php_execute_script (primary_file=0xbfebb9c4) at /opt/php5.3-200907131830/main/main.c:2212 #7 0x085668d5 in main (argc=7, argv=0xbfebbb34) at /opt/php5.3-200907131830/sapi/cli/php_cli.c:1188 -- Edit bug report at http://bugs.php.net/?id=48909&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48909&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48909&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48909&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48909&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48909&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48909&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48909&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48909&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48909&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48909&r=support Expected behavior: http://bugs.php.net/fix.php?id=48909&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48909&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48909&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48909&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48909&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48909&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48909&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48909&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48909&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48909&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48909&r=mysqlcfg