From: bearsite at gmail dot com
Operating system: FreeBSD/amd64 7.0_beta3
PHP version: 5.2.5
PHP Bug Type: InterBase related
Bug description: Segmentaion fault(core dupmed) on ibase_connect()
Description:
------------
It looks like php5 - works fine. Until I try to php5-interbase functions.
# Options for php5-5.2.5
WITH_CLI=true
WITH_CGI=true
WITH_SUHOSIN=true
WITH_MULTIBYTE=true
WITH_FASTCGI=true
WITH_PATHINFO=true
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.
>'OK'
Actual result:
--------------
But every time I get:
>'Segementation fault( core dumped )'
or
>'Segementation fault: 11'
(gdb) bt
#0 0x000000080153abf9 in ThreadData::restoreSpecific () from
/usr/local/lib/libfbclient.so.2
#1 0x000000080154fc19 in error () from /usr/local/lib/libfbclient.so.2
#2 0x0000000801557d66 in REM_attach_database () from
/usr/local/lib/libfbclient.so.2
#3 0x000000080154551b in isc_attach_database () from
/usr/local/lib/libfbclient.so.2
#4 0x000000080140732f in _php_ibase_attach_db () from
/usr/local/lib/php/20060613-debug/interbase.so
#5 0x00000008014078c2 in _php_ibase_connect () from
/usr/local/lib/php/20060613-debug/interbase.so
#6 0x0000000801407b7f in zif_ibase_connect () from
/usr/local/lib/php/20060613-debug/interbase.so
#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
--
Edit bug report at http://bugs.php.net/?id=43388&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=43388&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=43388&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=43388&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=43388&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43388&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=43388&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43388&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43388&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43388&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43388&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43388&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=43388&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=43388&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43388&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43388&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43388&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43388&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43388&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43388&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43388&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43388&r=mysqlcfg