|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44556 ibase_connect() crashes
Submitted: 2008-03-28 09:40 UTC Modified: 2008-08-13 19:01 UTC
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:3 (75.0%)
From: shtabnoi at mail dot ru Assigned:
Status: Not a bug Package: InterBase related
PHP Version: 5.2.5 OS: FreeBSD 7.0-RELEASE FreeBSD 7.0
Private report: No CVE-ID: None
 [2008-03-28 09:40 UTC] shtabnoi at mail dot ru
Apache/2.2.6 (FreeBSD) [Fri Mar 28 13:43:17 2008] [notice] child pid 1840 exit signal Segmentation fault (11)
Firebird-2.0.3 runs normally (isq, EMS SQL Manager and so on)
Any php code without ibase_ functions runs normally.

Reproduce code:
class TDB
    var $host;
    var $dbh;
    var $username;
    var $password;
    var $SQL;
    var $rows;
    var $error;
    var $rowcount;
    var $fields;
    function TDB($h,$u,$p)
    function Connect()

Actual result:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x28401100 (LWP 100072)]
0x28be3dff in ThreadData::restoreSpecific () from /usr/local/lib/
(gdb) bt
#0  0x28be3dff in ThreadData::restoreSpecific () from /usr/local/lib/
#1  0x28bf8c5f in return_success () from /usr/local/lib/
#2  0x28c0061a in REM_attach_database () from /usr/local/lib/
#3  0x28bedb1b in isc_attach_database () from /usr/local/lib/
#4  0x288fb44e in _php_ibase_attach_db (args=0xbfbfcc00, len=0xbfbfcbec, largs=0xbfbfcc3c, db=0xbfbfcc54)
    at /tmp/php-5.2.5/ext/interbase/interbase.c:614
#5  0x288fb7da in _php_ibase_connect (ht=Variable "ht" is not available.
) at /tmp/php-5.2.5/ext/interbase/interbase.c:718
#6  0x28aa67dc in zend_do_fcall_common_helper_SPEC (execute_data=0xbfbfcdc0) at zend_vm_execute.h:200
#7  0x28a98f5f in execute (op_array=0x28f1afcc) at zend_vm_execute.h:92
#8  0x28aa624b in zend_do_fcall_common_helper_SPEC (execute_data=0xbfbfcfa0) at zend_vm_execute.h:234
#9  0x28a98f5f in execute (op_array=0x28f1abe8) at zend_vm_execute.h:92
#10 0x28aa624b in zend_do_fcall_common_helper_SPEC (execute_data=0xbfbfd310) at zend_vm_execute.h:234
#11 0x28a98f5f in execute (op_array=0x28f17c80) at zend_vm_execute.h:92
#12 0x28a7c0fa in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /tmp/php-5.2.5/Zend/zend.c:1134
#13 0x28a3cc35 in php_execute_script (primary_file=0xbfbfe8e8) at /tmp/php-5.2.5/main/main.c:2004
#14 0x28af406b in php_handler (r=0x2900c050) at /tmp/php-5.2.5/sapi/apache2handler/sapi_apache2.c:631
#15 0x080743a9 in ap_run_handler ()
#16 0x08077677 in ap_invoke_handler ()
#17 0x080822d0 in ap_process_request ()
#18 0x0807f5fb in ap_process_http_connection ()
#19 0x0807b4c9 in ap_run_process_connection ()
#20 0x08086577 in child_main ()
#21 0x08086843 in make_child ()
#22 0x080873f1 in ap_mpm_run ()
#23 0x08061fa5 in main ()


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-02 09:59 UTC] shtabnoi at mail dot ru
Segmentation fault doesn't depend on installation type of apache, php and firebird - whenether they are installed from source or package.
Changing OS version package like here: does the same result.
 [2008-04-07 09:09 UTC] roman dot demenkov at gmail dot com
I got same problem with FreeBSD 7.0 release + latest ports Apache (or nginx), PHP, Firebird.
Problem is in firebird2-client-2.0.2 port. If you take client version from 6.3 package tree:
then link some missing links in /usr/lib/ then php got work! =)

Now have (all from port tree):
nginx-devel-0.6.29 as webserver, apache will work also, im sure
firebird-server-2.0.3_1 (or firebird-server-2.0.3_2 tested both)
firebird-client-2.0.3_1 from pakage FreeBSD 6.3 (link above)

So i hope port submiter on FreeBSD will fix soon this problem.
Good luck.
 [2008-08-13 19:01 UTC]
3rd party problem. Not PHP bug -> bogus.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Dec 03 09:03:43 2022 UTC