|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43388 Segmentaion fault(core dupmed) on ibase_connect()
Submitted: 2007-11-23 11:15 UTC Modified: 2007-11-29 10:39 UTC
From: bearsite at gmail dot com Assigned:
Status: Closed Package: InterBase related
PHP Version: 5.2.5 OS: FreeBSD/amd64 7.0_beta3
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: bearsite at gmail dot com
New email:
PHP Version: OS:


 [2007-11-23 11:15 UTC] bearsite at gmail dot com
It looks like php5 - works fine. Until I try to php5-interbase functions.
# Options for php5-5.2.5

And php5 compiled only with one extension 'php5-interbase'. No other etnension is used.

Firebird-server running on the same mashine and it looks works fine, I can simple connect and make queries from other mashine.
//firebird-client-2.0.3_1 //firebird-server-2.0.3_1

Reproduce code:
<? $ibdbc = ibase_connect ('localhost:/baza/DB1.GDB', 'SYSDBA', 'masterkey'); 
echo "OK"; 

Expected result:
I expecting to see.

Actual result:
But every time I get: 
>'Segementation fault( core dumped )'
>'Segementation fault: 11'

(gdb) bt
#0  0x000000080153abf9 in ThreadData::restoreSpecific () from /usr/local/lib/
#1  0x000000080154fc19 in error () from /usr/local/lib/
#2  0x0000000801557d66 in REM_attach_database () from /usr/local/lib/
#3  0x000000080154551b in isc_attach_database () from /usr/local/lib/
#4  0x000000080140732f in _php_ibase_attach_db () from /usr/local/lib/php/20060613-debug/
#5  0x00000008014078c2 in _php_ibase_connect () from /usr/local/lib/php/20060613-debug/
#6  0x0000000801407b7f in zif_ibase_connect () from /usr/local/lib/php/20060613-debug/
#7  0x0000000000594c09 in zend_do_fcall_common_helper_SPEC (execute_data=0x7fffffffc7e0) at zend_vm_execute.h:200
#8  0x000000000059afc1 in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x7fffffffc7e0) at zend_vm_execute.h:1681
#9  0x0000000000594697 in execute (op_array=0x801331558) at zend_vm_execute.h:92
#10 0x0000000000594d98 in zend_do_fcall_common_helper_SPEC (execute_data=0x7fffffffd0d0) at zend_vm_execute.h:234
#11 0x00000000005959a5 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x7fffffffd0d0) at zend_vm_execute.h:322
#12 0x0000000000594697 in execute (op_array=0x80132e718) at zend_vm_execute.h:92
#13 0x0000000000569f76 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /usr/ports/lang/php5/work/php-5.2.5/Zend/zend.c:1215
#14 0x000000000050e410 in php_execute_script (primary_file=0x7fffffffea10)
    at /usr/ports/lang/php5/work/php-5.2.5/main/main.c:2025
#15 0x00000000005f0325 in main (argc=2, argv=0x7fffffffeba0) at /usr/ports/lang/php5/work/php-5.2.5/sapi/cli/php_cli.c:1146


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-29 10:39 UTC] bearsite at gmail dot com
I've solve this problem for me. In fact, I think, problem wath in firebird-client2.0.3.
As a solution, I 've replace `` (on my FreeBSD/amd64  7.0_beta3) with a precompiled same file from firebird-client-2.0.3.tbz package for FreeBSD/amd64 6.2STABLE . And than rebuild `php5-interbase` and now everything looks fine.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 13:01:34 2024 UTC