Bug 18261 - memtest does not boot from legacy grub menu entry (immediate reboot)
Summary: memtest does not boot from legacy grub menu entry (immediate reboot)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard: MGA5TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-25 17:05 CEST by Rolf Pedersen
Modified: 2021-01-09 13:18 CET (History)
7 users (show)

See Also:
Source RPM: memtest86+-5.01-5.mga5.src.rpm, memtest86+-5.01-10.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Rolf Pedersen 2016-04-25 17:05:58 CEST
I'm running up-to-date Mageia 5 64-bit.  When I choose memtest from the grub menu, the computer reboots immediately.  I believe the grub menu entry is created by a script when memtest86+ is installed.

[rolf@p8z68 ~]$ ll /boot/memtest.bin 
-rw-r--r-- 1 root root 182704 09-21-2014 19:33 /boot/memtest.bin
[rolf@p8z68 ~]$ rpm -V memtest86+-5.01-5.mga5
[rolf@p8z68 ~]$

The menu entry is:

title memtest86+
kernel (hd0,4)/boot/memtest.bin

I googled on grub legacy menu entry and found another, which I tried:

title memtest86+
kernel (hd0,4)/boot/memtest.bin
quiet
boot

The behavior is the same.  Search on the forum showed a similar report:
https://forums.mageia.org/en/viewtopic.php?f=7&t=8257


