Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644688 - =x11-base/xorg-server-1.19.6 dixGetPrivateAddr: Assertion `key->initialized' failed
Summary: =x11-base/xorg-server-1.19.6 dixGetPrivateAddr: Assertion `key->initialized' ...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-15 20:10 UTC by Steffen Hau
Modified: 2018-02-26 12:44 UTC (History)
2 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 Steffen Hau 2018-01-15 20:10:03 UTC
x11-base/xorg-server-1.19.6 made X stop working. It crashes with:

X: /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/include/privates.h:122: dixGetPrivateAddr: Assertion `key->initialized' failed.
(EE) 
(EE) Backtrace:
(EE) 0: X (xorg_backtrace+0x4d) [0x55b46159f3cd]
(EE) 1: X (0x55b4613d1000+0x2314f9) [0x55b4616024f9]
(EE) 2: /lib64/libpthread.so.0 (0x7ff0e75d5000+0x14100) [0x7ff0e75e9100]
(EE) 3: /lib64/libc.so.6 (gsignal+0x110) [0x7ff0e7246f20]
(EE) 4: /lib64/libc.so.6 (abort+0x1c7) [0x7ff0e7248a77]
(EE) 5: /lib64/libc.so.6 (0x7ff0e7211000+0x2d84a) [0x7ff0e723e84a]
(EE) 6: /lib64/libc.so.6 (0x7ff0e7211000+0x2d8d2) [0x7ff0e723e8d2]
(EE) 7: X (0x55b4613d1000+0x3d453) [0x55b46140e453]
(EE) 8: X (0x55b4613d1000+0xe683f) [0x55b4614b783f]
(EE) 9: /usr/lib64/xorg/modules/extensions/libglx.so (0x7ff0e6c37000+0x36dba) [0x7ff0e6c6ddba]
(EE) 10: /usr/lib64/xorg/modules/extensions/libglx.so (0x7ff0e6c37000+0x372d3) [0x7ff0e6c6e2d3]
(EE) 11: /usr/lib64/xorg/modules/extensions/libglx.so (0x7ff0e6c37000+0x35335) [0x7ff0e6c6c335]
(EE) 12: X (InitExtensions+0x22) [0x55b461482ec2]
(EE) 13: X (0x55b4613d1000+0x3fa10) [0x55b461410a10]
(EE) 14: /lib64/libc.so.6 (__libc_start_main+0xea) [0x7ff0e7231f0a]
(EE) 15: X (_start+0x2a) [0x55b4614117ea]
(EE) 
(EE) 
Fatal server error:
(EE) Caught signal 6 (Aborted). Server aborting
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.


A backtrace when X beeing executed in gdb:
X: /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/include/privates.h:122: dixGetPrivateAddr: Assertion `key->initialized' failed.

Thread 1 "X" received signal SIGABRT, Aborted.
0x00007f2505816f20 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007f2505816f20 in raise () from /lib64/libc.so.6
#1  0x00007f2505818a77 in abort () from /lib64/libc.so.6
#2  0x00007f250580e84a in ?? () from /lib64/libc.so.6
#3  0x00007f250580e8d2 in __assert_fail () from /lib64/libc.so.6
#4  0x000056207f008453 in dixGetPrivateAddr.isra.3.part.4.lto_priv.493 () at /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/include/privates.h:122
#5  0x000056207f0b183f in dixGetPrivateAddr () at /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/composite/compwindow.c:325
#6  dixLookupPrivate (key=0x56207f2780a0 <CompScreenPrivateKeyRec>, privates=<optimized out>) at /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/include/privates.h:165
#7  compIsAlternateVisual (pScreen=<optimized out>, visual=<optimized out>) at /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/composite/compwindow.c:326
#8  0x00007f250523ddba in pickFBConfig.isra.2 (visual=0x56207fff1830) at /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/glx/glxscreens.c:283
#9  __glXScreenInit.part.3 (pGlxScreen=pGlxScreen@entry=0x562080007640, pScreen=pScreen@entry=0x56207fff1150) at /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/glx/glxscreens.c:350
#10 0x00007f250523e2d3 in __glXScreenInit (pScreen=0x56207fff1150, pGlxScreen=0x562080007640) at /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/glx/glxscreens.c:321
#11 __glXDRIscreenProbe (pScreen=0x56207fff1150) at /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/glx/glxdri2.c:1010
#12 0x00007f250523c335 in GlxExtensionInit () at /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/glx/glxext.c:399
#13 0x000056207f07cec2 in InitExtensions (argc=<optimized out>, argv=<optimized out>) at /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/mi/miinitext.c:339
#14 0x000056207f00aa10 in dix_main (envp=<optimized out>, argv=0x7ffff90ae978, argc=1) at /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/dix/main.c:201
#15 main (argc=1, argv=0x7ffff90ae978, envp=<optimized out>) at /home/gentoo/tmp/portage/x11-base/xorg-server-1.19.6/work/xorg-server-1.19.6/dix/stubmain.c:34


