Bug #80287 [NEW]: Xdebug Simple DBGp client (0.4) Block itself after second request
| From: | ysl1989517 at gmail dot com | Date: | Tue, 27 Oct 2020 13:03:18 +0000 |
| Subject: | Bug #80287 [NEW]: Xdebug Simple DBGp client (0.4) Block itself after second request | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-229946@lists.php.net to get a copy of this message | ||
From: ysl1989517 at gmail dot com
Operating system: CentOS Linux 7
PHP version: 7.4.11
Package: *General Issues
Bug Type: Bug
Bug description:Xdebug Simple DBGp client (0.4) Block itself after second request
Description:
------------
xdebug configuration in php.ini
===============================
[xdbug]
zend_extension =
/home/xiaoju/php7/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so
xdebug.idekey=ysl
xdebug.remote_host=127.0.0.1
xdebug.remote_enable=on
xdebug.remote_port = 9001
xdebug.remote_handler = dbgp
xdebug.auto_trace = 1
xdebug.remote_log = /tmp/xdebug.log
run command in Terminal(T1):
>$./dbgpClient -p 9001 -f
the output as follow:
Xdebug Simple DBGp client (0.4)
Copyright 2019-2020 by Derick Rethans
In dumb client mode
Waiting for debug server to connect on port 9001.
then I use postman client to request the API, the T1 Ternimal output as
follow:
Connect from 127.0.0.1:36082
DBGp/1.0: Xdebug 2.8.1 â For PHP 7.4.9
Debugging
file:///home/xiaoju/webroot/gulfstream/application/pre-sale/v1/index.php
(ID: 27632/ysl)
(cmd)
and open another Ternimal(T2), check xdebug's log:
tail -f /tmp/xdebug.log, the output as follow:
[45220] Log opened at 2020-10-27 07:09:23
[45220] I: Connecting to configured address/port: 127.0.0.1:9000.
[45220] I: Connected to client. :-)
[45220] -> <init xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="https://xdebug.org/dbgp/xdebug"
fileuri="file:///home/xiaoju/webroot/gulfstream/application/pre-sale/v1/index.php"
language="PHP" xdebug:language_version="7.4.9" protocol_version="1.0"
appid="45220" idekey="ysl"><engine
version="2.8.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright
(c) 2002-2019 by Derick Rethans]]></copyright></init>
that means the debug session established, it works. but after a while
(without stats) the T1 output:
Error while handling connection: EOF
Disconnect
then I request again in postman, T1 output as follow:
Connect from 127.0.0.1:50446
DBGp/1.0: Xdebug 2.8.1 â For PHP 7.4.9
Debugging
file:///home/xiaoju/webroot/gulfstream/application/pre-sale/v1/index.php
(ID: 2155/ysl)
1 | feature_get
1 | supports_async: supported > 0
(cmd)
that means the request is successful captured. but from now on ,T1 is
blocked, not response to any keyboard input, even with CTR + C.
I have to open another Ternimal to kill the blocked DBGp Client and run
it again.
Test script:
---------------
no test script
Expected result:
----------------
T1 not blocked
Actual result:
--------------
blocked
--
Edit bug report at https://bugs.php.net/bug.php?id=80287&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80287&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80287&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80287&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80287&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80287&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80287&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80287&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80287&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80287&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80287&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80287&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80287&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80287&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80287&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80287&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80287&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80287&r=mysqlcfg