[rolf@p8z68 ~]$ lspcidrake
unknown         : LSI Corporation|Venus Modem (V90, 56KFlex) [COMMUNICATION_OTHER]
shpchp          : ASMedia Technology Inc.|ASM1083/1085 PCIe to PCI Bridge [BRIDGE_PCI] (rev: 01)
snd_virtuoso    : C-Media Electronics Inc|CMI8788 [Oxygen HD Audio] [MULTIMEDIA_AUDIO]
shpchp          : PLX Technology, Inc.|PEX8112 x1 Lane PCI Express-to-PCI Bridge [BRIDGE_PCI] (rev: aa)
unknown         : Marvell Technology Group Ltd.|88SE9128 PCIe SATA 6 Gb/s RAID controller with HyperDuo [STORAGE_SATA] (rev: 11)
unknown         : JMicron Technology Corp.|JMB362 SATA Controller [STORAGE_SATA] (rev: 10)
r8169           : Realtek Semiconductor Co., Ltd.|RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [NETWORK_ETHERNET] (rev: 06)
firewire_ohci   : VIA Technologies, Inc.|VT6315 Series Firewire Controller [SERIAL_FIREWIRE] (rev: 01)
shpchp          : PLX Technology, Inc.|PEX 8608 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch [BRIDGE_PCI] (rev: ba)
shpchp          : PLX Technology, Inc.|PEX 8608 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch [BRIDGE_PCI] (rev: ba)
shpchp          : PLX Technology, Inc.|PEX 8608 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch [BRIDGE_PCI] (rev: ba)
shpchp          : PLX Technology, Inc.|PEX 8608 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch [BRIDGE_PCI] (rev: ba)
shpchp          : PLX Technology, Inc.|PEX 8608 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch [BRIDGE_PCI] (rev: ba)
shpchp          : PLX Technology, Inc.|PEX 8608 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch [BRIDGE_PCI] (rev: ba)
shpchp          : PLX Technology, Inc.|PEX 8608 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch [BRIDGE_PCI] (rev: ba)
shpchp          : PLX Technology, Inc.|PEX 8608 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch [BRIDGE_PCI] (rev: ba)
xhci_pci        : NEC Corporation|uPD720200 USB 3.0 Host Controller [SERIAL_USB] (rev: 04)
xhci_pci        : NEC Corporation|uPD720200 USB 3.0 Host Controller [SERIAL_USB] (rev: 04)
unknown         : NVIDIA Corporation|Device 0fba [MULTIMEDIA_AUDIO_DEV] (rev: a1)
Card:NVIDIA GeForce 420 series and later: NVIDIA Corporation|GM206 [GeForce GTX 960] [DISPLAY_VGA] (rev: a1)
i2c_i801        : Intel Corporation|6 Series/C200 Series Chipset Family SMBus Controller [SERIAL_SMBUS] (rev: 05)
unknown         : Intel Corporation|6 Series/C200 Series Chipset Family SATA AHCI Controller [STORAGE_SATA] (rev: 05)
lpc_ich         : Intel Corporation|Z68 Express Chipset Family LPC Controller [BRIDGE_ISA] (rev: 05)
ehci_pci        : Intel Corporation|6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [SERIAL_USB] (rev: 05)
shpchp          : Intel Corporation|6 Series/C200 Series Chipset Family PCI Express Root Port 8 [BRIDGE_PCI] (rev: b5)
shpchp          : Intel Corporation|6 Series/C200 Series Chipset Family PCI Express Root Port 7 [BRIDGE_PCI] (rev: b5)
shpchp          : Intel Corporation|6 Series/C200 Series Chipset Family PCI Express Root Port 5 [BRIDGE_PCI] (rev: b5)
shpchp          : Intel Corporation|6 Series/C200 Series Chipset Family PCI Express Root Port 1 [BRIDGE_PCI] (rev: b5)
ehci_pci        : Intel Corporation|6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [SERIAL_USB] (rev: 05)
e1000e          : Intel Corporation|82579V Gigabit Network Connection [NETWORK_ETHERNET] (rev: 05)
mei_me          : Intel Corporation|6 Series/C200 Series Chipset Family MEI Controller #1 [COMMUNICATION_OTHER] (rev: 04)
Card:Intel 810 and later: Intel Corporation|2nd Generation Core Processor Family Integrated Graphics Controller [DISPLAY_OTHER] (rev: 09)
shpchp          : Intel Corporation|Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port [BRIDGE_PCI] (rev: 09)
shpchp          : Intel Corporation|Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port [BRIDGE_PCI] (rev: 09)
unknown         : Intel Corporation|2nd Generation Core Processor Family DRAM Controller [BRIDGE_HOST] (rev: 09)
hub             : Linux 4.1.15-desktop-2.mga5 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub]
hub             : Intel Corp.|Integrated Rate Matching Hub [Hub|Unused|Full speed (or root) hub]
pl2303          : Prolific Technology Inc.|USB 2.0 To COM Device
usblp           : Brother|MFC-J5620DW [Printer|Printer|Bidirectional]
hub             : Linux 4.1.15-desktop-2.mga5 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub]
hub             : Intel Corp.|Integrated Rate Matching Hub [Hub|Unused|Full speed (or root) hub]
hub             : Linux 4.1.15-desktop-2.mga5 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub]
hub             : Linux 4.1.15-desktop-2.mga5 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub]
usbhid          : Logitech|USB Receiver [Human Interface Device|Boot Interface Subclass|Keyboard]
btusb           : Cambridge Silicon Radio, Ltd|Bluetooth Dongle (HCI mode) [Wireless|Radio Frequency|Bluetooth]
hub             : Linux 4.1.15-desktop-2.mga5 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub]
hub             : Linux 4.1.15-desktop-2.mga5 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub]
hid_logitech_hidpp: Logitech Performance MX
hid_logitech_hidpp: Logitech K360
hid_logitech_hidpp: Logitech M315/M235
hid_logitech_dj : Logitech USB Receiver
hid_logitech_dj : Logitech USB Receiver
hid_logitech_dj : Logitech USB Receiver
Comment 1 Rolf Pedersen 2016-04-28 04:48:20 CEST
I have an installation of ROSA Desktop.Fresh release 2012.1 (Desktop) for x86_64 on this machine with memtest86+-4.20-2-rosa2012.1.x86_64 installed.  I can boot memtest.bin in that installation from the legacy grub command line at boot.  I can copy that file to /boot of Mageia 5 and boot it from the legacy grub menu entry, as written by the memtest installation:

title memtest86+
kernel (hd0,4)/boot/memtest.bin

I would say the problem lies with the newer memtest.bin or the interaction with my hardware, perhaps.  There are many disks, partitions, and installations on this machine, so I found this memtest.bin in grub shell with `find /boot/memtest.bin` then tried it.  Some analysis:

[root@p8z68 rolf]# mount /dev/sde2 /mnt/disk
[root@p8z68 rolf]# mount --bind /dev /mnt/disk/dev/
[root@p8z68 rolf]# mount --bind /sys /mnt/disk/sys/
[root@p8z68 rolf]# mount --bind /proc /mnt/disk/proc/

[root@p8z68 rolf]# ll /mnt/disk/boot/memtest.bin 
-rw-r--r-- 1 root root 176760 Oct 19  2012 /mnt/disk/boot/memtest.bin

