|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72121 Core dump
Submitted: 2016-04-28 14:26 UTC Modified: 2016-04-29 09:20 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: sb at ufds dot dk Assigned:
Status: Open Package: PDO_IBM (PECL)
PHP Version: 7.0.5 OS: Ubuntu 16.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: sb at ufds dot dk
New email:
PHP Version: OS:


 [2016-04-28 14:26 UTC] sb at ufds dot dk
I have build the package and installed it and run the one of the supplied testcases.

I am using v9.7fp11_linuxx64_dsdriver against a iSeries V7.

The ibm_db2 works fine with the same driver.

Test script:
php tests/fvt_001_DbConn.phpt
pdo_ibm: Connect to database
Segmentation fault (core dumped)

Expected result:
To work :-)

Actual result:
Segmentation fault (core dumped)


ibm_driver.c (last revision 2016-04-29 09:16 UTC by sb at ufds dot dk)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-04-28 14:50 UTC] sb at ufds dot dk
I have some information from the core dump:

 Thread 1 (Thread 0x7fa6997f9740 (LWP 27814)):
 #0  0x00007fa68b9c755f in dbh_connect (driver_options=<optimized out>, dbh=0x7fa695077300) at /home/sb/projects/ufds/pdoibm/ibm_driver.c:987
         _z = 0x7fa69505ca48
         _p = 0x7fa69505ca48
         _end = 0x7fa69505ca68
         i = 0
         opt_key = 0x0
         data = 0x7fa69505ca48
         option_num = 0
         num_idx = 0
         option_str = <optimized out>
         numOpts = <optimized out>
         dsn_length = 0
         u_length = 0
         rc = <optimized out>
         new_dsn = 0x0
         d_length = 0
         p_length = 0
         conn_res = 0x7fa695056a00
 #1  ibm_handle_factory (dbh=0x7fa695077300, driver_options=<optimized out>) at /home/sb/projects/ufds/pdoibm/ibm_driver.c:1104
 No locals.
 #2  0x00007fa69451b24c in ?? () from /usr/lib/php/20151012/
 No symbol table info available.
 #3  0x000055a75b7218ba in dtrace_execute_internal ()
 [2016-04-29 09:20 UTC] sb at ufds dot dk
I have fixed the error. See patch file.
Also on ubuntu 16.04 config.m4 has problems finding php_pdo_driver.h. By adding the following solves the problem.

65 + elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
66 +      pdo_inc_path=$phpincludedir/ext
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Jan 20 07:01:23 2021 UTC