View Issue Details

IDProjectCategoryView StatusLast Update
0002129XdebugProfilingpublic2022-11-10 09:12
Reporteroldmodellflieger Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version3.1.5 
Fixed in Version3.1.6 
Summary0002129: Cannot read snapshot Gzip-compressed data is corrupt
Description

Xdebug 3.1.4 and 3.1.5 generate corrupt output file for profiling.
QCacheGrind can not use the File.

Steps To Reproduce

generate a output file

Additional Information

Xdebug < 3 is Ok

TagsNo tags attached.
Attached Files
Operating SystemWindows 10 pro
PHP Version7.4.20-7.4.29

Activities

oldmodellflieger

2022-10-20 14:58

reporter   ~0006409

You can see a Bugreport at PhpStorm Team from me
https://intellij-support.jetbrains.com/hc/en-us/requests/4394303

The Jetbrain Supporter writes
"Thanks for the update. I'm also not able to generate a valid profiler snapshot using XDebug 3.1.5. Looks like an XDebug issue to me.
Let me know if there's anything else I can assist you with."

derick

2022-10-20 15:44

administrator   ~0006410

Hi,

thanks for this report. It looks like the GZIP file has all binary \0a characters replaced with \0d \0a, (ie, \n to \r\n, or Linux line endings to Windows line endings). I think I have a fix for that in https://github.com/xdebug/xdebug/pull/864, but I can not test this, as I don't have access to Windows.

I can't see the jetbrains report, it says the URL does not exist, but there should soon be a DLL with a fix for you to try at https://github.com/xdebug/xdebug/actions/runs/3290947479#artifacts

cheers,
Derick

oldmodellflieger

2022-10-20 17:05

reporter   ~0006412

Hi,
sorry i can not compile the Source-Code and i think Xdebug 3.2 i can not run this with PHP 7.4.29.
At this time i can not change to PHP >= 8.
Best regards
Hajo

derick

2022-11-02 10:36

administrator   ~0006420

Hi,

Sorry it took some time, but I now have Windows DLLs for you for Xdebug 3.1.x, which includes PHP 7.4 support:
https://github.com/xdebug/xdebug/actions/runs/3376665362#artifacts

If you can confirm that this works, I will make a 3.1.6 release ASAP.

cheers,
Derick

oldmodellflieger

2022-11-02 21:43

reporter   ~0006431

Hi,
i have download the "php_xdebug-3.1.6-dev-7.4-vc15-x86_64.dll" and test it with profile and trace output.
Profile output-File is OK, i can use it.
Trace output-File show a CRC-Error.

cheers,
Hajo

CRC-Error.JPG (54,726 bytes)   
CRC-Error.JPG (54,726 bytes)   

derick

2022-11-02 22:31

administrator   ~0006432

Can you please attach the trace file? I don't know where a CRC failure would come from, as the file format doesn't really have a CRC checksum.

oldmodellflieger

2022-11-02 22:52

reporter   ~0006433

Hi,
my trace output files are to large to load up here.
I have build a small php script with mini code to generate a small trace output File.

cheers,
Hajo

derick

2022-11-03 09:38

administrator   ~0006434

Thanks for that file, it seems to be the same problem with trace files, then the one I fixed for compressed files. I thought my fix had fixed both, but I must have missed something.

derick

2022-11-07 16:36

administrator   ~0006439

I think I've fixed these as well now. There is a new DLL at https://github.com/xdebug/xdebug/actions/runs/3411352967#artifacts — would you please be able to check that? If it works, I'll make a 3.1.6 release.

oldmodellflieger

2022-11-07 19:55

reporter   ~0006440

Hi,
this Dll Version (php_xdebug-3.1.6-dev-7.4-vc15-x86_64.dll) produce a good trace-File.

cheers,
Hajo

derick

2022-11-07 20:30

administrator   ~0006441

Excellent. I'll merge it then and release 3.1.6 tomorrow.

oldmodellflieger

2022-11-09 19:33

reporter   ~0006445

Hello Derick,
this day i must work under PHP 8.1 and i use the "php_xdebug-3.2.0RC1-8.1-vs16-x86_64.dll" under Windows!
It seems to me there is the same Problem/Bug under Windows. In Attachment you find a trace and a profile File
from a little Test .

I have see the Release xdebug 3.1.6 is set, so i use the 3.1.6 as review.

cheers Hajo

derick

2022-11-10 09:12

administrator   ~0006447

The 3.2.0RC1 release was made before the fix, so it will have the same problem as 3.1.5. The Xdebug 3.1.6 release for PHP 8.1 (https://xdebug.org/files/php_xdebug-3.1.6-8.1-vs16-x86_64.dll) should work though. In general, I wouldn't recommend running Release Candidates (RCs) unless you're just testing it out. I will be making Xdebug 3.2.0RC2 shortly, and that should also contain the fix.

Issue History

Date Modified Username Field Change
2022-10-20 13:57 oldmodellflieger New Issue
2022-10-20 13:57 oldmodellflieger File Added: cachegrind.out.1666262400-C__Appl_Web_xampp7429_htdocs_web_XTC_Shop_643_index_php.gz
2022-10-20 14:58 oldmodellflieger Note Added: 0006409
2022-10-20 15:44 derick Assigned To => derick
2022-10-20 15:44 derick Status new => feedback
2022-10-20 15:44 derick Note Added: 0006410
2022-10-20 17:05 oldmodellflieger Note Added: 0006412
2022-10-20 17:05 oldmodellflieger Status feedback => assigned
2022-11-02 10:36 derick Status assigned => feedback
2022-11-02 10:36 derick Note Added: 0006420
2022-11-02 21:43 oldmodellflieger Note Added: 0006431
2022-11-02 21:43 oldmodellflieger File Added: CRC-Error.JPG
2022-11-02 21:43 oldmodellflieger Status feedback => assigned
2022-11-02 22:31 derick Status assigned => feedback
2022-11-02 22:31 derick Note Added: 0006432
2022-11-02 22:52 oldmodellflieger Note Added: 0006433
2022-11-02 22:52 oldmodellflieger File Added: trace.606934601.xt.gz
2022-11-02 22:52 oldmodellflieger Status feedback => assigned
2022-11-03 09:38 derick Note Added: 0006434
2022-11-07 16:36 derick Status assigned => feedback
2022-11-07 16:36 derick Note Added: 0006439
2022-11-07 19:55 oldmodellflieger Note Added: 0006440
2022-11-07 19:55 oldmodellflieger Status feedback => assigned
2022-11-07 20:30 derick Note Added: 0006441
2022-11-08 13:02 derick Status assigned => closed
2022-11-08 13:02 derick Resolution open => fixed
2022-11-08 13:02 derick Fixed in Version => 3.1.6
2022-11-09 19:33 oldmodellflieger Note Added: 0006445
2022-11-09 19:33 oldmodellflieger File Added: cachegrind.out.1668021565-C__Appl_Web_xampp8110_htdocs_web_test_test_php.gz
2022-11-09 19:33 oldmodellflieger File Added: trace.4139734177.xt.gz
2022-11-10 09:12 derick Note Added: 0006447