Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 785289 - x11-drivers/nvidia-drivers-390.141-r1[abi_x86_32]: steam crashes after update (steam.sh: line 771: 11829 Segmentation fault)
Summary: x11-drivers/nvidia-drivers-390.141-r1[abi_x86_32]: steam crashes after update...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords: PullRequest
: 785673 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-04-24 00:03 UTC by Benn Snyder
Modified: 2021-04-25 19:29 UTC (History)
3 users (show)

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


Attachments
tls.patch (tls.patch,320 bytes, patch)
2021-04-24 00:30 UTC, Ionen Wolkens
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benn Snyder 2021-04-24 00:03:27 UTC
Steam crashes immediately when run on nvidia-drivers-390.141-r1 or nvidia-drivers-390.143.  There is no crash when running against old nvidia-drivers-390.140.

$ xhost +SI:localuser:steam && sudo -i -u steam STEAM_RUNTIME=1 /usr/bin/steam
localuser:steam being added to access control list
/home/steam/.local/share/Steam/steam.sh: line 117: VERSION_ID: unbound variable
/home/steam/.local/share/Steam/steam.sh: line 117: VERSION_ID: unbound variable
Running Steam on gentoo  64-bit
STEAM_RUNTIME is enabled by the user
/home/steam/.local/share/Steam/steam.sh: line 303: zenity: command not found
/home/steam/.local/share/Steam/ubuntu12_32/steam-runtime/setup.sh: line 488: zenity: command not found
Steam client's requirements are satisfied
WARNING: Using default/fallback debugger launch
/home/steam/.local/share/Steam/ubuntu12_32/steam
[2021-04-23 19:49:16] Startup - updater built Apr 12 2021 18:51:36
Installing breakpad exception handler for appid(steam)/version(1618256785)
/home/steam/.local/share/Steam/steam.sh: line 771: 11829 Segmentation fault      $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"


Reproducible: Always




$ emerge --info
Portage 3.0.17 (python 3.8.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.2.0, glibc-2.32-r7, 5.4.97-gentoo x86_64)
=================================================================
System uname: Linux-5.4.97-gentoo-x86_64-AMD_FX-tm-6300_Six-Core_Processor-with-glibc2.2.5
KiB Mem:    16348020 total,  11432312 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Fri, 23 Apr 2021 20:35:23 +0000
Head commit of repository gentoo: 9391572e14418a66fba53eeeed7420ed3a735800

Head commit of repository dotnet: b04336d19ec2614c0ad424867adea8826a785eea

Head commit of repository steam-overlay: 9a1249fdb3e3005041fb768af02e235c46dc4a18

sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
ccache version 4.2 [enabled]
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18_p8::gentoo, 3.8.8_p1::gentoo, 3.9.2_p1::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/ccache:          4.2::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

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

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

overboard
    location: /home/benn/code/overboard
    masters: gentoo

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

Installed sets: @applications, @esteam, @games, @plasma-desktop, @util
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="-j3 --keep-going"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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 ccache 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 qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US"
MAKEOPTS="-j6"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X aac acl acpi activities alsa amd64 berkdb branding bzip2 cairo cdr chromium cli crypt dbus declarative dri dts dvdr elogind emboss encode exif ffmpeg flac fortran gdbm gif git gpm gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc lm-sensors mad mng mp3 mp4 mpeg multilib ncurses net45 networkmanager nls nptl offensive ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp smp spell split-usr ssl startup-notification svg system-ffmpeg tcpd threads tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis widgets wifi x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis 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="libinput evdev" KERNEL="linux" L10N="en_US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Benn Snyder 2021-04-24 00:05:46 UTC
typo: the old version that works correctly is nvidia-drivers-390.141
Comment 2 Ionen Wolkens gentoo-dev 2021-04-24 00:30:21 UTC
Created attachment 702114 [details, diff]
tls.patch

(In reply to Benn Snyder from comment #1)
> typo: the old version that works correctly is nvidia-drivers-390.141
Haven't tried steam but I think I know what's happening. This is a 390-specific issue that I've handled for 64bit but overlooked for 32bit libraries.

Would be helpful if could try the attached ebuild rough patch (just to see if it works).
Comment 3 Benn Snyder 2021-04-24 00:49:16 UTC
(In reply to Ionen Wolkens from comment #2)
> Created attachment 702114 [details, diff] [details, diff]
> tls.patch
> 
> (In reply to Benn Snyder from comment #1)
> > typo: the old version that works correctly is nvidia-drivers-390.141
> Haven't tried steam but I think I know what's happening. This is a
> 390-specific issue that I've handled for 64bit but overlooked for 32bit
> libraries.
> 
> Would be helpful if could try the attached ebuild rough patch (just to see
> if it works).

Yeah that fixed it.  Thanks!
Comment 4 Ionen Wolkens gentoo-dev 2021-04-24 00:53:34 UTC
(In reply to Benn Snyder from comment #3)
> Yeah that fixed it.  Thanks!
Alright, thanks for reporting and testing, will get this fixed in the tree soon.
Comment 5 Larry the Git Cow gentoo-dev 2021-04-25 08:51:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68c9089b79a78e3352c7c92e229d141d1ccf60f3

commit 68c9089b79a78e3352c7c92e229d141d1ccf60f3
Author:     Ionen Wolkens <sudinave@gmail.com>
AuthorDate: 2021-04-25 08:51:22 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-04-25 08:51:22 +0000

    x11-drivers/nvidia-drivers: prevent 390.xx abi_x86_32 GLX segfault
    
    Regression since 390.141-r1.
    
    Alternate libnvidia-tls.so from the tls/ directory is necessary for
    390.xx branch and legacy libglx.so but wasn't used with abi_x86_32.
    
    -d 32 test is for x86 keyword without the directory (wasn't affected).
    
    Closes: https://github.com/gentoo/gentoo/pull/20520
    Closes: https://bugs.gentoo.org/785289
    Signed-off-by: Ionen Wolkens <sudinave@gmail.com>
    Signed-off-by: David Seifert <soap@gentoo.org>

 ...-drivers-390.141-r1.ebuild => nvidia-drivers-390.141-r2.ebuild} | 7 ++++++-
 ...dia-drivers-390.143.ebuild => nvidia-drivers-390.143-r1.ebuild} | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)
Comment 6 Ionen Wolkens gentoo-dev 2021-04-25 18:37:14 UTC
*** Bug 785673 has been marked as a duplicate of this bug. ***
Comment 7 Balint Dobai-Pataky 2021-04-25 19:29:30 UTC
yes, the upgrade fixed it
thank you