Bug #71371 [NEW]: Segfault using PDO::query() or PDO::execute()
| From: | me at mattbutterworth dot co dot uk | Date: | Thu, 14 Jan 2016 17:25:28 +0000 |
| Subject: | Bug #71371 [NEW]: Segfault using PDO::query() or PDO::execute() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-198651@lists.php.net to get a copy of this message | ||
From: me at mattbutterworth dot co dot uk
Operating system: CentOS 6
PHP version: 5.6.17
Package: PDO ODBC
Bug Type: Bug
Bug description:Segfault using PDO::query() or PDO::execute()
Description:
------------
We are running into a segfault when trying to use PDO ODBC.
PHP version info:
PHP 5.6.16 (cli) (built: Dec 2 2015 10:11:22)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from
ioncube24.com (unconfigured) v5.0.18, Copyright (c) 2002-2015, by
ionCube Ltd.
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend
Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend
Technologies
php test.php
Segmentation fault
BT Provided below.
Test script:
---------------
$dsn =
'odbc:driver=SQLServer;database=***;server=***.***.***.***;port=1433';
$user = '*****';
$password = '****';
try {
$dbh = new \PDO($dsn, $user, $password);
$dbh->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
} catch (\PDOException $e) {
echo 'Connection Failed' . $e->getMessage();
}
// Connection , no exceptions
$sql = "SELECT * FROM mytable";
$dsn->query($sql);
Expected result:
----------------
GDB:
Program received signal SIGSEGV, Segmentation fault.
0x00002aaab260b02b in ?? () from
/opt/alt/php56/usr/lib64/php/modules/pdo.so
(gdb) bt
#0 0x00002aaab260b02b in ?? () from
/opt/alt/php56/usr/lib64/php/modules/pdo.so
#1 0x00000000006867aa in ?? ()
#2 0x00000000006bdcd8 in execute_ex ()
#3 0x00002aaaac1eaf6c in zend_oe () from
/opt/alt/php56/usr/lib64/php/modules/ZendGuardLoader.so
#4 0x000000000064fc6a in zend_execute_scripts ()
#5 0x00000000005f130b in php_execute_script ()
#6 0x00000000006f36bd in ?? ()
#7 0x00000000006f4058 in ?? ()
#8 0x0000003ed141d9f4 in __libc_start_main () from /lib64/libc.so.6
#9 0x00000000004264b9 in _start ()
Actual result:
--------------
GDB:
Program received signal SIGSEGV, Segmentation fault.
0x00002aaab260b02b in ?? () from
/opt/alt/php56/usr/lib64/php/modules/pdo.so
(gdb) bt
#0 0x00002aaab260b02b in ?? () from
/opt/alt/php56/usr/lib64/php/modules/pdo.so
#1 0x00000000006867aa in ?? ()
#2 0x00000000006bdcd8 in execute_ex ()
#3 0x00002aaaac1eaf6c in zend_oe () from
/opt/alt/php56/usr/lib64/php/modules/ZendGuardLoader.so
#4 0x000000000064fc6a in zend_execute_scripts ()
#5 0x00000000005f130b in php_execute_script ()
#6 0x00000000006f36bd in ?? ()
#7 0x00000000006f4058 in ?? ()
#8 0x0000003ed141d9f4 in __libc_start_main () from /lib64/libc.so.6
#9 0x00000000004264b9 in _start ()
--
Edit bug report at https://bugs.php.net/bug.php?id=71371&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71371&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71371&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71371&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71371&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71371&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71371&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71371&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71371&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71371&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71371&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71371&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71371&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71371&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71371&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71371&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71371&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71371&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71371&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71371&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71371&r=mysqlcfg