The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000176
======================================================================
Reporter: judas_iscariote
Handler:
======================================================================
Project: Xdebug
Bug ID: 176
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: closed
Operating System: linux 64 bit
PHP Version: 5.1-dev
Xdebug Version: 2.0.0rc1-dev
======================================================================
Date Submitted: 2006-05-01 06:44 CEST
Last Modified: 2006-05-07 23:37 CEST
======================================================================
Summary: segfault using SplTempFileObject
Description:
xdebug segfaults using SplTempFileObject
<?php
$crap = new SplTempFileObject('foo');
$crap->fwrite('give me a crash');
?>
expected result:
PHP Fatal error: Uncaught exception 'RuntimeException' with message
'SplTempFileObject::__construct() expects parameter 1 to be long, string
given' in /srv/www/htdocs/temp.php:3
Stack trace:
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000000 /srv/www/htdocs/temp.php(3): SplTempFileObject->__construct('foo')
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000001 {main}
actual result :
Segmentation fault (core dumped)
======================================================================
----------------------------------------------------------------------
judas_iscariote - 2006-05-01 06:49 CEST
----------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912513283232 (LWP 13447)]
0x000000000050ee13 in _php_stream_write (stream=0x0, buf=0x985678 "give me
a crash", count=15)
at /usr/src/debug/php-5.1.2/main/streams/streams.c:1012
1012 if (buf == NULL || count == 0 || stream->ops->write ==
NULL) {
(gdb) bt
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000000 0x000000000050ee13 in _php_stream_write (stream=0x0, buf=0x985678
"give me a crash", count=15)
at /usr/src/debug/php-5.1.2/main/streams/streams.c:1012
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000001 0x0000000000487a45 in zif_spl_SplFileObject_fwrite (ht=<value
optimized out>, return_value=0x985578,
return_value_ptr=<value optimized out>, this_ptr=<value optimized
out>, return_value_used=<value optimized out>)
at /usr/src/debug/php-5.1.2/ext/spl/spl_directory.c:1861
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000002 0x00002aaaabb16e46 in xdebug_execute_internal
(current_execute_data=0x7fffffca0860, return_value_used=0)
at /home/cristian/xdebug/xdebug.c:1428
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000003 0x000000000055a1d7 in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fffffca0860) at zend_vm_execute.h:202
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000004 0x0000000000559993 in execute (op_array=0x983aa8) at
zend_vm_execute.h:92
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000005 0x00002aaaabb16b05 in xdebug_execute (op_array=0x983aa8) at
/home/cristian/xdebug/xdebug.c:1366
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000006 0x000000000053d23c in zend_execute_scripts (type=8, retval=<value
optimized out>, file_count=3)
at /usr/src/debug/php-5.1.2/Zend/zend.c:1109
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000007 0x00000000004ff84c in php_execute_script (primary_file=0x7fffffca2fc0)
at /usr/src/debug/php-5.1.2/main/main.c:1732
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000008 0x00000000005ce045 in main (argc=2, argv=0x7fffffca3178) at
/usr/src/debug/php-5.1.2/sapi/cli/php_cli.c:1092
----------------------------------------------------------------------
judas_iscariote - 2006-05-01 07:58 CEST
----------------------------------------------------------------------
don't know if it is related , but I opened a PHP bug due to other issue
with
SplTempFileObject (xdebug unloaded)
http://bugs.php.net/bug.php?id=37257
----------------------------------------------------------------------
judas_iscariote - 2006-05-01 21:01 CEST
----------------------------------------------------------------------
fixed the mentioned PHP bug, I recompiled PHP. and **without** xdebug it
works as expected now.
but stills segfaults with xdebug loaded. :-(
----------------------------------------------------------------------
derick - 2006-05-07 23:37 CEST
----------------------------------------------------------------------
Fixed in CVS. The cause was that Xdebug didn't understand the EH_THROW
error mode yet.
Bug History
Date Modified Username Field Change
======================================================================
2006-05-01 06:44judas_iscarioteNew Bug
2006-05-01 06:44judas_iscarioteBug Monitored: judas_iscariote
2006-05-01 06:49judas_iscarioteBugnote Added: 0000387
2006-05-01 07:58judas_iscarioteBugnote Added: 0000389
2006-05-01 21:01judas_iscarioteBugnote Added: 0000394
2006-05-07 23:37derick Bugnote Added: 0000400
2006-05-07 23:37derick Status new => closed
======================================================================
Received on Sun May 07 2006 - 23:37:15 BST
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST