Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675270 - sys-apps/memtest86+ with sys-devel/gcc-8.2.0 "crashes"
Summary: sys-apps/memtest86+ with sys-devel/gcc-8.2.0 "crashes"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-12 13:19 UTC by Simone Scanzoni
Modified: 2021-12-03 16:02 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for Makefile (makefile.patch,325 bytes, patch)
2020-03-27 16:22 UTC, Bernd H.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Scanzoni 2019-01-12 13:19:07 UTC
=sys-apps/memtest86+-5.01-r4 crashes after few seconds if built with sys-devel/gcc-8.2.0-r6 on my Phenom II X4 965 BE (amd64).
I tried with CFLAGS="-march=native -pipe -O2 -mfpmath=sse"

In the same system and with the same or more aggressive cflags it works when built with sys-devel/gcc-7.3.0-r6
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-01-12 15:41:20 UTC
Please post your `emerge --info' output in a comment.
Comment 2 Simone Scanzoni 2019-01-12 19:31:58 UTC
(In reply to Jeroen Roovers from comment #1)
> Please post your `emerge --info' output in a comment.

With "crashes" I mean the computer reboots after a few seconds the test starts.


# emerge --info

Portage 2.3.54 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop, gcc-8.2.0, glibc-2.28-r5, 4.14.91-gentoo x86_64)
=================================================================
System uname: Linux-4.14.91-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.6
KiB Mem:     8163864 total,   5938928 free
KiB Swap:   37560308 total,  37560308 free
Timestamp of repository gentoo: Sat, 12 Jan 2019 02:00:01 +0000
Head commit of repository gentoo: d52db010b15dd49555eaba4beb57e98b63e68da2
Timestamp of repository abendbrot: Thu, 10 Jan 2019 16:05:27 +0000
Head commit of repository abendbrot: 19263de741c029a86255cc5c9fcb6207b6e53516

Timestamp of repository chaoslab: Fri, 11 Jan 2019 08:23:47 +0000
Head commit of repository chaoslab: f3533555031e77b2f5051cdb8a856593137bf824

Timestamp of repository gamerlay: Tue, 25 Dec 2018 21:43:58 +0000
Head commit of repository gamerlay: 754d4b2650eefe6642e8b1efbbb86b222d42f9d7

Timestamp of repository jorgicio: Fri, 11 Jan 2019 01:03:45 +0000
Head commit of repository jorgicio: 302f69d02216e3fc37414444cd7cdceb915b26b3

Head commit of repository lto-overlay: ddbc52af19742221ae618ddb40b7d3dfc681ed64

Timestamp of repository mv: Thu, 03 Jan 2019 21:03:45 +0000
Head commit of repository mv: 3636531102b081b8230a3382b719bb7e10b786a3

Timestamp of repository roslin: Mon, 10 Dec 2018 22:11:37 +0000
Head commit of repository roslin: fe38b9af154ae9685bdde245172b293041b4d33d

Timestamp of repository steam-overlay: Mon, 03 Dec 2018 21:43:54 +0000
Head commit of repository steam-overlay: 512103e56aef51f78b7bc89734b942ca706cd224

sh bash 4.4_p12
ld GNU gold (Gentoo 2.31.1 p5 2.31.1) 1.16
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo
sys-devel/gcc:            6.5.0::gentoo, 7.3.0-r6::gentoo, 8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

abendbrot
    location: /var/db/repos/abendbrot
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/abendbrot.git
    masters: gentoo

chaoslab
    location: /var/db/repos/chaoslab
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/chaoslab.git
    masters: gentoo

gamerlay
    location: /var/db/repos/gamerlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gamerlay.git
    masters: gentoo

jorgicio
    location: /var/db/repos/jorgicio
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/jorgicio.git
    masters: gentoo

lto-overlay
    location: /var/db/repos/lto-overlay
    sync-type: git
    sync-uri: https://github.com/InBetweenNames/gentooLTO.git
    masters: gentoo mv

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo

