bzip3-x86_64 crashing on Windows 7
Erol-2022 opened this issue · comments
Hello,
Thanks for the new release of bzip3.
Testing v1.3.0, bzip3-x86_64.exe is crashing on Widows 7. The error message is :
A problem caused the program to stop working correctly. Windows will close the program and notify you if solution is available.
bzip3-i686.exe does not have this problem.
Hello! As I am no longer a Windows user (as of many years now!) it will probably be a while until I get a Win7 VM and then figure out how to debug this.
My first guesses: what is your processor, how much RAM do you have?
Hello,
Thanks, hardware is not the cause as the processor is Core i7 and the memory is 6 Gb.
My practical solution is to rebuild the executable with Msys2 :
./configure CC=x86_64-w64-mingw32-gcc --host x86_64-w64-mingw32 --enable-static-exe
make
Now, the new executable does not crash on Windows 7.
So the hardware is indeed the cause. This is a dupe of #99. This is fixed on the main branch and the new executables will be built when v1.3.1 is released.
&"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\Hostx64\x64\dumpbin.exe" /NOLOGO /DISASM .\bzip3-x86_64.exe | Select-Object -Skip 5 | Select-String -Pattern '.{39}(?<instruction>\b.+?\b)' | % { $_.Matches[0].Groups["instruction"].Value.Trim() } | ? { ![string]::IsNullOrEmpty($_) } > ins.txt
Then:
$ sort i.txt | uniq
Lists the instruction vcvtusi2sd
coming from AVX512-F, which your CPU can't have.
Hello,
Thanks for your help.