ID: 46753
User updated by: essen at dev-extend dot eu
Reported By: essen at dev-extend dot eu
-Status: Feedback
+Status: Open
Bug Type: Scripting Engine problem
Operating System: Linux Ubuntu 8.10
PHP Version: 5.2CVS-2008-12-08
New Comment:
Still crashing, with a similar output pasted below.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb79dc6b0 (LWP 7735)]
0x0829fc6a in is_a_impl (ht=<value optimized out>,
return_value=0x9b841d0,
return_value_ptr=<value optimized out>, this_ptr=0x0,
return_value_used=1,
only_subclass=1 '\001')
at
/home/essen/tmp/php5.2-200902151330/Zend/zend_builtin_functions.c:645
645 if (Z_TYPE_PP(obj) == IS_OBJECT && !HAS_CLASS_ENTRY(**obj)) {
(gdb) bt
#0 0x0829fc6a in is_a_impl (ht=<value optimized out>,
return_value=0x9b841d0,
return_value_ptr=<value optimized out>, this_ptr=0x0,
return_value_used=1,
only_subclass=1 '\001')
at
/home/essen/tmp/php5.2-200902151330/Zend/zend_builtin_functions.c:645
#1 0x082c3d79 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf80527c)
at /home/essen/tmp/php5.2-200902151330/Zend/zend_vm_execute.h:200
#2 0x082b18a0 in execute (op_array=0x9b7e18c)
at /home/essen/tmp/php5.2-200902151330/Zend/zend_vm_execute.h:92
#3 0x082c36e6 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf80552c)
at /home/essen/tmp/php5.2-200902151330/Zend/zend_vm_execute.h:234
#4 0x082b18a0 in execute (op_array=0x9b84418)
at /home/essen/tmp/php5.2-200902151330/Zend/zend_vm_execute.h:92
It continues repeating the last 2 for a while just like before.
Previous Comments:
------------------------------------------------------------------------
[2009-02-10 22:24:19] [email protected]
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2008-12-17 01:19:06] essen at dev-extend dot eu
It also crashes on NetBSD running PHP 5.2.4.
------------------------------------------------------------------------
[2008-12-17 01:12:56] essen at dev-extend dot eu
Okay I've narrowed down the bug a bit.
First, the crash do not happen in PHP 5.3 using the latest snapshot.
Second, I've tried to make a small example and failed. So I made all
the files involved available here:
http://blog.extend.ws/~essen/bug46753.tar.gz
I've changed a few things in the code to make it more friendly to an
environment without some specific extensions, all you need is mysql and
xsl. You need however to create a database (a script is available in
app/sql). The configuration for the database can be changed in
app/conf/wee.cnf.
There is a hack in the index.php file to make it usable from the
command line. If you want to use it from a browser, remove the line and
point your browser to index.php/toppage/add instead.
If everything goes well, you should have an error message instead of
nothing and a segfault.
One last thing. I've let the .svn directory in wee/db/meta/mysql in the
archive. The crash doesn't happen if you remove this specific directory.
Other directories were removed for this archive.
------------------------------------------------------------------------
[2008-12-08 22:35:36] [email protected]
Please try isolate the code. As short as possible script. You should
also try the PHP 5.3 snapshot: http://snaps.php.net/php5.3-
latest.tar.gz just in case this same issue is already fixed there..
------------------------------------------------------------------------
[2008-12-08 17:31:15] essen at dev-extend dot eu
Exactly the same problem using the snapshot. The problem also occurs
from the command line (both on 5.2.6 and using the snapshot).
The "bt full" made using this snapshot is available at the following
address:
http://blog.extend.ws/~essen/bug46753btfull.txt
I can try to isolate the code leading to the segfault if you need it,
but it's not going to be an easy task as it crashes inside classes
querying metadata information from a MySQL database, and also because
the same code works without problem for a different page.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/46753
--
Edit this bug report at http://bugs.php.net/?id=46753&edit=1