#42942 [NEW]: pdo_pgsql: segfault with multiple rows and prepared statements

From: Date: Fri, 12 Oct 2007 09:14:09 +0000
Subject: #42942 [NEW]: pdo_pgsql: segfault with multiple rows and prepared statements
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118451@lists.php.net to get a copy of this message
From: php at benjaminschulz dot com Operating system: linux PHP version: 5CVS-2007-10-12 (CVS) PHP Bug Type: PDO related Bug description: pdo_pgsql: segfault with multiple rows and prepared statements Description: ------------ Hi, i can't provide reproduce code. All i can say is that i use prepared statements with multiple rows (INSERT .. VALUES (..), (...)) and on a table with huge data php segfaults. If executed with 100 rows per Statement PHP fails with "zend_mm_heap corrupted", this core was created with 20 rows. The rows contain binary data and are all about 1-3mb. Here is the backtrace, i hope it helps: Core was generated by `php -q index.php'. Program terminated with signal 11, Segmentation fault. #0 _zend_mm_free_int (heap=0x85971f8, p=<value optimized out>) at /usr/src/php5/Zend/zend_alloc.c:1932 1932 if (ZEND_MM_IS_FREE_BLOCK(next_block)) { (gdb) bt #0 _zend_mm_free_int (heap=0x85971f8, p=<value optimized out>) at /usr/src/php5/Zend/zend_alloc.c:1932 #1 0x082cecac in zend_hash_destroy (ht=0x876b210) at /usr/src/php5/Zend/zend_hash.c:531 #2 0x082c4ab7 in _zval_dtor_func (zvalue=0x86f6724) at /usr/src/php5/Zend/zend_variables.c:43 #3 0x082b8e09 in _zval_ptr_dtor (zval_ptr=0xbfe86b94) at /usr/src/php5/Zend/zend_variables.h:35 #4 0x082f101a in zend_do_fcall_common_helper_SPEC (execute_data=0xbfe88cc0) at /usr/src/php5/Zend/zend_execute.h:155 #5 0x082e23a8 in execute (op_array=0x869c9e0) at /usr/src/php5/Zend/zend_vm_execute.h:87 #6 0x082c4de4 in zend_execute_scripts (type=8, retval=<value optimized out>, file_count=3) at /usr/src/php5/Zend/zend.c:1134 #7 0x08282d70 in php_execute_script (primary_file=0xbfe8b098) at /usr/src/php5/main/main.c:2006 #8 0x083431d7 in main (argc=3, argv=0xbfe8b1b4) at /usr/src/php5/sapi/cli/php_cli.c:1140 -- Edit bug report at http://bugs.php.net/?id=42942&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42942&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42942&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42942&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42942&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42942&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42942&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42942&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42942&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42942&r=support Expected behavior: http://bugs.php.net/fix.php?id=42942&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42942&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42942&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42942&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42942&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42942&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42942&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42942&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42942&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42942&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42942&r=mysqlcfg

« previous php.bugs (#118451) next »