[root@p8z68 rolf]# ll /boot/memtest.bin
-rwxr-xr-x 1 root root 182704 Sep 21  2014 /boot/memtest.bin*

[root@p8z68 rolf]# chroot /mnt/disk

[root@p8z68 /]# rpm -qf /boot/memtest.bin
memtest86+-4.20-2-rosa2012.1.x86_64

[root@p8z68 /]# urpmq --sources memtest86+
http://mirror.rosalab.ru/rosa2012.1/repository/x86_64/media/main/release/memtest86+-4.20-2-rosa2012.1.x86_64.rpm

[root@p8z68 /]# cat /etc/release
ROSA Desktop.Fresh release 2012.1 (Desktop) for x86_64
Comment 2 Rolf Pedersen 2016-04-28 16:54:05 CEST
There is a CD iso for version 5.01 at memtest.org

http://memtest.org/download/5.01/memtest86+-5.01.iso.gz

[root@p8z68 memtest]# ll memtest86+-5.01.iso
-rw-r--r-- 1 rolf audio 1839104 Aug  3  2014 memtest86+-5.01.iso

Burned to CD that boots and runs on this machine.  The mounted iso has /boot and there is what looks like a floppy image inside

[root@p8z68 memtest]# ll /mnt/disk/boot/
total 1442
-r-xr-xr-x 1 root root    2048 Aug 10  2013 boot.cat*
-r-xr-xr-x 1 root root 1474560 Aug 10  2013 memtest.img*

FWIW, I tried putting memtest.img in MGA5 /boot, adding to menu.lst, but that does not work.  At google, it looks like grub2 can boot from an iso, I'm using legacy grub, but memtest.bin ought to work; 4.20 does.
Comment 3 Marja Van Waes 2016-04-28 20:10:36 CEST
Assigning to all packagers collectively, since there is no maintainer for this package.

CC: (none) => marja11
Assignee: bugsquad => pkg-bugs

Comment 4 Thierry Vignaud 2016-05-31 14:06:25 CEST
I've seen this on mga6

Source RPM: memtest86+-5.01-5.mga5.src.rpm => memtest86+-5.01-5.mga5.src.rpm, memtest86+-5.01-10.mga6.src.rpm
CC: (none) => thierry.vignaud
Version: 5 => Cauldron
Whiteboard: (none) => MGA5TOO

Thierry Vignaud 2016-05-31 14:07:35 CEST

Summary: memtest does not boot from legacy grub menu entry => memtest does not boot from legacy grub menu entry (immediate reboot)
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=18508

Morgan Leijström 2019-08-07 10:33:00 CEST

CC: (none) => fri
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=25232

Comment 5 José Jorge 2019-08-07 20:50:26 CEST
(In reply to Rolf Pedersen from comment #1)
> I would say the problem lies with the newer memtest.bin or the interaction
> with my hardware, perhaps.

This problem is there since memtest5.x for some hardware. You can still install MGA3 memtest which is version 4.20 and works everywhere.

The problem is not in GRUB, it is the memtest86 code that segfaults when built with a recent gcc on some CPUs.

CC: (none) => lists.jjorge

Javier Díaz 2020-03-17 11:13:01 CET

CC: (none) => javier_diaz

Comment 6 Jean-Christophe Cardot 2020-06-21 00:11:46 CEST
I confirm the problem here, on a Lenovo M93p, CPU is i7 4770. Same behaviour.

CC: (none) => mageia

Comment 7 Jean-Christophe Cardot 2020-06-21 00:12:28 CEST
Sorry, forgot to mention: I'm running an up to date MGA7
Comment 8 Jean-Christophe Cardot 2020-06-21 00:44:17 CEST
Just tested memtest86+ from cauldron: still fails.
installed this one:
http://mirrors.kernel.org/mageia/distrib/cauldron/x86_64/media/core/release/memtest86%2B-5.31-1.mga8.x86_64.rpm
and still reboots directly.

Note: in bug #25232 Pcmemtest is mentioned, a fork/rewrite of memtest86+, also present in Cauldron, which works in my case.
Comment 9 Marc Krämer 2021-01-09 12:42:53 CET
should we just close this one, as memtest is dropped from cauldron?

CC: (none) => mageia

Comment 10 Morgan Leijström 2021-01-09 13:18:23 CET
Yes, closing as fixed.

We will not release new Mageia 7 isos, and pcmemtest is working on Mageia 8 ISOs.

If any problem with pcmemtest on Mageia 8 ISOs, please file a new bug.

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.