Bug #73021 [NEW]: SIGSEGV updating a large BLOB field

From: Date: Mon, 05 Sep 2016 16:39:05 +0000
Subject: Bug #73021 [NEW]: SIGSEGV updating a large BLOB field
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203810@lists.php.net to get a copy of this message
From: dorin dot marcoci at gmail dot com Operating system: Debian Linux 8.5 PHP version: Irrelevant Package: PDO Firebird Bug Type: Bug Bug description:SIGSEGV updating a large BLOB field Description: ------------ PDO Driver fails when updating a blob field with a large string content. Our test show SIGSEGV happens from about 92000 chars filled in blob parameter by $Statement->bindValue($Name, $Value); Some facts: - Error is raised in Execute, not in BindValue - Records in database are updated DB Field is declared as: Firebird 2.5.5 BLOB SUB_TYPE 1 SEGMENT SIZE 100 CHARACTER SET UTF8 COLLATE UTF8 Script is striped down from our code. Always reproducible. Test script: --------------- <?php $D = [ 'kind' => 'firebird', 'host' => '10.10.10.IP', 'port' => 3050, 'base' => 'database', 'charset' => 'utf8', 'user' => 'SYSDBA', 'password' => 'password here', 'options' => [] ]; $H = $D['kind'].':host='.$D['host'].';port='.$D['port'].';dbname='.$D['base'].';charset='.$D['charset']; $C = new \PDO($H, $D['user'], $D['password'], $D['options']); if (!$S = $C->prepare('update ta_table set description = :description where id = 370')) return false; $S->bindValue('description', str_repeat('a', 100000)); if (!$S->execute()) return false; return true; Actual result: -------------- [05-Sep-2016 19:33:32] WARNING: [pool www] child 6612 exited on signal 11 (SIGSEGV) after 0.444558 seconds from start -- Edit bug report at https://bugs.php.net/bug.php?id=73021&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73021&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73021&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73021&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73021&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73021&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73021&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73021&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73021&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73021&r=support Expected behavior: https://bugs.php.net/fix.php?id=73021&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73021&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73021&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73021&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73021&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73021&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73021&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73021&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73021&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73021&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73021&r=mysqlcfg

« previous php.bugs (#203810) next »