Jump to content

Windows 10 BUG in 7-Zip


vissha

Recommended Posts

Windows 10 works incorrectly with Large memory pages (2 MB)

This message contains information about very critical problem in some versions of Windows.
If you have any contacts with Microsoft, please notify them about this problem.

Description of problem

Windows supports small (4 KB) pages and large (2 MB) memory pages.
Most of programs use only 4 KB pages. And it works correctly. So there is no any problem for most programs.
But there is Windows API that allows to use 2 MB pages. And 7-Zip uses that API, if special "Large pages mode" option is enabled in 7-Zip settings.
When 7-Zip uses 2 MB pages, 7-Zip can work incorrectly, or Windows system can crash.

How to reproduce the problem

NOTE:
If you use "Large Pages" now, your system can work incorrectly and you can lose some data.
DON'T TRY IT, if you don't want to take these RISKS.
If you use "Large Pages", your system can be in CORRUPTED STATE, and you MUST REBOOT after each experiment to reduce the risk to lose your data.

1) "Large Pages" feature requires special "LockMemory" privilege.
So you need to run 7-Zip File Manager with administrator rights at least once and reboot system after that. Then you can use "large pages" without administrator rights in Windows 10.
But some previous versions of Windows require administrator rights also for programs that just use "large pages".

2) The commands with "Large Pages" for crash:
7-Zip 18.01 (x86 or x64):

7zG b -mmt1 -slp -md21
7z b -mmt1 -slp -md19 -bt 10 >19.txt 2>19_2.txt
7z b -mmt1 -slp -md22 -bt 10 >22.txt 2>22_2.txt

If you use Windows 7, you must call these commands with administator rights. So create bat files and run them with administator rights.

If 7-Zip benchmark works incorrectly with large pages, you can get
- "Decoder error" message
- 7-Zip program crash
- Windows system crash

When you run these benchmark commands, you can see "LP" string in "Memory usage" values.
It means that 7-Zip uses "Large Pages".
If you don't see "LP", then probably you have no rights to use "Large Pages".

For 7-Zip users:
If you are ready to test it, please call those benchmark commands and write report here in this forum thread:
1) Exact windows version. You can call "Run" (Windows+R): "winver" to get version number.
2) Exact name of CPU
3) If there are no errors for commands, then show 22.txt
4) If there is any error/crash, write about that error
5) REBOOT YOUR SYSTEM after commands to flush possible system corruptions.

We need to get answers for the following questions:
1) what Windows versions (and revisions) are affected with that problem?
2) what Windows versions allow to use "Large Pages" without administrator rights?
3) what another programs also use "Large Pages"? And are there any reports about problems with these programs?

Technical description

7-Zip benchmark allocates 2 (two) buffers of large pages.
Then probably it still can work OK.
But 7-Zip or system can work incorrectly after Free() operations.
It's possible that it still can work correctly, if we allocate only 1 (one) buffer with large pages.

Notes

It's possible that there is some bug in 7-Zip.
But I've seen system crashes also.
So I suppose that it's bug in Windows.
And we need wide investigation of that problem.

There are no error reports for Windows 7 still.
Now we have error reports for Windows 10 only.

Also there were similar error reports in May-June 2017 for old revisions of Windows 10 (Version 1703). So probably it is not new BUG of latest Windows patches. And Windows 10 contains that BUG for one year at least.
If you have test systems with all Windows 10 revisions, please check all of them. But check that you see "LP" string in "Memory Usage" string in tests.

For 7-Zip users

It's recommended to switch off the option "Use large memory pages" in 7-Zip / Tools / Options / Settings, if you switched it before.

 

Source & Source

Link to comment
Share on other sites


  • Replies 2
  • Views 1.5k
  • Created
  • Last Reply

Had severe problem with the latest beta of 7-Zip in Win10 .

Went back to latest stable version , problem gone , 7-Zip works fine ............

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...