roslin
    location: /var/db/repos/roslin
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/roslin.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

nonno
    location: /home/nonno/src/overlays/nonno
    masters: gentoo
    priority: 100

local-crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 9999

Installed sets: @gog-dosbox
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL Q3AEULA skype-eula ut2003 Introversion googleearth @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fipa-pta -fno-semantic-interposition -flto=4 -fuse-linker-plugin -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fipa-pta -fno-semantic-interposition -flto=4 -fuse-linker-plugin -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.soeasyto.com/distfiles.gentoo.org/ ftp://gentoo.mirror.web4u.cz/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="it en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="-6 --recursive  --links  --safe-links  --perms  --times --compress  --force  --whole-file  --delete   --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext R S3TC X a52 aac aacplus acl acpi additions aiglx aio alsa amd64 amr archive artworkextra automount ayatana bash-completion bdf bittorrent blas blender-game bluetooth branding btrfs bullet bzip2 cairo caps cdda cdio cdr cgroups cleartype_hinting cli cloudprint consolekit cuda cups curl cxx dbus device-mapper dillo disk-partition djvu dri dts dvb dvd dvdr dvdread dvi edb emboss emotion encode epspdf escreen exif expat extensions external-fuse extra-dark faac fasttrack fat fdformat ffmpeg fftw flac flambda fontconfig fontforge fortran fpm ftp g3dvl gc gd gdbm gdu gegl gif gimp gimpprint glib glibc-omitfp glitz gnet gnuplot gnutella gnutls gold gpm gsl gstreamer gtk gtk2 gtk3 gtkhtml gtkstyle gzip-el harfbuzz hfs hou hpn hwaccel ical iconv icu idn imagemagick imap inkjar inotify inquisitio int-quality iproute2 ipv6 ithreads java java6 javafx javascript joystick jpeg kdeenablefinal kdehiddenvisibility kqemu lapack laptop lastfmradio latex layers lcdfilter lcms liblockfile libmpd libnotify libsamplerate libtirpc libyaml linuxthreads-tls llvm lm_sensors lto lua lvm lyx lzma lzo mad matroska mbrola mdadm mercurial metric midi minizip mmap mmx mmxext mng mod modern-top modplug moznocompose moznoirc moznomail mp3 mp4 mpeg mplayer msn multilib musicbrainz ncat network nlpsolver nls nntp no-old-linux nokia nowin nptl nptlonly nsplugin ntfs ntp nvenc oav ocr ods ogg opencl opengl openimageio openmp optimized-qmake opus pam pango pccts pch pcre pdf pdfimport pgo pipelight plotutils png policykit portage postproc ppds pulseaudio python3 qr qt3support quicktime readline real realmedia rle rpc rtmp rtsp s3tc seccomp secure-delete slp smime smp sms sndfile socks5 sou sound spell sse sse2 sse3 ssl startup-notification stream subtitles svc svg svgz sync-plugin-portage system-harfbuzz system-libvpx system-sqlite t1lib taglib tagwriting tcpd tetex texture-float theora thin-splines threads threadsafe thunar tinfo tordns totem track-src-odirect truetype udev udisks ui unicode unlock-notify upower usb userlocales uvm v4l v4l2 vapigen vchroot vdpau vector-icons vim vim-syntax visibility vkd3d vorbis vpx vulkan wayland-compositor webgl webp websockets webstart widevine wmf wxwidgets wxwindows x264 x265 xattr xcb xcomposite xcsecurity xetex xfce xft xkb xls xml xrandr xulrunner xv xvid xwayland zenmap zlib zvbi" ABI_X86="32 64" ALSA_CARDS="emu10k1" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="gnutls" ELIBC="glibc" ENLIGHTENMENT_MODULES="appmenu backlight battery bluez4 clock conf conf-applications conf-bindings conf-dialogs conf-display conf-interaction conf-intl conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-window-manipulation conf-window-remembers connman contact cpufreq everything fileman fileman-opinfo gadman ibar ibox lokker mixer msgbus music-control notification pager pager16 quickaccess shot start syscon systray tasks teamwork temperature tiling winlist wizard xkbswitch" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev roccat_savu wacom joystick" KERNEL="linux" L10N="it" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="pctv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm" QEMU_USER_TARGETS="arm" ROCCAT_DEVICES="savu" RUBY_TARGETS="ruby24" SANE_BACKENDS="epkowa epson2" STEAMGAMES="bioshock_infinite defenders_quest dirt_rally dwarfs hammerwatch ironclad_tactics journey_down painkiller portal shadow_mordor shatter source_engine tf2 trine2 unwritten_tales" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="clock logout menu trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Simone Scanzoni 2019-01-16 15:35:48 UTC
I just did an emerge -e @world after changing my CFLAGS in /etc/portage/make.conf to: "-march=native -O2 -mfpmath=sse -pipe"
The problem persists.

