php.net |  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: 2021-06-20 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: sb at ufds dot dk Assigned: cmb (profile)
Status: No Feedback Package: PDO_IBM (PECL)
PHP Version: 7.0.5 OS: Ubuntu 16.04
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sb at ufds dot dk
New email:
PHP Version: OS:

 

 [2016-04-28 14:26 UTC] sb at ufds dot dk
Description:
------------
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
--TEST--
pdo_ibm: Connect to database
--SKIPIF--
Segmentation fault (core dumped)


Expected result:
----------------
To work :-)

Actual result:
--------------
Segmentation fault (core dumped)


Patches

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

Pull Requests

History

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

ThreadStacktrace:
 .
 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/pdo.so
 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
 [2021-06-08 14:35 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-06-08 14:35 UTC] cmb@php.net
Is this still an issue with the latest PDO_IBM (1.4.1)?
 [2021-06-20 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 13 04:01:26 2024 UTC