php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73320 SIGSEGV on dbh_connect
Submitted: 2016-10-14 08:13 UTC Modified: 2021-12-14 18:15 UTC
From: matthias at binarypark dot org Assigned: cmb (profile)
Status: Closed Package: *General Issues
PHP Version: 7.0.12 OS: Ubuntu 16.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: matthias at binarypark dot org
New email:
PHP Version: OS:

 

 [2016-10-14 08:13 UTC] matthias at binarypark dot org
Description:
------------
I compiled the extension using include folder(headers) from APPLICATION_DEVELOPMENT_TOOLS_10.5.0.8_linuxamd64_x86_64.tar.gz and lib folder from v10.5fp8_linux64_odbc_cli.tar.gz.

gdb output:
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f3f26b8a5bf in dbh_connect (driver_options=<optimized out>, 
    dbh=<optimized out>) at /opt/ibm/PDO_IBM-1.3.4/ibm_driver.c:987
987					option_num = Z_LVAL(**data);

gdb backtrace:
#0  0x00007f3f26b8a5bf in dbh_connect (driver_options=<optimized out>, 
    dbh=<optimized out>) at /opt/ibm/PDO_IBM-1.3.4/ibm_driver.c:987
#1  ibm_handle_factory (dbh=0x1ee24e0, driver_options=0x7f3f2dcf84a0)
    at /opt/ibm/PDO_IBM-1.3.4/ibm_driver.c:1104
#2  0x00000000005ee9fc in ?? ()
#3  0x00000000007e84b2 in ?? ()
#4  0x00000000007a419b in execute_ex ()
#5  0x00000000007f7907 in zend_execute ()
#6  0x00000000007668b4 in zend_execute_scripts ()
#7  0x000000000070a790 in php_execute_script ()
#8  0x0000000000436cd9 in ?? ()
#9  0x00007f3f31560b45 in __libc_start_main (main=0x435f00, argc=1, 
    argv=0x7ffdb43bd8f8, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7ffdb43bd8e8) at libc-start.c:287
#10 0x0000000000437b14 in _start ()

The changes offered by kaplanlior (https://github.com/php/pecl-database-pdo_ibm/pull/1) made it work on that maschine.

Unfortunately with that changes inside a docker container it the script asks for 128TB of memory to allocate with 128MB available for PHP.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-12-14 18:15 UTC] cmb@php.net
-Status: Open +Status: Closed -Package: PDO_IBM +Package: *General Issues -Assigned To: +Assigned To: cmb
 [2021-12-14 18:15 UTC] cmb@php.net
If this is still an issue with the latest PDO_IBM (1.4.2),
please report it in the package's bugtracker[1].

[1] <https://github.com/php/pecl-database-pdo_ibm/issues>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 12:01:30 2024 UTC