#36742 [Fbk-Csd]: Segmentation Failed when use ADODB

2006-03-16 Thread eda at vaz dot ru
 ID:   36742
 User updated by:  eda at vaz dot ru
 Reported By:  eda at vaz dot ru
-Status:   Feedback
+Status:   Closed
 Bug Type: Reproducible crash
 Operating System: RedHat AS 4.0 U3 IA64
 PHP Version:  5.1.3RC1
 New Comment:

It is error in php-APC module.
Sorry !


Previous Comments:


[2006-03-15 10:11:11] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ?php and ends with ?,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.





[2006-03-15 10:00:25] eda at vaz dot ru

Description:

Segmentation failed when use ADODB php library. 

Reproduce code:
---
?php
// xdebug_start_trace(/tmp/test5.trace,0);
include('adodb/adodb.inc.php');
$conn = ADONewConnection('informix');
print THE END\n;
?

First http request to HTTPD is OK. 
Next requests is fail.


Actual result:
--
Backtrace of  /usr/sbin/httpd -X


zend_do_inherit_interfaces (ce=0x200808d71f58, iface=Variable
iface is not available.
) at /usr/src/debug/php-5.1.3RC1/Zend/zend_compile.c:2135
2135if (!(ce-ce_flags  ZEND_ACC_INTERFACE) 
iface-interface_gets_implemented 
iface-interface_gets_implemented(iface, ce TSRMLS_CC) == FAILURE) {
(gdb) bt
#0  zend_do_inherit_interfaces (ce=0x200808d71f58, iface=Variable
iface is not available.
) at /usr/src/debug/php-5.1.3RC1/Zend/zend_compile.c:2135
#1  0x200801c4f510 in zend_do_inheritance (ce=0x200808d71f58,
parent_ce=0x200808e3d538)
at /usr/src/debug/php-5.1.3RC1/Zend/zend_compile.c:2200
#2  0x200801c500e0 in do_bind_inherited_class
(opline=0x200806de4d00, class_table=0x200802a037f0,
parent_ce=0x200808e3d538, compile_time=Variable compile_time
is not available.
) at /usr/src/debug/php-5.1.3RC1/Zend/zend_compile.c:2333
#3  0x200801ccc520 in ZEND_DECLARE_INHERITED_CLASS_SPEC_HANDLER
(execute_data=0x6fff3ad0)
at /usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:492
#4  0x200801cc8600 in execute (op_array=0x200808d728a8) at
/usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:92
#5  0x200802a482e0 in xdebug_execute (op_array=0x200808d728a8)
at /usr/src/redhat/BUILD/php-xdebug-5.1.2/xdebug.c:1242
#6  0x200801d01af0 in ZEND_INCLUDE_OR_EVAL_SPEC_VAR_HANDLER
(execute_data=0x6fff4210)
at /usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:7344
#7  0x200801cc8600 in execute (op_array=0x200808ee2130) at
/usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:92
#8  0x200802a482e0 in xdebug_execute (op_array=0x200808ee2130)
at /usr/src/redhat/BUILD/php-xdebug-5.1.2/xdebug.c:1242
#9  0x200801cc8cd0 in zend_do_fcall_common_helper_SPEC
(execute_data=0x6fff6130)
at /usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:234
#10 0x200801cc8600 in execute (op_array=0x200808ee23d0) at
/usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:92
#11 0x200802a482e0 in xdebug_execute (op_array=0x200808ee23d0)
at /usr/src/redhat/BUILD/php-xdebug-5.1.2/xdebug.c:1242
#12 0x200801cc8cd0 in zend_do_fcall_common_helper_SPEC
(execute_data=0x6fff7580)
at /usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:234
#13 0x200801cc8600 in execute (op_array=0x200808c2a1b8) at
/usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:92
#14 0x200802a482e0 in xdebug_execute (op_array=0x200808c2a1b8)
at /usr/src/redhat/BUILD/php-xdebug-5.1.2/xdebug.c:1242
#15 0x200801cd8c30 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER
(execute_data=0x6fff8530)
at /usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:1926
#16 0x200801cc8600 in execute (op_array=0x200808f14bb8) at
/usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:92
#17 0x200802a482e0 in xdebug_execute (op_array=0x200808f14bb8)
at /usr/src/redhat/BUILD/php-xdebug-5.1.2/xdebug.c:1242
#18 0x200801c80d90 in zend_execute_scripts (type=Variable type is
not available.
) at /usr/src/debug/php-5.1.3RC1/Zend/zend.c:1109
#19 0x200801bedc90 in php_execute_script (primary_file=Cannot
access memory at address 0x0
) at /usr/src/debug/php-5.1.3RC1/main/main.c:1719
#20 0x200801dc5c50 in php_handler (r=Cannot access memory at
address 0x0
) at
/usr/src/debug/php-5.1.3RC1/sapi/apache2handler/sapi_apache2.c:584
#21 0x2008000329b0 in ap_run_handler (r=0x200808bf2748) at
/usr/src/debug/httpd-2.0.52/server/config.c:156
---Type return to continue, or q return to quit---
#22 0x200800033710 in ap_invoke_handler (r

#36742 [NEW]: Segmentation Failed when use ADODB

2006-03-15 Thread eda at vaz dot ru
From: eda at vaz dot ru
Operating system: RedHat AS 4.0 U3 IA64
PHP version:  5.1.3RC1
PHP Bug Type: Reproducible crash
Bug description:  Segmentation Failed when use ADODB

Description:

Segmentation failed when use ADODB php library. 

