From: jrbasso at gmail dot com Operating system: Ubunt 12.04.1 PHP version: 5.4.7 Package: PDO related Bug Type: Bug Bug description:Segmentation fault when instantiate 2 persistent PDO to the same db server
Description: ------------ Download the PHP version 5.4.7, compiled with ./configure --enable-debug --with- pdo-mysql --enable-pcntl Run the test script and it gives a segmentation fault when the script finish. If I remove the attribute from PDO2 it works fine. If the persistent option is disabled it works fine too. gdb backtrace available on https://gist.github.com/3bda9d5253e7a86168e0 Test script: --------------- <?php class PDO2 extends PDO { protected $transLevel; } class ModelA { public function __construct() { $this->db = new PDO2('mysql:host=localhost', 'root', 'root', array(PDO::ATTR_PERSISTENT => true)); $this->db->query('SELECT 1')->fetchAll(); } } $a = new ModelA(); $b = new ModelA(); Expected result: ---------------- No segmentation fault Actual result: -------------- Segmentation fault (core dumped) -- Edit bug report at https://bugs.php.net/bug.php?id=63176&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63176&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63176&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63176&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63176&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63176&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63176&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63176&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63176&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63176&r=support Expected behavior: https://bugs.php.net/fix.php?id=63176&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63176&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63176&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63176&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63176&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63176&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63176&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63176&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63176&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63176&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63176&r=mysqlcfg