Bug #66575 [Opn]: phpdbg segfaults with Xdebug v2.2.3

From: Date: Mon, 27 Jan 2014 07:43:30 +0000
Subject: Bug #66575 [Opn]: phpdbg segfaults with Xdebug v2.2.3
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184026@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66575&edit=1 ID: 66575 Updated by: krakjoe@php.net Reported by: clicky at erebot dot net Summary: phpdbg segfaults with Xdebug v2.2.3 Status: Open Type: Bug Package: phpdbg Operating System: Debian 7 (Wheezy) PHP Version: 5.6.0alpha1 Block user comment: N Private report: N New Comment: I'm not able to build xdebug to test: cc -I. -I/tmp/pear/temp/xdebug -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-joeBiAsI7/xdebug-2.2.3/include -I/tmp/pear/temp/pear-build-joeBiAsI7/xdebug-2.2.3/main -I/tmp/pear/temp/xdebug -I/opt/php-zts/include/php -I/opt/php-zts/include/php/main -I/opt/php-zts/include/php/TSRM -I/opt/php-zts/include/php/Zend -I/opt/php-zts/include/php/ext -I/opt/php-zts/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O0 -c /tmp/pear/temp/xdebug/xdebug.c -fPIC -DPIC -o .libs/xdebug.o /tmp/pear/temp/xdebug/xdebug.c: In function ‘xdebug_zend_startup’: /tmp/pear/temp/xdebug/xdebug.c:2087:2: error: too few arguments to function ‘zend_startup_module’ Previous Comments: ------------------------------------------------------------------------ [2014-01-25 10:22:26] clicky at erebot dot net Description: ------------ Trying to run phpdbg with Xdebug v2.2.3 loaded results in a segfault during startup. See backtrace below. Disabling Xdebug in php.ini or running phpdbg with option -n as a workaround works correctly. Test script: --------------- $ php -m [PHP Modules] bcmath bz2 calendar Core ctype date dom ereg filter gettext gmp hash iconv intl json libxml mbstring mcrypt mysql mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar posix Reflection session SimpleXML soap sockets SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer xdebug xhprof xml xmlreader xmlwriter xsl zip zlib [Zend Modules] Xdebug $ phpdbg Segmentation fault Expected result: ---------------- phpdbg should start normally. Actual result: -------------- (gdb) bt #0 0x0000000000000000 in ?? () #1 0x0000000000771065 in zend_is_auto_global_quick (name=0x7ffff5616977 "_SESSION", name_len=8, hash=249877436177080008) at /home/clicky/Documents/git/phpfarm/src/php-5.6.0alpha1-debug/Zend/zend_compile.c:6800 #2 0x00000000007710b2 in zend_is_auto_global (name=0x7ffff5616977 "_SESSION", name_len=8) at /home/clicky/Documents/git/phpfarm/src/php-5.6.0alpha1-debug/Zend/zend_compile.c:6810 #3 0x00007ffff55eeb37 in zm_activate_xdebug (type=1, module_number=49) at /home/clicky/Documents/git/phpfarm/inst/php-5.6.0alpha1-debug/pear/temp/xdebug/xdebug.c:865 #4 0x0000000000797233 in zend_activate_modules () at /home/clicky/Documents/git/phpfarm/src/php-5.6.0alpha1-debug/Zend/zend_API.c:2403 #5 0x000000000083d559 in main (argc=1, argv=0x7fffffffe1a8) at /home/clicky/Documents/git/phpfarm/src/php-5.6.0alpha1-debug/sapi/phpdbg/phpdbg.c:1190 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66575&edit=1

« previous php.bugs (#184026) next »