My new emerge --info :

Portage 2.3.54 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop, gcc-8.2.0, glibc-2.28-r5, 4.14.91-gentoo x86_64)
=================================================================
System uname: Linux-4.14.91-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.6
KiB Mem:     8163864 total,   5957144 free
KiB Swap:   37560308 total,  37560308 free
Timestamp of repository gentoo: Wed, 16 Jan 2019 08:00:01 +0000
Head commit of repository gentoo: 7bc59c0cacc538d943b795f929729e430aeb8c7a
Timestamp of repository abendbrot: Thu, 10 Jan 2019 16:05:27 +0000
Head commit of repository abendbrot: 19263de741c029a86255cc5c9fcb6207b6e53516

Timestamp of repository chaoslab: Tue, 15 Jan 2019 15:03:51 +0000
Head commit of repository chaoslab: 4073d3d192abcfd17396bf7ad1ca19f190056059

Timestamp of repository gamerlay: Tue, 25 Dec 2018 21:43:58 +0000
Head commit of repository gamerlay: 754d4b2650eefe6642e8b1efbbb86b222d42f9d7

Timestamp of repository jorgicio: Tue, 15 Jan 2019 17:43:38 +0000
Head commit of repository jorgicio: c3c3c510d541b13b92a7496c42a656947f33e98f

Timestamp of repository roslin: Mon, 10 Dec 2018 22:11:37 +0000
Head commit of repository roslin: fe38b9af154ae9685bdde245172b293041b4d33d

Timestamp of repository steam-overlay: Mon, 03 Dec 2018 21:43:54 +0000
Head commit of repository steam-overlay: 512103e56aef51f78b7bc89734b942ca706cd224

sh bash 4.4_p12
ld GNU gold (Gentoo 2.31.1 p5 2.31.1) 1.16
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo
sys-devel/gcc:            7.3.0-r6::gentoo, 8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

abendbrot
    location: /var/db/repos/abendbrot
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/abendbrot.git
    masters: gentoo

chaoslab
    location: /var/db/repos/chaoslab
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/chaoslab.git
    masters: gentoo

gamerlay
    location: /var/db/repos/gamerlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gamerlay.git
    masters: gentoo

jorgicio
    location: /var/db/repos/jorgicio
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/jorgicio.git
    masters: gentoo

roslin
    location: /var/db/repos/roslin
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/roslin.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

nonno
    location: /home/nonno/src/overlays/nonno
    masters: gentoo
    priority: 100

local-crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 9999

