Bug #70861 [NEW]: Segmentation fault in pdo_parse_params() during Drupal 8 test suite

From: Date: Thu, 05 Nov 2015 13:02:13 +0000
Subject: Bug #70861 [NEW]: Segmentation fault in pdo_parse_params() during Drupal 8 test suite
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197045@lists.php.net to get a copy of this message
From: fabian at tag1consulting dot com Operating system: Linux / Ubuntu PHP version: 7.0Git-2015-11-05 (Git) Package: PostgreSQL related Bug Type: Bug Bug description:Segmentation fault in pdo_parse_params() during Drupal 8 test suite Description: ------------ Reproducible with Drupal 8 test suite on PHP-7.0 branch with --with-pdo-pgsql. Just running tests creates the bug. Test script: --------------- 1. Install Drupal 8 2. Setup LAMP to localhost 3. Run: php ./core/scripts/run-tests.sh --sqlite /tmp/coretest.sqlite --dburl pgsql://USER:PASS@localhost/drupal8 --color --non-html --url http://127.0.0.1/ --class 'Drupal\ban\Tests\Migrate\d7\MigrateBlockedIPsTest' Expected result: ---------------- No segfault Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. 0x0000000000757495 in pdo_parse_params (stmt=0x7fffe79cde00, inquery=0x7fffec063400 "INSERT INTO simpletest6174100actions (aid, type, callback, parameters, label) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert"..., inquery_len=1717, outquery=0x7fffe79cde68, outquery_len=0x7fffe79cde70) at ext/pdo/pdo_sql_parser.re:220 220 if (!stmt->dbh->methods->quoter(stmt->dbh, ZSTR_VAL(buf), ZSTR_LEN(buf), &plc->quoted, &plc->qlen, (gdb) bt #0 0x0000000000757495 in pdo_parse_params (stmt=0x7fffe79cde00, inquery=0x7fffec063400 "INSERT INTO simpletest6174100actions (aid, type, callback, parameters, label) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert"..., inquery_len=1717, outquery=0x7fffe79cde68, outquery_len=0x7fffe79cde70) at ext/pdo/pdo_sql_parser.re:220 #1 0x000000000074f5b0 in zim_PDOStatement_execute (execute_data=0x7fffef223160, return_value=0x7fffef2230e0) at /home/ubuntu/php7/php-src/ext/pdo/pdo_stmt.c:495 #2 0x00000000009d568a in ZEND_DO_FCALL_SPEC_HANDLER () at /home/ubuntu/php7/php-src/Zend/zend_vm_execute.h:842 #3 0x00000000009d453e in execute_ex (ex=0x7fffef214030) at /home/ubuntu/php7/php-src/Zend/zend_vm_execute.h:414 #4 0x00000000009d4650 in zend_execute (op_array=0x7fffef29b100, return_value=0x0) at /home/ubuntu/php7/php-src/Zend/zend_vm_execute.h:458 #5 0x0000000000979def in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/ubuntu/php7/php-src/Zend/zend.c:1428 #6 0x00000000008e764a in php_execute_script (primary_file=0x7fffffffd170) at /home/ubuntu/php7/php-src/main/main.c:2471 #7 0x0000000000a387bc in do_cli (argc=15, argv=0x135feb0) at /home/ubuntu/php7/php-src/sapi/cli/php_cli.c:974 #8 0x0000000000a39980 in main (argc=15, argv=0x135feb0) at /home/ubuntu/php7/php-src/sapi/cli/php_cli.c:1345 -- Edit bug report at https://bugs.php.net/bug.php?id=70861&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70861&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70861&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70861&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70861&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70861&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70861&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70861&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70861&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70861&r=support Expected behavior: https://bugs.php.net/fix.php?id=70861&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70861&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70861&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70861&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70861&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70861&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70861&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70861&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70861&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70861&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70861&r=mysqlcfg

« previous php.bugs (#197045) next »