Reproduce code:
---
?php
// xdebug_start_trace(/tmp/test5.trace,0);
include('adodb/adodb.inc.php');
$conn = ADONewConnection('informix');
print THE END\n;
?

First http request to HTTPD is OK. 
Next requests is fail.


Actual result:
--
Backtrace of  /usr/sbin/httpd -X


zend_do_inherit_interfaces (ce=0x200808d71f58, iface=Variable iface
is not available.
) at /usr/src/debug/php-5.1.3RC1/Zend/zend_compile.c:2135
2135if (!(ce-ce_flags  ZEND_ACC_INTERFACE) 
iface-interface_gets_implemented 
iface-interface_gets_implemented(iface, ce TSRMLS_CC) == FAILURE) {
(gdb) bt
#0  zend_do_inherit_interfaces (ce=0x200808d71f58, iface=Variable
iface is not available.
) at /usr/src/debug/php-5.1.3RC1/Zend/zend_compile.c:2135
#1  0x200801c4f510 in zend_do_inheritance (ce=0x200808d71f58,
parent_ce=0x200808e3d538)
at /usr/src/debug/php-5.1.3RC1/Zend/zend_compile.c:2200
#2  0x200801c500e0 in do_bind_inherited_class
(opline=0x200806de4d00, class_table=0x200802a037f0,
parent_ce=0x200808e3d538, compile_time=Variable compile_time is
not available.
) at /usr/src/debug/php-5.1.3RC1/Zend/zend_compile.c:2333
#3  0x200801ccc520 in ZEND_DECLARE_INHERITED_CLASS_SPEC_HANDLER
(execute_data=0x6fff3ad0)
at /usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:492
#4  0x200801cc8600 in execute (op_array=0x200808d728a8) at
/usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:92
#5  0x200802a482e0 in xdebug_execute (op_array=0x200808d728a8)
at /usr/src/redhat/BUILD/php-xdebug-5.1.2/xdebug.c:1242
#6  0x200801d01af0 in ZEND_INCLUDE_OR_EVAL_SPEC_VAR_HANDLER
(execute_data=0x6fff4210)
at /usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:7344
#7  0x200801cc8600 in execute (op_array=0x200808ee2130) at
/usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:92
#8  0x200802a482e0 in xdebug_execute (op_array=0x200808ee2130)
at /usr/src/redhat/BUILD/php-xdebug-5.1.2/xdebug.c:1242
#9  0x200801cc8cd0 in zend_do_fcall_common_helper_SPEC
(execute_data=0x6fff6130)
at /usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:234
#10 0x200801cc8600 in execute (op_array=0x200808ee23d0) at
/usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:92
#11 0x200802a482e0 in xdebug_execute (op_array=0x200808ee23d0)
at /usr/src/redhat/BUILD/php-xdebug-5.1.2/xdebug.c:1242
#12 0x200801cc8cd0 in zend_do_fcall_common_helper_SPEC
(execute_data=0x6fff7580)
at /usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:234
#13 0x200801cc8600 in execute (op_array=0x200808c2a1b8) at
/usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:92
#14 0x200802a482e0 in xdebug_execute (op_array=0x200808c2a1b8)
at /usr/src/redhat/BUILD/php-xdebug-5.1.2/xdebug.c:1242
#15 0x200801cd8c30 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER
(execute_data=0x6fff8530)
at /usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:1926
#16 0x200801cc8600 in execute (op_array=0x200808f14bb8) at
/usr/src/debug/php-5.1.3RC1/Zend/zend_vm_execute.h:92
#17 0x200802a482e0 in xdebug_execute (op_array=0x200808f14bb8)
at /usr/src/redhat/BUILD/php-xdebug-5.1.2/xdebug.c:1242
#18 0x200801c80d90 in zend_execute_scripts (type=Variable type is
not available.
) at /usr/src/debug/php-5.1.3RC1/Zend/zend.c:1109
#19 0x200801bedc90 in php_execute_script (primary_file=Cannot access
memory at address 0x0
) at /usr/src/debug/php-5.1.3RC1/main/main.c:1719
#20 0x200801dc5c50 in php_handler (r=Cannot access memory at address
0x0
) at /usr/src/debug/php-5.1.3RC1/sapi/apache2handler/sapi_apache2.c:584
#21 0x2008000329b0 in ap_run_handler (r=0x200808bf2748) at
/usr/src/debug/httpd-2.0.52/server/config.c:156
---Type return to continue, or q return to quit---
#22 0x200800033710 in ap_invoke_handler (r=0x200808bf2748) at
/usr/src/debug/httpd-2.0.52/server/config.c:368
#23 0x20080002c2a0 in ap_process_request (r=0x200808bf2748)
at /usr/src/debug/httpd-2.0.52/modules/http/http_request.c:246
#24 0x200800020940 in ap_process_http_connection
(c=0x200808be6808)
at /usr/src/debug/httpd-2.0.52/modules/http/http_core.c:250
#25 0x20080004a640 in ap_run_process_connection
(c=0x200808be6808)
at /usr/src/debug/httpd-2.0.52/server/connection.c:42
#26 0x20080002e1c0 in child_main (child_num_arg=146712216)
at /usr/src/debug/httpd-2.0.52/server/mpm/prefork/prefork.c:609
#27 0x20080002e540 in make_child (s=0x20080127b620, slot=0)
at /usr/src/debug/httpd-2.0.52/server/mpm/prefork/prefork.c:649
#28 0x20080002e7e0 in startup_children (number_to_start=7)
at /usr/src