Happens on each try to start X. See Xorg.0.log. Does not happen with nvidia-drivers-470.86-r1. "Normal" startup when I rename libglxserver_nvidia.so, but I guess then I don't have glx-acceleration. Reproducible: Always Steps to Reproduce: 1.startx 2. 3. Actual Results: X server won't start up Expected Results: X server should start without issues Portage 3.0.19 (python 3.9.7-final-0, default/linux/amd64/17.1, gcc-11.2.0, glibc-2.33-r1, 5.15.6-gentoo x86_64) ================================================================= System uname: Linux-5.15.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-7700HQ_CPU_@_2.80GHz-with-glibc2.33 KiB Mem: 24377104 total, 17843604 free KiB Swap: 36330492 total, 36330492 free Timestamp of repository gentoo: Thu, 02 Dec 2021 20:00:01 +0000 Head commit of repository gentoo: 9eb8b76b2e89da90be7e0b794a86229d7e129677 sh bash 5.1_p8 ld GNU ld (Gentoo 2.37_p1 p0) 2.37 app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r2::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.6.15::gentoo, 3.7.12::gentoo, 3.8.12::gentoo, 3.9.7::gentoo, 3.10.0_p1::gentoo dev-lang/rust: 1.46.0::gentoo dev-lang/rust-bin: 1.47.0-r1::gentoo dev-util/cmake: 3.21.1::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.43.5::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.3-r1::gentoo sys-devel/binutils: 2.37_p1::gentoo sys-devel/gcc: 4.9.4::gentoo, 6.3.0::gentoo, 6.4.0::gentoo, 10.3.0-r2::gentoo, 11.2.0::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.15-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::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-max-age: 24 sync-rsync-verify-metamanifest: yes mate-de-gentoo location: /var/lib/layman/mate-de-gentoo masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /usr/share/maven-bin-3.6/conf" 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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" 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 binpkg-multi-instance 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="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de en_GB en-GB" MAKEOPTS="-j10" PKGDIR="/usr/portage/packages" 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 acl alsa amd64 avx bzip2 cairo clang cli crypt cuda cxx dbus dri egl elogind eselect-ldso exif ffmpeg fftw fortran fuse gdbm gimp gnome-keyring gtk gtk3 hdri iconv imagemagick introspection ipv6 jpeg jpeg2k lapack latex lensfun libglvnd libtirpc minizip mp3 mpeg mplayer multilib nautilus ncurses networkmanager nls nptl opencl openexr opengl openmp pam pango pcre pdf png postscript python raw readline seamonkey seccomp split-usr ssl svg svg2 threads tiff truetype udev unicode v4l vulkan x264 x265 xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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="acpi aes avx avx2 f16c mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" 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" INPUT_DEVICES="libinput synaptics evdev" KERNEL="linux" L10N="de en_GB en-GB" 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="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python2_7 python3_7 python3_8 python3_9 python3_10" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel nvidia crocus" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Created attachment 757512 [details] This is how it look's like with the 470.86 driver. Evenrything is fine.
Created attachment 757513 [details] With version 495.44 a segmentation fault occurs as soon as libglxserver_nvidia.so is loaded.
Could you try with: emerge -1 =nvidia-drivers-495.44-r0 (aka, not -r2) It doesn't seem widespread but I did hear 1 other similar report for -r0 vs -r2 (I really hope nvidia release a new version soon so the hack in -r2 is not necessary, 470.86 is more recent than 495.44 at this point). I'm almost tempted to just mask it but people want it for the new GBM features too.
Created attachment 757552 [details] Now it seems to be fine.
Hi Ionen, I couldn't believe the -r2 hack would make a difference, but it does! The version without -r2 is running without those problems. If this is useful, I compiled it with following USE-flags: "X driver static-libs tools" The 495 version is not only needed for GBM but also if you want to use cuda >= 11.5. Thanks for your support, works for me now.
(In reply to Raimund from comment #5) > Hi Ionen, > > I couldn't believe the -r2 hack would make a difference, but it does! > The version without -r2 is running without those problems. > > If this is useful, I compiled it with following USE-flags: > "X driver static-libs tools" > > The 495 version is not only needed for GBM but also if you want to use cuda > >= 11.5. > > Thanks for your support, works for me now. The latest cuda 11.5 doesn't actually need 495, it just so happens that the toolkit bundles the 495.29.05 driver with it.
(In reply to David Seifert from comment #6) > (In reply to Raimund from comment #5) > > Hi Ionen, > > > > I couldn't believe the -r2 hack would make a difference, but it does! > > The version without -r2 is running without those problems. > > > > If this is useful, I compiled it with following USE-flags: > > "X driver static-libs tools" > > > > The 495 version is not only needed for GBM but also if you want to use cuda > > >= 11.5. > > > > Thanks for your support, works for me now. > > The latest cuda 11.5 doesn't actually need 495, it just so happens that the > toolkit bundles the 495.29.05 driver with it. You are right. I must have misinterpreted some compatibility table. My bad.
(In reply to Raimund from comment #7) > (In reply to David Seifert from comment #6) > > (In reply to Raimund from comment #5) > > > Hi Ionen, > > > > > > I couldn't believe the -r2 hack would make a difference, but it does! > > > The version without -r2 is running without those problems. > > > > > > If this is useful, I compiled it with following USE-flags: > > > "X driver static-libs tools" > > > > > > The 495 version is not only needed for GBM but also if you want to use cuda > > > >= 11.5. > > > > > > Thanks for your support, works for me now. > > > > The latest cuda 11.5 doesn't actually need 495, it just so happens that the > > toolkit bundles the 495.29.05 driver with it. > > You are right. I must have misinterpreted some compatibility table. My bad. No, up until 2 days ago the cuda toolkit did require 495, I just relaxed it ;)
Without the -r2 hack it leads to constant dbus spam (potentially 10000+ requests / second, not so bad on performance but on certain setups it flood logs) ...and with the -r2 hack I've had 1 other report of worse issues, not that I've been able to reproduce so I'm hesitant to try and improve the patch. Still tempted to mask but given been over a month since 495.44 released I'd expect/hope for a new release soon, not sure if it's worth disrupting users further over this now. fwiw I did add this message not that long ago: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84c02be380b8c64f7e6cefbf0311cd0f0f332d79 If impacted, I'd suggest to use stable 470.86 (or 495.44-r0 only if you really need 495 features). And indeed, I've seen @soap lowered nvidia-cuda-toolkit dependencies and that's why I felt I can consider masking now -- no reason for people to use ~testing nvidia-drivers over this dep anymore, has extra meaning given I don't intend to stable NFB (new feature branches) because of things like this.
Note patch is still present in the new nvidia-drivers-495.46-r10 and I doubt it improves anything for this bug. Had hoped to leave this behind but .46 appears to be a minor bump that adds support for more cards without doing any real changes/fixes. If using 470.xx branch then no changes needed, but may need to adjust masks if was using 495.44-r0 and affected by this. This will be the last time I apply the patch, if next version still doesn't improve anything I'll either let the dbus issues happen or flat out mask 495.xx and let it be a opt-in for people that want to use GBM (undecided).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67a0e2ca3f90c7b7fc6748be6ef0c9afa027b77f commit 67a0e2ca3f90c7b7fc6748be6ef0c9afa027b77f Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2022-01-12 02:02:43 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2022-01-12 03:06:50 +0000 x11-drivers/nvidia-drivers: add 510.39.01 Removed dbus workarounds, should hopefully be fixed now which should also fix bug #828433 Bump NV_KERNEL_MAX to 5.16 as it fixes the known build issue with CONFIG_DEVICE_PRIVATE. New dependency on libpciaccess for nvidia-xconfig, but not going to make this a separate USE unlike persistenced (or at least for now) given Xorg depends on this library as well and fits well with USE=X. Newly adds nvidia-powerd.service, but it's not documented, haven't got it to work on my hardware and source appears unavailable at the moment. Currently unsure what it's good for, but perhaps used to manipulate power states based on OpenGL/Vulkan usage (which are known to communicate with it). Closes: https://bugs.gentoo.org/828433 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> x11-drivers/nvidia-drivers/Manifest | 7 + .../nvidia-drivers/nvidia-drivers-510.39.01.ebuild | 451 +++++++++++++++++++++ 2 files changed, 458 insertions(+)