Bug #61500 [Opn->Fbk]: Segfault in xdebug? zend? binary operation?
| From: | pajoye@php.net | Date: | Sat, 24 Mar 2012 19:44:07 +0000 |
| Subject: | Bug #61500 [Opn->Fbk]: Segfault in xdebug? zend? binary operation? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-168807@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61500&edit=1
ID: 61500
Updated by: pajoye@php.net
Reported by: piotrekrogowski at gmail dot com
Summary: Segfault in xdebug? zend? binary operation?
-Status: Open
+Status: Feedback
Type: Bug
Package: *General Issues
Operating System: Linux
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
Looks like it is fixed already. Please try a 5.3 snapshot.
Previous Comments:
------------------------------------------------------------------------
[2012-03-24 19:19:28] piotrekrogowski at gmail dot com
Description:
------------
segfault in this example
Starting program: /usr/bin/php index.php
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff7192700 (LWP 987)]
[Thread 0x7ffff7192700 (LWP 987) exited]
Program received signal SIGSEGV, Segmentation fault.
0x00000000006f1e40 in zend_hash_num_elements ()
(gdb) bt
#0 0x00000000006f1e40 in zend_hash_num_elements ()
#1 0x00000000006ddf05 in bitwise_and_function ()
#2 0x0000000000756877 in ?? ()
#3 0x000000000070a03e in execute ()
#4 0x00007ffff7c2f5f7 in xdebug_execute () from
/usr/lib64/php5.3/lib/extensions/no-debug-zts-20090626/xdebug.so
#5 0x00000000007676f0 in ?? ()
#6 0x000000000070a03e in execute ()
#7 0x00007ffff7c2f5f7 in xdebug_execute () from
/usr/lib64/php5.3/lib/extensions/no-debug-zts-20090626/xdebug.so
#8 0x000000000071b7b3 in ?? ()
#9 0x000000000070a03e in execute ()
#10 0x00007ffff7c2f5f7 in xdebug_execute () from
/usr/lib64/php5.3/lib/extensions/no-debug-zts-20090626/xdebug.so
#11 0x00000000006e4c09 in zend_execute_scripts ()
#12 0x000000000068606e in php_execute_script ()
#13 0x000000000046d7e0 in main ()
PHP 5.3.10-pl2-gentoo (cli) (built: Mar 20 2012 01:15:33)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.1.4, Copyright (c) 2002-2012, by Derick Rethans
[PHP Modules]
bz2
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
gd
geoip
gettext
hash
iconv
json
ldap
libxml
mbstring
mcrypt
memcached
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pgsql
Phar
posix
pspell
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xdebug
xhprof
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
Xdebug
Test script:
---------------
<?php
/* exploit PHP 5.3.10-pl2-gentoo
* @copyright Piotr Rogowski <piotrekrogowski@gmail.com>
*/
class segfault
{
static $var = array();
static function crash()
{
$item = &self::$var;
$item &= $item[1] = array();
}
}
segfault::crash();
?>
Expected result:
----------------
segfault
Actual result:
--------------
not segfault :P
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61500&edit=1