Installed sets: @gog-dosbox
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL Q3AEULA skype-eula ut2003 Introversion googleearth @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -mfpmath=sse -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.soeasyto.com/distfiles.gentoo.org/ ftp://gentoo.mirror.web4u.cz/"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="-6 --recursive  --links  --safe-links  --perms  --times --compress  --force  --whole-file  --delete   --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext R S3TC X a52 aac aacplus acl acpi additions aiglx aio alsa amd64 amr archive artworkextra automount ayatana bash-completion bdf bittorrent blas blender-game bluetooth branding btrfs bullet bzip2 cairo caps cdda cdio cdr cgroups cleartype_hinting cli cloudprint consolekit cuda cups curl cxx dbus device-mapper dillo disk-partition djvu dri dts dvb dvd dvdr dvdread dvi edb emboss emotion encode epspdf escreen exif expat extensions external-fuse extra-dark faac fasttrack fat fdformat ffmpeg fftw flac flambda fontconfig fontforge fortran fpm ftp g3dvl gc gd gdbm gdu gegl gif gimp gimpprint glib glibc-omitfp glitz gnet gnuplot gnutella gnutls gold gpm gsl gstreamer gtk gtk2 gtk3 gtkhtml gtkstyle gzip-el harfbuzz hfs hou hpn hwaccel ical iconv icu idn imagemagick imap inkjar inotify inquisitio int-quality iproute2 ipv6 ithreads java java6 javafx javascript joystick jpeg kdeenablefinal kdehiddenvisibility kqemu lapack laptop lastfmradio latex layers lcdfilter lcms liblockfile libmpd libnotify libsamplerate libtirpc libyaml linuxthreads-tls llvm lm_sensors lto lua lvm lyx lzma lzo mad matroska mbrola mdadm mercurial metric midi minizip mmap mmx mmxext mng mod modern-top modplug moznocompose moznoirc moznomail mp3 mp4 mpeg mplayer msn multilib musicbrainz ncat network nlpsolver nls nntp no-old-linux nokia nowin nptl nptlonly nsplugin ntfs ntp nvenc oav ocr ods ogg opencl opengl openimageio openmp optimized-qmake opus pam pango pccts pch pcre pdf pdfimport pgo pipelight plotutils png policykit portage postproc ppds pulseaudio python3 qr qt3support quicktime readline real realmedia rle rpc rtmp rtsp s3tc seccomp secure-delete slp smime smp sms sndfile socks5 sou sound spell sse sse2 sse3 ssl startup-notification stream subtitles svc svg svgz sync-plugin-portage system-harfbuzz system-libvpx system-sqlite t1lib taglib tagwriting tcpd tetex texture-float theora thin-splines threads threadsafe thunar tinfo tordns totem track-src-odirect truetype udev udisks ui unicode unlock-notify upower usb userlocales uvm v4l v4l2 vapigen vchroot vdpau vector-icons vim vim-syntax visibility vkd3d vorbis vpx vulkan wayland-compositor webgl webp websockets webstart widevine wmf wxwidgets wxwindows x264 x265 xattr xcb xcomposite xcsecurity xetex xfce xft xkb xls xml xrandr xulrunner xv xvid xwayland zenmap zlib zvbi" ABI_X86="32 64" ALSA_CARDS="emu10k1" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="gnutls" ELIBC="glibc" ENLIGHTENMENT_MODULES="appmenu backlight battery bluez4 clock conf conf-applications conf-bindings conf-dialogs conf-display conf-interaction conf-intl conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-window-manipulation conf-window-remembers connman contact cpufreq everything fileman fileman-opinfo gadman ibar ibox lokker mixer msgbus music-control notification pager pager16 quickaccess shot start syscon systray tasks teamwork temperature tiling winlist wizard xkbswitch" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev roccat_savu wacom joystick" KERNEL="linux" L10N="it" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="pctv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm" QEMU_USER_TARGETS="arm" ROCCAT_DEVICES="savu" RUBY_TARGETS="ruby24" SANE_BACKENDS="epkowa epson2" STEAMGAMES="bioshock_infinite defenders_quest dirt_rally dwarfs hammerwatch ironclad_tactics journey_down painkiller portal shadow_mordor shatter source_engine tf2 trine2 unwritten_tales" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="clock logout menu trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Marc Joliet 2019-02-27 23:05:06 UTC
I happened to find that the coreboot project maintains a fork at https://review.coreboot.org/cgit/memtest86plus.git/, maybe that's worth looking at?
Comment 5 Dmitry 2019-10-15 20:59:06 UTC
I have very similar issue with sys-apps/memtest86+-5.01-r4 built with gcc-8.3.0-r1 on my AMD Phenom II X6 1090T (amd64). After few seconds of testing my PC reboots.
But when built with gcc-7.3.0-r3 it work as it should. No errors found with memory testing, so hardware is ok.