I'm using
x11-drivers/xf86-video-intel-2.99.917_p20171018
media-libs/mesa-17.3.1


Looks like I'm not the only one facing this issue:
https://bugs.archlinux.org/task/56994
https://forums.fedoraforum.org/showthread.php?316901-Xorg-update-causes-segfault-in-F27
https://forum.manjaro.org/t/xorg-core-dumps-after-update-to-1-19-6-0-on-2017-12-23/36915/


Downgrading xorg-server to 1.19.5 solves the issue.


Please let me know if you need further information. 

emerge --info xorg-server
Portage 2.3.19 (python 3.6.4-final-0, default/linux/amd64/17.1/systemd, gcc-7.2.0, glibc-2.26-r5, 4.14.13-HAUIHAU x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.13-HAUIHAU-x86_64-Intel-R-_Core-TM-_i3-4330_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:     7814508 total,   5325028 free
KiB Swap:   16777208 total,  16219440 free
Timestamp of repository gentoo: Mon, 15 Jan 2018 13:30:01 +0000
Head commit of repository gentoo: 26888ba1da3948f43233ef1d3d0aed77ab1b1f66
sh bash 4.4_p12
ld GNU gold (Gentoo 2.29.1 p3 2.29.1) 1.14
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.6.4::gentoo
dev-util/cmake:           3.10.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            7.2.0-r1::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

hauihau
    location: /usr/local/portage/hauihau
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe -flto=5 -fuse-linker-plugin"
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 -O3 -pipe -flto=5 -fuse-linker-plugin -fno-delete-null-pointer-checks -flifetime-dse=1"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --keep-going=y --quiet-build=y --quiet-fail=y --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned 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="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-march=native -O3 -pipe -flto=5 -fuse-linker-plugin -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--gc-sections -Wl,--icf=safe"
LINGUAS="de"
MAKEOPTS="-j5"
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="/home/gentoo/tmp/"
USE="X a52 aac aalib acl alsa amd64 avx avx2 bash-completion berkdb bluray branding bzip2 cairo caps cdda cddb cdparanoia cdr cli cracklib crypt curl cxx dbus dga dri dts dv dvd egl encode exif ffmpeg flac fontconfig fortran ftp gd gdbm gif gmp gstreamer iconv icu imagemagick imlib ipv6 jpeg jpeg2k lame libcaca libnotify libsamplerate lzma lzo mad matroska mmx mmxext mng modules mp3 mpeg mtp multilib musepack ncurses nls nptl nsplugin ogg openal opengl openmp pam pcre pdf png policykit pulseaudio qt5 quicktime readline seccomp sndfile spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 svg syslog systemd tcpd theora threads tiff truetype udev unicode usb v4l vaapi vcd vim-syntax vorbis wavpack wayland webkit x264 xattr xcb xcomposite xinerama xml xmp xorg xosd xpm xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

x11-base/xorg-server-1.19.6::gentoo was built with the following:
USE="glamor ipv6 suid systemd udev wayland xorg -debug -dmx -doc -kdrive -libressl -minimal (-selinux) -static-libs -tslib -unwind -xcsecurity -xephyr -xnest -xvfb" ABI_X86="(64)"
LDFLAGS="-march=native -O3 -pipe -flto=5 -fuse-linker-plugin -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--gc-sections -Wl,--icf=safe -Wl,-z,lazy"
Comment 1 Steffen Hau 2018-02-26 12:44:29 UTC
I've found a Gentoo forum entry which mentioned the failure when Xorg Composite extension is disabled. This was the case on my htpc, after removing that line, the error was gone.