Bug #70242 [NEW]: Segmentation fault in mysql driver
| From: | neclimdul at gmail dot com | Date: | Tue, 11 Aug 2015 19:31:24 +0000 |
| Subject: | Bug #70242 [NEW]: Segmentation fault in mysql driver | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-195140@lists.php.net to get a copy of this message | ||
From: neclimdul at gmail dot com
Operating system: linux
PHP version: 7.0Git-2015-08-11 (Git)
Package: MySQL related
Bug Type: Bug
Bug description:Segmentation fault in mysql driver
Description:
------------
compiled against commit: a658465ef2ff7e4
I'm not seeing this in normal site operations but in some of the Drupal
functional tests there are a bunch of database operations going on and a
couple of them are triggering this segmentation fault.
#0 0x00000000005a7654 in pdo_mysql_stmt_dtor (stmt=0x7fffecc48a80)
at /usr/src/php-src/ext/pdo_mysql/mysql_statement.c:93
#1 0x00000000005a3bfa in php_pdo_free_statement (stmt=0x7fffecc48a80)
at /usr/src/php-src/ext/pdo/pdo_stmt.c:2320
#2 0x000000000076def2 in zend_objects_store_del
(object=0x7fffecc48bd0)
at /usr/src/php-src/Zend/zend_objects_API.c:181
#3 0x00000000005fc8fc in spl_dual_it_free_storage
(_object=0x7fffecc78e10)
at /usr/src/php-src/ext/spl/spl_iterators.c:2318
#4 0x000000000076def2 in zend_objects_store_del
(object=0x7fffecc78e10)
at /usr/src/php-src/Zend/zend_objects_API.c:181
#5 0x000000000076904b in i_zval_ptr_dtor (zval_ptr=0x7fffecc02958)
at /usr/src/php-src/Zend/zend_variables.h:57
#6 zend_object_std_dtor (object=0x7fffecc02800)
at /usr/src/php-src/Zend/zend_objects.c:68
#7 0x000000000076db81 in zend_objects_store_free_object_storage
(objects=0x7fffed354cf8,
objects@entry=0xd843f0 <executor_globals+816>)
at /usr/src/php-src/Zend/zend_objects_API.c:102
#8 0x0000000000720803 in shutdown_executor ()
at /usr/src/php-src/Zend/zend_execute_API.c:356
#9 0x000000000072fe9b in zend_deactivate () at
/usr/src/php-src/Zend/zend.c:969
#10 0x00000000006cefd2 in php_request_shutdown (dummy=<optimized out>)
at /usr/src/php-src/main/main.c:1814
#11 0x00000000007cbc04 in do_cli (argc=-315273992, argv=0x7fffed800000)
at /usr/src/php-src/sapi/cli/php_cli.c:1139
#12 0x0000000000433e20 in main (argc=-315273992, argv=0x7fffed800000)
at /usr/src/php-src/sapi/cli/php_cli.c:1338
I haven't yet been able to narrow this to a simple test case.
Config:
./configure \
--prefix=$HOME/tmp/usr \
--with-config-file-path=$HOME/tmp/usr/etc \
--with-config-file-scan-dir=$HOME/tmp/usr/etc/conf.d/ \
--disable-all \
--enable-inline-optimization \
--enable-opcache \
--enable-phar \
--enable-fpm \
--enable-session \
--enable-filter \
--enable-json \
--enable-libxml \
--enable-xml \
--enable-simplexml \
--enable-dom \
--enable-ctype \
--enable-tokenizer \
--enable-mbstring \
--enable-bcmath \
--enable-pcntl \
--enable-ftp \
--enable-exif \
--enable-calendar \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--with-curl \
--enable-hash \
--with-mcrypt \
--with-iconv \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-openssl \
--enable-pdo \
--enable-mysqlnd \
--with-pdo-mysql \
--with-sqlite3=/usr \
--with-pdo-sqlite=/usr \
--with-gettext=/usr \
--enable-zip \
--with-zlib-dir=/usr \
--with-zlib=/usr \
--with-mysqli=$MYSQL_CONFIG \
--with-mysql-sock=/var/run/mysqld/mysqld.sock
Linked against mariadb: 10.0.21+maria-1~vivid
Test script:
---------------
Don't have simple test. Currently using this shell command against the
Drupal test suite.
gdb --args /home/.../tmp/usr/bin/php ./core/scripts/run-tests.sh --url
'http://localhost.local/d8' --sqlite
'./test.sqlite' --dburl
'mysql://user:pass@localhost.local:3306/drupal8' --php
'/home/.../tmp/usr/bin/php' --test-id 1 --color --die-on-fail
--execute-test
'Drupal\aggregator\Tests\Migrate\d6\MigrateAggregatorItemTest'
--
Edit bug report at https://bugs.php.net/bug.php?id=70242&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70242&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70242&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70242&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70242&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70242&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70242&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70242&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70242&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70242&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70242&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70242&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70242&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70242&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70242&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70242&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70242&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70242&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70242&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70242&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70242&r=mysqlcfg