Bug #70861 [Opn->Csd]: Segmentation fault in pdo_parse_params() during Drupal 8 test suite

From: Date: Thu, 05 Nov 2015 13:50:04 +0000
Subject: Bug #70861 [Opn->Csd]: Segmentation fault in pdo_parse_params() during Drupal 8 test suite
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197047@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70861&edit=1 ID: 70861 Updated by: ab@php.net Reported by: fabian at tag1consulting dot com Summary: Segmentation fault in pdo_parse_params() during Drupal 8 test suite -Status: Open +Status: Closed Type: Bug Package: PostgreSQL related Operating System: Linux / Ubuntu PHP Version: 7.0Git-2015-11-05 (Git) Block user comment: N Private report: N New Comment: Automatic comment on behalf of ab Revision: http://git.php.net/?p=php-src.git;a=commit;h=5c96a91d77727a7af5604cd9be29a53e3afa2619 Log: Fix bug #70861 Segmentation fault in pdo_parse_params() during Drupal 8 test suite Previous Comments: ------------------------------------------------------------------------ [2015-11-05 13:11:56] fabian at tag1consulting dot com Provided laruence with a box where the bug can easily be reproduced as in the last case. ------------------------------------------------------------------------ [2015-11-05 13:02:10] fabian at tag1consulting dot com 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 this bug report at https://bugs.php.net/bug.php?id=70861&edit=1

« previous php.bugs (#197047) next »