View Issue Details

IDProjectCategoryView StatusLast Update
0001739XdebugUncategorizedpublic2020-01-27 20:11
Reportercyrus.and Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
OSGNU/LinuxOS VersionDebian 10 
Product Version2.9.1 
Target Version2.9.2Fixed in Version2.9.2 
Summary0001739: Tracing footer not written
Description

As the title says, among the other things this has the effect of creating corrupted trace files.

Steps To Reproduce

php -d zend_extension=/xdebug/.libs/xdebug.so -d xdebug.auto_trace=1 -d xdebug.trace_format=1 -r 'echo 123;'

cat /tmp/trace.3916409117.xt

Version: 3.0.0-dev
File format: 4
TRACE START [2020-01-27 15:44:15]
1 0 0 0.000291 385696 {main} 1 Command line code 0
1 0 1 0.000347 385728

I also tried to put fprintf(stderr, "..."); in the aforementioned functions to check further.

As you can see TRACE END is missing.

Additional Information

This also happen from master as today (3aaba86c48e97d95138c9bae9dc1727a4f9399ac).

TagsNo tags attached.
Operating System
PHP Version7.3.10-7.3.14

Activities

derick

2020-01-27 17:53

administrator   ~0005225

https://github.com/xdebug/xdebug/pull/546

derick

2020-01-27 20:11

administrator   ~0005227

Fixed in GIT, and will make it into 2.9.2 due later this week.