Bug 1048495 - GCC 7 causes segfault illegal instruction in glibc with sse instructions using misaligned data on AMD Ryzen
Summary: GCC 7 causes segfault illegal instruction in glibc with sse instructions usin...
Status: RESOLVED DUPLICATE of bug 1048861
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: x86-64 Other
: P5 - None : Major with 5 votes (vote)
Target Milestone: ---
Assignee: Andreas Schwab
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-13 09:20 UTC by Jon Brightwell
Modified: 2017-07-17 06:49 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Brightwell 2017-07-13 09:20:07 UTC
Ref arch bug report https://bugs.archlinux.org/task/54136

0xf7a247c3 in __strspn_sse42 () from /lib/libc.so.6

The rest of the back trace is irrelevant as it's caused by misaligned data according to the arch BR.

Glibc Version        : 2.25-2.4

Workaround compile flag is -mstackrealign at cost of performance. Not sure if GCC or Ryzen bug.

I am trying to test a specific znver1 build but having trouble getting obs not to error with illegal instruction (irony).

Reproduction: run civ 5 or borderlands 2 on tumbleweed - it errors when loading the pulse audio config, same as the arch report.
Comment 1 Forgotten User n8MvQUNHmg 2017-07-13 22:33:52 UTC
Two systems trying to run Borderlands The Pre Sequel

FX-8350

PID: 18055 (BorderlandsPreS)
UID: 1000 (donotreveal)
GID: 100 (users)
Signal: 11 (SEGV)
Timestamp: Thu 2017-07-13 17:20:13 CEST (7h ago)
Command Line: ./BorderlandsPreSequel
Executable: /home/donotreveal/.local/share/Steam/steamapps/common/BorderlandsPreSequel/BorderlandsPreSequel
Control Group: /user.slice/user-1000.slice/session-1.scope
Unit: session-1.scope
Slice: user-1000.slice
Session: 1
Owner UID: 1000 (donotreveal)
Boot ID: 05c2257f075349dabf4960d9d29509c1
Machine ID: 1c7c62a63be84fd781460dd56d719407
Hostname: whitebox
Storage: none
Message: Process 18055 (BorderlandsPreS) of user 1000 dumped core.

[11400.228620] traps: BorderlandsPreS[18055] general protection ip:f712c7c3 sp:ffd53354 error:0 in libc-2.25.so[f6fe3000+1ba000]


Ryzen 1800X

PID: 3961 (BorderlandsPreS)
UID: 1000 (donotreveal)
GID: 100 (users)
Signal: 11 (SEGV)
Timestamp: Thu 2017-07-13 23:11:26 CEST (1min 21s ago)
Command Line: /mnt/DATA-DISK/Steam/steamapps/common/BorderlandsPreSequel/./BorderlandsPreSequel -nostartupmovies
Executable: /mnt/DATA-DISK/Steam/steamapps/common/BorderlandsPreSequel/BorderlandsPreSequel
Control Group: /user.slice/user-1000.slice/session-1.scope
Unit: session-1.scope
Slice: user-1000.slice
Session: 1
Owner UID: 1000 (donotreveal)
Boot ID: 5ee62d5fef9041a89d559f80ab3a9c6e
Machine ID: 45ab74373cc743cd912aaceb9086c517
Hostname: blackbox
Storage: none
Message: Process 3961 (BorderlandsPreS) of user 1000 dumped core.

Coredump entry has no core attached (neither internally in the journal nor externally on disk).

[33245.303587] traps: BorderlandsPreS[3961] general protection ip:f722a7c3 sp:ffa274f4 error:0 in libc-2.25.so[f70e1000+1ba000]


Both point to libc. Not just reserved for Ryzen it seems.
Comment 2 Andreas Schwab 2017-07-17 06:49:55 UTC
.

*** This bug has been marked as a duplicate of bug 1048861 ***