csmith-project / creduce

C-Reduce, a C and C++ program reducer
Other
1.25k stars 123 forks source link

[Windows] File gets reduced to emptiness #238

Open theodelrieu opened 3 years ago

theodelrieu commented 3 years ago

Hello,

I don't really know how to title it, but here is my problem:

I'm trying to reduce a Visual Studio 2019 ICE on Windows 10. After battling a bit to make creduce run on Windows, I've managed to start reducing the file, but it almost instantly reduces to 0 bytes.

The interestingness script does return 1 appropriately, so I don't have a clue about what's happening, here is the end of the log (full log attached with script + .cpp file):

===< pass_lines :: 0 >===
***TRANSFORM START***
"C:/Users/Theo/Downloads/creduce/install2/libexec/topformflat.exe" 0 < C:\Users\Theo\AppData\Local\Temp\creduce-8pzg08\initial.cpp > C:\Users\Theo\AppData\Local\Temp\nBr2t9526D***ADVANCE*** from 16190 to 0 with chunk 16190
1
delta test success (41.3 %, 2080269 bytes)
[0 pass_lines :: 0] ***TRANSFORM REGULAR chunk 16190 at 16190***
went from 16190 lines to 0 with chunk 16190
***ADVANCE*** from 16190 to 0 with chunk 16190
1
delta test success (100.0 %, 0 bytes)
[0 pass_lines :: 0] ***TRANSFORM REGULAR chunk 16190 at 16190***
granularity reduced to 8095
granularity reduced to 4047
granularity reduced to 2023
granularity reduced to 1011
granularity reduced to 505
granularity reduced to 252
granularity reduced to 126
granularity reduced to 63
granularity reduced to 31
granularity reduced to 15
granularity reduced to 7
granularity reduced to 3
granularity reduced to 1

The file being reduced has reached zero size; our work here is done.

debug_log.txt initial.cpp.txt run.bat.txt