Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539918 - x11-drivers/nvidia-drivers x11-base/xorg-server-1.17.1[glamor] segmentation fault in /usr/lib64/libxcb.so.1 at xcb_writev()
Summary: x11-drivers/nvidia-drivers x11-base/xorg-server-1.17.1[glamor] segmentation f...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-12 23:29 UTC by Rustam Karimov
Modified: 2017-01-26 07:01 UTC (History)
4 users (show)

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


Attachments
Xorg.0.log.old USE=glamor (Xorg.0.log.old,9.16 KB, text/plain)
2015-02-12 23:32 UTC, Rustam Karimov
Details
Xorg.0.log USE=-glamor (Xorg.0.log,25.57 KB, text/plain)
2015-02-12 23:33 UTC, Rustam Karimov
Details
radeon xorg log (Xorg.1.log,27.65 KB, text/plain)
2015-02-18 20:06 UTC, DaggyStyle
Details
Xorg.0.log.old (Xorg.txt,851.26 KB, text/plain)
2015-11-02 17:03 UTC, Austin English (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rustam Karimov 2015-02-12 23:29:19 UTC
I have laptop with optimus video card and I use proprietary video driver.
After updating to xorg-server-1.17.1 with glamor use flag enabled the xorg didn't start normally. The glamor use flag was enabled by default in linux/amd64/13.0/desktop profile. When xorg compiled without glamor it starts normally.

Reproducible: Always

Steps to Reproduce:
1. Enable glamor use flag
2. Build xorg-server and setup it to work with nvidia optimus proprietary driver
3. Start xorg-server
Actual Results:  
Xorg.0.log:

[ 18412.982] (EE) Backtrace:
[ 18412.982] (EE) 0: /usr/bin/X (xorg_backtrace+0x48) [0x57f758]
[ 18412.982] (EE) 1: /usr/bin/X (0x400000+0x183679) [0x583679]
[ 18412.982] (EE) 2: /lib64/libc.so.6 (0x7fea936b0000+0x34ee0) [0x7fea936e4ee0]
[ 18412.982] (EE) 3: /usr/lib64/libxcb.so.1 (xcb_writev+0xd) [0x7fea8b34e06d]
[ 18412.982] (EE) 4: /usr/lib64/libX11.so.6 (_XSend+0x166) [0x7fea8b7b5bd6]
[ 18412.982] (EE) 5: /usr/lib64/libX11.so.6 (_XFlush+0x15) [0x7fea8b7b5f35]
[ 18412.982] (EE) 6: /usr/lib64/libX11.so.6 (_XGetRequest+0x55) [0x7fea8b7b8945]
[ 18412.982] (EE) 7: /usr/lib64/libX11.so.6 (XQueryExtension+0x3d) [0x7fea8b7ac84d]
[ 18412.982] (EE) 8: /usr/lib64/libX11.so.6 (XInitExtension+0x22) [0x7fea8b7a0fa2]
[ 18412.982] (EE) 9: /usr/lib64/libXext.so.6 (XextAddDisplay+0x4f) [0x7fea8b56fcdf]
[ 18412.982] (EE) 10: /usr/lib64/libnvidia-glsi.so.346.35 (0x7fea8baaf000+0x63017) [0x7fea8bb12017]
[ 18412.982] (EE) 11: /usr/lib64/libnvidia-glsi.so.346.35 (0x7fea8baaf000+0x4484) [0x7fea8bab3484]
[ 18412.982] (EE) 12: /usr/lib64/opengl/nvidia/lib/libEGL.so.1 (0x7fea8bd39000+0x2381e) [0x7fea8bd5c81e]
[ 18412.982] (EE) 13: /usr/lib64/opengl/nvidia/lib/libEGL.so.1 (0x7fea8bd39000+0x2417a) [0x7fea8bd5d17a]
[ 18412.982] (EE) 14: /usr/lib64/opengl/nvidia/lib/libEGL.so.1 (0x7fea8bd39000+0x2c946) [0x7fea8bd65946]
[ 18412.982] (EE) 15: /usr/lib64/xorg/modules/libglamoregl.so (glamor_egl_init+0x89) [0x7fea8d564399]
[ 18412.982] (EE) 16: /usr/lib64/xorg/modules/drivers/modesetting_drv.so (0x7fea8dbf1000+0x6949) [0x7fea8dbf7949]
[ 18412.982] (EE) 17: /usr/bin/X (InitOutput+0xbd1) [0x477681]
[ 18412.982] (EE) 18: /usr/bin/X (0x400000+0x3a7db) [0x43a7db]
[ 18412.982] (EE) 19: /lib64/libc.so.6 (__libc_start_main+0xf5) [0x7fea936d1aa5]
[ 18412.982] (EE) 20: /usr/bin/X (0x400000+0x260be) [0x4260be]
[ 18412.982] (EE) 
[ 18412.982] (EE) Segmentation fault at address 0x0

Xorg-server works fine with nvidia optimus proprietary driver when it merged without glamor use flag.


emerge --info:

Portage 2.2.17 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.20-r1, 3.17.8-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.17.8-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-4710HQ_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:    12187924 total,   4793796 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 12 Feb 2015 20:30:01 +0000
sh bash 4.3_p33-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.2.1 [disabled]
app-shells/bash:          4.3_p33-r1::gentoo
dev-lang/perl:            5.20.1-r4::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.4.2::gentoo
dev-util/ccache:          3.2.1-r1::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.9::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.5::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r1::gentoo
Repositories:

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

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

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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=core-avx2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps y --jobs 5 --buildpkg --binpkg-respect-use y --load-average 15.0"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes alsa amd64 avx avx2 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fma3 fortran gdbm gif glamor gpm gtk iconv jpeg lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit popcnt ppds qt3support qt4 readline sdl session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xcb xft xml 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" CAMERAS="ptp2" 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 itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia intel modesetting" 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"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

eselect profile list:
Available profile symlink targets:
  [1]   default/linux/amd64/13.0
  [2]   default/linux/amd64/13.0/selinux
  [3]   default/linux/amd64/13.0/desktop *
  [4]   default/linux/amd64/13.0/desktop/gnome
  [5]   default/linux/amd64/13.0/desktop/gnome/systemd
  [6]   default/linux/amd64/13.0/desktop/kde
  [7]   default/linux/amd64/13.0/desktop/kde/systemd
  [8]   default/linux/amd64/13.0/developer
  [9]   default/linux/amd64/13.0/no-emul-linux-x86
  [10]  default/linux/amd64/13.0/no-emul-linux-x86/desktop
  [11]  default/linux/amd64/13.0/no-emul-linux-x86/desktop/gnome
  [12]  default/linux/amd64/13.0/no-emul-linux-x86/desktop/gnome/systemd
  [13]  default/linux/amd64/13.0/no-emul-linux-x86/desktop/kde
  [14]  default/linux/amd64/13.0/no-emul-linux-x86/desktop/kde/systemd
  [15]  default/linux/amd64/13.0/no-emul-linux-x86/developer
  [16]  default/linux/amd64/13.0/no-emul-linux-x86/selinux
  [17]  default/linux/amd64/13.0/no-multilib
  [18]  default/linux/amd64/13.0/x32
  [19]  hardened/linux/amd64
  [20]  hardened/linux/amd64/selinux
  [21]  hardened/linux/amd64/no-multilib
  [22]  hardened/linux/amd64/no-multilib/selinux
  [23]  hardened/linux/amd64/x32
  [24]  hardened/linux/musl/amd64
  [25]  default/linux/uclibc/amd64
  [26]  hardened/linux/uclibc/amd64


cat /etc/portage/package.use/xorg:

=x11-base/xorg-server-1.17.1 -glamor
Comment 1 Rustam Karimov 2015-02-12 23:32:25 UTC
Created attachment 396304 [details]
Xorg.0.log.old USE=glamor
Comment 2 Rustam Karimov 2015-02-12 23:33:04 UTC
Created attachment 396306 [details]
Xorg.0.log USE=-glamor
Comment 3 DaggyStyle 2015-02-18 20:06:47 UTC
Created attachment 396864 [details]
radeon xorg log

I got similar issue with my two radeon cards, trace seems similar.

doesn't happens on a intel card.
Comment 4 Austin English (RETIRED) gentoo-dev 2015-11-02 17:03:37 UTC
Created attachment 415956 [details]
Xorg.0.log.old

I'm seeing similar crashes with Mesa 10.3.7 / glamor-0.6.0-rc1:

media-libs/mesa-10.3.7-r1:0::gentoo (abi_x86_32 abi_x86_64 classic dri3 egl gallium gbm gles1 gles2 kernel_linux llvm nptl openvg udev vdpau video_cards_intel video_cards_nouveau video_cards_radeon video_cards_radeonsi video_cards_vmware xa)
x11-drivers/xf86-video-ati-7.2.0:0::gaikai-public (glamor udev)
x11-libs/glamor-0.6.0-r1:0::gentoo (xv)

OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.5, 256 bits)
OpenGL version string: 3.0 Mesa 10.3.7
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-11-02 20:15:09 UTC
The stack traces from the reporter and from comment 3 and from comment 4 are all very different. They are probably not the same bug, so should be reported separately.
Comment 6 Austin English (RETIRED) gentoo-dev 2015-11-02 21:39:20 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #5)
> The stack traces from the reporter and from comment 3 and from comment 4 are
> all very different. They are probably not the same bug, so should be
> reported separately.

Thanks, I was debating that. Moved my issue to bug 564730
Comment 7 Matt Turner gentoo-dev 2017-01-26 07:01:16 UTC
Please reopen if you can still reproduce with current stable.