View Issue Details

IDProjectCategoryView StatusLast Update
0001739XdebugUncategorizedpublic2020-01-27 20:11
Reportercyrus.and Assigned Toderick  
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

<pre>

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
</pre>

I also tried to put fprintf(stderr, &quot;...&quot;); 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.

Issue History

Date Modified Username Field Change
2020-01-27 15:51 cyrus.and New Issue
2020-01-27 17:13 derick Status new => assigned
2020-01-27 17:13 derick Target Version => 2.9.2
2020-01-27 17:13 derick Steps to Reproduce Updated
2020-01-27 17:53 derick Note Added: 0005225
2020-01-27 17:54 derick Summary _deinit and _write_footer functions of tracers are not called => Tracing footer not written
2020-01-27 20:11 derick Assigned To => derick
2020-01-27 20:11 derick Status assigned => closed
2020-01-27 20:11 derick Resolution open => fixed
2020-01-27 20:11 derick Fixed in Version => 2.9.2
2020-01-27 20:11 derick Note Added: 0005227
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized