Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 841857 - x11-libs/libX11-1.8: causes desktop to crash on startup
Summary: x11-libs/libX11-1.8: causes desktop to crash on startup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: https://gitlab.freedesktop.org/xorg/l...
Whiteboard:
Keywords: PMASKED, PullRequest
Depends on: 856340
Blocks:
  Show dependency tree
 
Reported: 2022-04-30 14:32 UTC by Holger Hoffstätte
Modified: 2022-07-30 07:15 UTC (History)
9 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2022-04-30 14:32:05 UTC
After updating libX11 from 1.7.5 to 1.8, my XFCE desktop no longer starts (black screen only) thanks to funky errors:

Apr 30 15:34:37 hho kernel: traps: xfsettingsd[1250] trap int3 ip:7f2a03954577 sp:7ffc538a8280 error:0 in libglib-2.0.so.0.7200.1[7f2a03912000+95000]

This happened on two different systems, both of which went back to normal after downgrading libX11 to 1.7.5.


Reproducible: Always

Steps to Reproduce:
1. upgrade to libX11-1.8
2. start X desktop

Actual Results:  
Crash on X desktop startup


Expected Results:  
Successful X desktop startup.
Comment 1 Holger Hoffstätte 2022-04-30 14:39:53 UTC
Interestingly enough: using 1.8 and rebuilding glib prevents the trap, but the result is the same: no XFCE desktop. No errors anywhere.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-30 14:43:15 UTC
Can you include emerge --info please?
Comment 3 Holger Hoffstätte 2022-04-30 14:50:25 UTC
(In reply to Sam James from comment #2)
> Can you include emerge --info please?

Portage 3.0.30 (python 3.10.4-final-0, default/linux/amd64/17.1/desktop, gcc-11.3.0, glibc-2.35-r4, 5.15.37 x86_64)
=================================================================
System uname: Linux-5.15.37-x86_64-AMD_Ryzen_7_PRO_4750U_with_Radeon_Graphics-with-glibc2.35
KiB Mem:    15795612 total,   8449352 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of repository gentoo: Sat, 30 Apr 2022 13:33:05 +0000
Head commit of repository gentoo: 3a889dc7ae6c6fa832156ac77b61d55b780f4d42

sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.10.4::gentoo
dev-lang/rust-bin:         1.60.0::gentoo
dev-util/cmake:            3.23.1::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.3::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.3::gentoo
sys-devel/llvm:            14.0.3::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.17-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r4::gentoo
Repositories:

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

hhoffstaette
    location: /home/holger/Projects/portage
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=native -O2 -fno-semantic-interposition"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-3.8/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"
CXXFLAGS="-pipe -march=native -O2 -fno-semantic-interposition"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--binpkg-respect-use=y --deep --keep-going --nospinner --quiet-build --with-bdeps=y"
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 buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news noinfo 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://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/     http://mirror.netcologne.de/gentoo/     http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/     http://ftp.halifax.rwth-aachen.de/gentoo/     http://ftp.fau.de/gentoo     http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
INSTALL_MASK="/usr/share/gtk-doc /usr/share/locale"
LANG="C.utf8"
LDFLAGS="-Wl,-O1,--as-needed,-z,now"
LINGUAS="en"
MAKEOPTS="-j8 -l8"
PKGDIR="/var/cache/distfiles/pkg"
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="/tmp"
SHELL="/bin/zsh"
USE="X a52 aac acl acpi aio alsa amd64 branding btrfs bzip2 cacert cairo caps cli crypt cups dbus dri drm dts dvdr elogind encode epoll exif flac fontconfig gentoo-vm geoip gif gpg graphicsmagick gtk gui highlight hipe http2 hwloc iconv icu ipv6 jit jitterentropy jpeg jpegxl kpoll lcms libdrm libglvnd libnotify libtirpc lm-sensors logrotate lz4 mad markdown maxminddb minizip mng mp3 mp4 mpeg native-extensions natspec ncurses netlink network nptl nscd objc objc++ offensive ogg ogg123 opengl openmp openssl opus pam pango pcre pcre16 pcre32 pdf png policykit ppds pulseaudio qt5 rar raw readline realtime rocksdb savedconfig seccomp smi smp split-usr ssl startup-notification svg system-bootstrap system-sqlite system-zlib threads tiff truetype udev udisks unicode upower urandom usb uuid vaapi vdpau vorbis vpx webp wxwidgets x264 xattr xcb xml xmp xv xvid xxhash zlib zsh-completion zstd" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" 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="evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="luajit" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 4 Holger Hoffstätte 2022-04-30 14:56:33 UTC
The only commit in 1.8 is https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/afcdb6fb0045c6186aa83d9298f327a7ec1b2cb9 which sounds reasonable in theory.
In practice something seems to have gone wrong. :}
Comment 5 Ionen Wolkens gentoo-dev 2022-04-30 15:58:42 UTC
Just tried to upgrade my stable VM to ~arch libX11-1.8 and started a default xfce4 session (nothing configured). Haven't looked in depth but it gives me a black screen unless I revert to stable 1.7.3.

There may indeed be something to this.
Comment 6 Adrian Bassett 2022-04-30 16:00:42 UTC
(In reply to Ionen Wolkens from comment #5)
> Just tried to upgrade my stable VM to ~arch libX11-1.8 and started a default
> xfce4 session (nothing configured). Haven't looked in depth but it gives me
> a black screen unless I revert to stable 1.7.3.
> 
> There may indeed be something to this.
Can confirm similar experience, with xfce4 and slim
Comment 7 Larry the Git Cow gentoo-dev 2022-05-01 01:24:17 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d084beb8c1eb8faafc8b88ba542d0388a85ca71

commit 0d084beb8c1eb8faafc8b88ba542d0388a85ca71
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-05-01 01:23:05 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-05-01 01:23:05 +0000

    profiles: Mask >=x11-libs/libX11-1.8
    
    Bug: https://bugs.gentoo.org/841857
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 profiles/package.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 8 jospezial 2022-05-01 04:36:22 UTC
No issue here with Plasma (x11 and wayland) started with sddm.
No xfce installed.

I see everything X related depends on this lib. Will report if I see anything other crashing if I keep the new version.
Comment 9 Ionen Wolkens gentoo-dev 2022-05-01 05:13:21 UTC
(In reply to jospezial from comment #8)
> No issue here with Plasma (x11 and wayland) started with sddm.
> No xfce installed.
Haven't seen issues with non-xfce so far, "possible" it's due to a misuse of the library rather than a problem with the library itself -- and this upgrade is just revealing the issue. Albeit there's a lot of old code around using libX11, so there may be more issues to be found.
Comment 10 Javran Cheng 2022-05-03 00:27:35 UTC
Ebuild repo commit log led me here. I use xfce4-settings without session (using XMonad as WM) - can confirm some weird behavior with x11-libs/libX11-1.8: whenever xfsettingsd starts, the screen seems to freeze and I can only move my mouse - dragging windows / keyboard input does nothing. However if I SSH and kill xfsettingsd, all my previous window dragging and keyboard input does register.

Reverting back to x11-libs/libX11-1.7.5 everything looks normal again.
Comment 11 jospezial 2022-06-24 22:30:55 UTC
testing 1.8.1 (masked) without xfce
Comment 12 Holger Hoffstätte 2022-06-30 14:34:41 UTC
So this really turned out to be a bug in xfcesettingsd.
Progress: https://gitlab.xfce.org/xfce/xfce4-settings/-/issues/369
Patch available, works fine.
Comment 13 Larry the Git Cow gentoo-dev 2022-07-05 15:40:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ba838af850a96e5a1814bd32fe75f0bb25ef80c

commit 5ba838af850a96e5a1814bd32fe75f0bb25ef80c
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-07-05 15:38:24 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-07-05 15:38:24 +0000

    profiles: Unmask >=x11-libs/libX11-1.8
    
    Closes: https://bugs.gentoo.org/841857
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 profiles/package.mask | 4 ----
 1 file changed, 4 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24e063e91b91e7a82746027d9adad3d18e07be32

commit 24e063e91b91e7a82746027d9adad3d18e07be32
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-07-05 15:37:46 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-07-05 15:37:46 +0000

    x11-libs/libX11: Add blocker against xfce4-settings
    
    Closes: https://bugs.gentoo.org/841857
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-libs/libX11/libX11-1.8.1.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Comment 14 Mark H. Wood 2022-07-28 12:45:36 UTC
x11-wm/fvwm-2.6.9 is also affected.  It hangs, or just stops responding meaningfully to events, before making any visible changes i.e. framing existing windows.  No errors are reported.  Backing down to libX11-1.7.5 cures this behavior.

I installed and temporarily switched to blackbox so I could get work done.  It was not affected by this issue.
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-28 13:21:24 UTC
(In reply to Mark H. Wood from comment #14)
> x11-wm/fvwm-2.6.9 is also affected.  It hangs, or just stops responding
> meaningfully to events, before making any visible changes i.e. framing
> existing windows.  No errors are reported.  Backing down to libX11-1.7.5
> cures this behavior.
> 
> I installed and temporarily switched to blackbox so I could get work done. 
> It was not affected by this issue.

Please file a new bug for this issue as we concluded it's a bug in the applications, not libX11.