ID:               44556
 Updated by:       [EMAIL PROTECTED]
 Reported By:      shtabnoi at mail dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         InterBase related
 Operating System: FreeBSD  7.0-RELEASE FreeBSD 7.0
 PHP Version:      5.2.5
 New Comment:

3rd party problem. Not PHP bug -> bogus.


Previous Comments:
------------------------------------------------------------------------

[2008-04-07 09:09:05] 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:
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/databases/firebird-client-2.0.3_1.tbz
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
php5-5.2.5
php5-interbase-5.2.5
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-04-02 09:59:28] 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:
http://bugs.php.net/bug.php?id=43388 does the same result.

------------------------------------------------------------------------

[2008-03-28 09:40:17] shtabnoi at mail dot ru

Description:
------------
ibase_connect
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)
        {
            $this->host=$h;
            $this->username=$u;
            $this->password=$p;
            $this->dbh=$this->Connect();
        }
    function Connect()
        {
           
$this->dbh=ibase_connect($this->host,$this->username,$this->password);
        }


Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x28401100 (LWP 100072)]
0x28be3dff in ThreadData::restoreSpecific () from
/usr/local/lib/libfbclient.so.2
(gdb)
(gdb) bt
#0  0x28be3dff in ThreadData::restoreSpecific () from
/usr/local/lib/libfbclient.so.2
#1  0x28bf8c5f in return_success () from
/usr/local/lib/libfbclient.so.2
#2  0x28c0061a in REM_attach_database () from
/usr/local/lib/libfbclient.so.2
#3  0x28bedb1b in isc_attach_database () from
/usr/local/lib/libfbclient.so.2
#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 ()



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44556&edit=1

Reply via email to