CFLAGS="-march=amdfam10 -O2 -pipe"

ld GNU ld (Gentoo 2.32 p2) 2.32.0
ccache version 3.7.2 [enabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.5.7::gentoo, 3.6.9::gentoo
dev-util/ccache:          3.7.2::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo, 8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Comment 6 Adam Purkrt 2019-10-23 19:56:08 UTC
Just hit the same, memtest hangs after a short while. Compiled with gcc version 9.2.0 (Gentoo 9.2.0-r1 p2). CPU is Celeron(R) CPU G3930. No problems with official binary from www.memtest.org, so this is not a hardware error.
Comment 7 Paul Gover 2019-10-25 10:45:57 UTC
FWIW I too get a reboot shortly after it starts.  I'm compiling with x86_64-pc-linux-gnu-8.3.0, and running on a legacy BIOS booting AMD64 system.
Comment 8 Igor V. Kovalenko 2019-11-10 22:31:28 UTC
Seems like I found the cause. Thanks for coreboot repo link!

https://review.coreboot.org/c/memtest86plus/+/36715
Comment 9 Bernd H. 2020-03-27 16:22:08 UTC
Created attachment 626432 [details, diff]
Patch for Makefile

(In reply to Igor V. Kovalenko from comment #8)
> Seems like I found the cause. Thanks for coreboot repo link!
> 
> https://review.coreboot.org/c/memtest86plus/+/36715

I can confirm this bug as well with x86_64-pc-linux-gnu-9.2.0. In my case the computer only locks up shortly after the tests start.

I have created the attached patch which resolves the problem in my case. It would be great so see it added to the main tree.
Comment 10 Ben 2021-06-26 13:56:25 UTC
I have two machines that appear to run memtest86+ incorrectly when built from Gentoo.

My third gen i5 would reboot about 2 seconds into the first test.

My second gen i7 would report millions of errors implying the RAM was *really* bad.

I first got tipped off by a potential compile error when I have a memtest86+-5 binary that appears to work properly on both of these machines.  Getting new RAM I needed to test whether the RAM is good.  Memtest86+'s behavior was so bad that it seems like Linux shouldn't run, but both machines booted and ran seemingly without hitches despite the memory failures.

After applying the patch that Igor mentioned in comment 8, both the rebooting and the RAM errors went away.

I find it kind of confusing that it seems some people have it working just fine without the patch which bothers, and having it needed for two machines here seems to indicate that this is a widespread issue.
Comment 11 Larry the Git Cow gentoo-dev 2021-09-16 14:56:17 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40197d77e025829d1bbfc3bb97cc3a327b81e7f3

commit 40197d77e025829d1bbfc3bb97cc3a327b81e7f3
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2021-09-16 14:33:55 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2021-09-16 14:56:08 +0000

    sys-apps/memtest86+: runtime fix for >=gcc-8
    
    Bug: https://bugs.gentoo.org/675270
    
    Package-Manager: Portage-3.0.23, Repoman-3.0.3
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 .../memtest86+-5.31b-fix-gcc8-freeze-crash.patch   |  12 +++
 sys-apps/memtest86+/memtest86+-5.31b-r1.ebuild     | 114 +++++++++++++++++++++
 2 files changed, 126 insertions(+)