Long, multi-threaded compilations, segfault in Ryzen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
I have a Ryzen 1700X on a MSI B350 Motherboard and 64 Gb of RAM (Corsair LPX 2400). If I do a very intensive multi-threaded compilation session sometimes I get a segfault. This seems to be a problem with Ryzen it self nad maybe it is related to the bug described in bug #1690085 but I believe it is not the same. This bug affects many Linux users with Ryzen, see for example this thread in the AMD forum: https:/
It is also very easy to verify if you have a processor with the problem. Fortunately some smart people have created a simple script that always shows the problem in my system and in the systems of the other people of the thread. The script can be found in
https:/
You just have to clone the repository using git, move to the ryzen-test directory and run ./kill_ryzen.sh. It is a very simple script, it downloads gcc-7.1 source code into a vram disk and start #processors simultaneous compilation of it. If any compilation fails it writes a message in the console saying how long it took to get the failure. After a few minutes, the build in my system fails unless I turn off SMT. With SMT off it can take many hours, but still fails in less than one day.
I am opening this bug report because I believe we should try to verify if this is a widespread problem and inform potential users of the problems. Hopefully AMD or the Kernel developers can find a workaround. I have also already opened a bug report in the Linux Kernel Bugzilla (https:/
---
ApportVersion: 2.20.4-0ubuntu4.5
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-id', '/dev/snd/
DistroRelease: Ubuntu 17.04
HibernationDevice: RESUME=
InstallationDate: Installed on 2017-05-30 (63 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
IwConfig:
enp33s0 no wireless extensions.
lo no wireless extensions.
MachineType: Micro-Star International Co., Ltd MS-7A34
Package: linux (not installed)
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
linux-firmware 1.164.1
RfKill:
Tags: zesty
Uname: Linux 4.10.0-29-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo users video
_MarkForUpload: True
dmi.bios.date: 07/06/2017
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1.71
dmi.board.
dmi.board.name: B350 TOMAHAWK (MS-7A34)
dmi.board.vendor: Micro-Star International Co., Ltd
dmi.board.version: 1.0
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Micro-Star International Co., Ltd
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: MS-7A34
dmi.product.
dmi.sys.vendor: Micro-Star International Co., Ltd
tags: | added: kernel-bug-exists-upstream |
The other log file.