From:             shtabnoi at mail dot ru
Operating system: FreeBSD  7.0-RELEASE FreeBSD 7.0
PHP version:      5.2.5
PHP Bug Type:     InterBase related
Bug description:  PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 28 
2008 21:37:53) Copyri

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 bug report at http://bugs.php.net/?id=44556&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44556&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44556&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44556&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44556&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44556&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44556&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44556&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44556&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44556&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44556&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44556&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44556&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44556&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44556&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44556&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44556&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44556&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44556&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44556&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44556&r=mysqlcfg

Reply via email to