Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memtest86+: Hardlocks on systems with more than 4GB of RAM (packaging/compilation issue, upstream build works fine) #11691

Closed
Veyrdite opened this issue May 13, 2019 · 12 comments · Fixed by #32616
Labels
bug Something isn't working Stale

Comments

@Veyrdite
Copy link

Veyrdite commented May 13, 2019

System

Systems tried:

  • Gigabyte P67A-UD3R-B3 + i5-3470S
  • HP Elite 8200 + i5-2500

DDR3 modules used in tests:

  • 2x2GB 1600 Ripjaws
  • 2x2GB 1333 Microns
  • 2x4GB 1333 Samsung
  • 1x2GB 1333 Kingston

xuname from one system used: Void 4.19.42_1 x86_64 GenuineIntel notuptodate FFFFFFFFFFF (probably not relevant, kernel is not loaded when bug occurs)

package version: memtest86+-5.01_5

Behaviour

Memtest86+ 5.01 from the official memtest86+ website: works fine
Memtest86 4.3.7 from the official memtest86 website: works fine
Memtest86+ 5.01 from the void repos: freezes during the first test if more than 4GB of DIMMs are installed.

This arbitrary % is completely repeatable and depends on the order + sizes of the DIMMs installed.

Only tested on Sandy and Ivy bridge DDR3 motherboards (see motherboards + processors at top of this report).

Steps to reproduce the behavior

  1. xbps-install memtest86+
  2. Boot into it using either grub2 or syslinux (both have been tested)
  3. Wait for the % of the very first test to progress until full CPU lockup (usually takes <5 seconds)

(note that the '+' still blinking on the screen is a red herring, this is a 'flashing text' non-OS (GPU?) feature, not an indicator of activity in the test)

To test the official version of memtest86+: download it to your /boot directory and modify your grub/syslinux config to list it. Don't try and use the pre-made ISOs or bootable USBs, they have really poor system compatibility.

To test the official version of memtest86: its USB-bootable versions have very good compatibility, use them.

Misc context

Void compiles memtest86+ from source, somewhere in this process the bug is being created or uncovered. Compare the binaries:

179K /boot/memtest86+    (from void repos)
147K /boot/officialmemtest.bin  (from memtest86+ website)
@yopito
Copy link
Contributor

yopito commented May 18, 2019

Thanks for this detailed issue. I'll take a loop asap (my workstation is currently broken)

@Veyrdite Veyrdite changed the title memtest86+: Hardlocks on (Sandy/Ivy) systems with more than 4GB of RAM memtest86+: Hardlocks on (Sandy/Ivy) systems with more than 4GB of RAM (packaging/compilation issue, upstream version works fine) Jun 16, 2019
@Veyrdite Veyrdite changed the title memtest86+: Hardlocks on (Sandy/Ivy) systems with more than 4GB of RAM (packaging/compilation issue, upstream version works fine) memtest86+: Hardlocks on (Sandy/Ivy) systems with more than 4GB of RAM (packaging/compilation issue, upstream build works fine) Jun 16, 2019
@Frosty-J
Copy link

Frosty-J commented Aug 7, 2021

After wasting an afternoon, I can confirm this also affects Ubuntu 21.04's MemTest86+ and Haswell.

Same behaviour with the blinking + and all. Fails after 1 second on test 2 with SMP disabled and after 36 seconds on test 1 with SMP enabled.

I downloaded 5.31b from memtest.org, burned it to a CD (a waste but was easiest) and that version was fine.

PC: HP 800 G1 TWR
BIOS: The latest - 02.78 Rev.A
CPU: Intel i7-4770
RAM: Various 4GB 1600MHz DDR3 sticks in different slots and both single-channel and dual-channel configurations: Kingston 9905403-496.A00LF, Hynix HMT351U6CFR8C-PB, Micron 8JTF51264AZ-1G6E1

@Veyrdite Veyrdite changed the title memtest86+: Hardlocks on (Sandy/Ivy) systems with more than 4GB of RAM (packaging/compilation issue, upstream build works fine) memtest86+: Hardlocks on systems with more than 4GB of RAM (packaging/compilation issue, upstream build works fine) Aug 11, 2021
@Veyrdite
Copy link
Author

I can confirm this bug still occurs for me.

@Frosty-J N.B. memtest.org != memtest86+, different product.

FWIW memtest86+'s "bootable" images never seem to work as well as memtest's unless you put a bootloader (eg grub or syslinux) in front of them. I've been using the official memtest86+ bin by copying the void-memtest entry in my bootloader config and just editing the filename it points to.

@Frosty-J
Copy link

Isn't the one at memtest.org MemTest86+? It has the same name and version numbers, and is identical in both appearance and function.

@yopito
Copy link
Contributor

yopito commented Aug 14, 2021

thanks for this detailed report.
I can't give a try to memtest 5.01 since musl libc on my system.
however, my WIP memtest 5.31b Void package is still working fine, I've just restested it (see #21179)
Would you mind give a try ?
This means building this package by yourself from source using branch https://github.com/yopito/void-packages/tree/memtest.5.31b .
I also might crossbuild this package for you (either glibc or musl) and provide it to you prefer (unofficial package ATM).

@Veyrdite
Copy link
Author

Veyrdite commented Aug 17, 2021

Isn't the one at memtest.org MemTest86+? It has the same name and version numbers, and is identical in both appearance and function.

Woops sorry yes you are right. The commercial one is memtest86.com (not to be confused with https://www.memetest.org/ )

@yopito I would have thought that memtest doesn't use an external libc? I'll make a build once I have some more spare time.

@leahneukirchen
Copy link
Member

I tried Void memtest a few weeks ago with 48G ram and it froze after a few seconds too.

@leahneukirchen
Copy link
Member

Any good reason we just don't ship upstream binaries?

@leahneukirchen
Copy link
Member

Just checked this on my machine, the upstream binary works fine indeed. Unless someone is very interested in fixing the toolchain, I'd suggest to use upstream binary instead and not compile ourselves.

@yopito
Copy link
Contributor

yopito commented Aug 21, 2021

I agree to package upstream binary instead of building from source if it works better.
I'll give a try to package it this way.

yopito added a commit to yopito/void-packages that referenced this issue Aug 21, 2021
source built package has been reported to fail with more than 4GB of RAM.

Closes: void-linux#11691
@yopito
Copy link
Contributor

yopito commented Aug 21, 2021

package binary memtest (see PR above). Could you give a try ?

@paper42 paper42 added the bug Something isn't working label Aug 23, 2021
@github-actions
Copy link

Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.

@github-actions github-actions bot added the Stale label Apr 15, 2022
leahneukirchen pushed a commit that referenced this issue Apr 15, 2022
source built package has been reported to fail with more than 4GB of RAM.

Closes: #11691
atweiden added a commit to atweiden/voidpkgs that referenced this issue Apr 18, 2022
source built package has been reported to fail with more than 4GB of RAM.

Closes: void-linux/void-packages#11691

void-linux/void-packages@ecfbf48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants