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: -
From: matthias at binarypark dot org Assigned:
Status: Open Package: PDO_IBM (PECL)
PHP Version: 7.0.12 OS: Ubuntu 16.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Nov 12 23:01:34 2019 UTC