Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574450 - media-libs/libepoxy with x11-drivers/nvidia-drivers-361.28 - nvidia-settings: segmentation fault in epoxy_glx_version () from /usr/lib64/libepoxy.so.0
Summary: media-libs/libepoxy with x11-drivers/nvidia-drivers-361.28 - nvidia-settings...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-11 14:57 UTC by Bas Nedermeijer
Modified: 2017-02-26 03:57 UTC (History)
1 user (show)

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


Attachments
Xorg.0.log (Xorg.0.log,31.01 KB, text/plain)
2016-02-11 14:59 UTC, Bas Nedermeijer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bas Nedermeijer 2016-02-11 14:57:58 UTC
When using the nvidia-driver-361.* I am unable to start some GTK(?) applications, they crash with a "Segmentation fault".

Some example programs include:
 - nvidia-settings
 - virt-manager



$ nvidia-settings 
Segmentation fault


$ gdb nvidia-settings
GNU gdb (Gentoo 7.10.1 vanilla) 7.10.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from nvidia-settings...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/nvidia-settings 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6c6c14f in rawmemchr () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff6c6c14f in rawmemchr () from /lib64/libc.so.6
#1  0x00007ffff6c57792 in ?? () from /lib64/libc.so.6
#2  0x00007ffff6c479c7 in __isoc99_vsscanf () from /lib64/libc.so.6
#3  0x00007ffff6c4795f in __isoc99_sscanf () from /lib64/libc.so.6
#4  0x00007ffff34bae81 in epoxy_glx_version () from /usr/lib64/libepoxy.so.0
#5  0x00007ffff5689f19 in ?? () from /usr/lib64/libgdk-3.so.0
#6  0x00007ffff568a23a in ?? () from /usr/lib64/libgdk-3.so.0
#7  0x00007ffff569281e in ?? () from /usr/lib64/libgdk-3.so.0
#8  0x00007ffff568f7c6 in ?? () from /usr/lib64/libgdk-3.so.0
#9  0x00007ffff5681e25 in ?? () from /usr/lib64/libgdk-3.so.0
#10 0x00007ffff565c507 in gdk_display_manager_open_display () from /usr/lib64/libgdk-3.so.0
#11 0x00007ffff5aea800 in gtk_init_check () from /usr/lib64/libgtk-3.so.0
#12 0x0000000000407176 in main ()


This was no issue when using nvidia-drivers-358.* 


This only happens when opengl is provided by nvidia

# eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11


When I select the 'xorg-x11', the problem goes away and I am able to start all applications. I can even switch back to the nvidia implementation and it stays functional (until I restart X).


My secondary monitory is running off the internal GPU (intel). I am not sure if this can be the issue, but I would assume it's not very common.



Reproducible: Always

Steps to Reproduce:
1. Start GTK application, e.g. "nvidia-settings"

Actual Results:  
Segmentation fault


Expected Results:  
Application is started

# emerge --info
Portage 2.2.27 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.21-r1, 4.4.1-gentoo x86_64)
=================================================================
System uname: Linux-4.4.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.2
KiB Mem:    16377508 total,   4273612 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Thu, 11 Feb 2016 14:00:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/cmake:           3.4.3::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1::gentoo, 1.15-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)                                                                        
sys-libs/glibc:           2.21-r1::gentoo                                                                                         
Repositories:                                                                                                                     
                                                                                                                                  
gentoo                                                                                                                            
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://c.m/gentoo-portage
    priority: -1000

Techwolf
    location: /var/lib/layman/techwolf
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
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-bin-3.0/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /usr/share/themes"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
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 sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.leaseweb.com/gentoo/ rsync://mirror.cambrium.nl/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j9"
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 a52 aac aalib accessibility acl acpi additions addressbook adns aiglx akonandi alsa amarok amd64 amr amrnb amrwb apache2 apm apng asf assisant assistant async asyncns augeas auto-hinter autoipd automount avahi bash-completion beagle berkdb binfilter bitmap-fonts blender-game bluetooth bluray boost branding bzip2 c++ cairo caps cdb cdda cdr cgi clearcase cleartype cli clucene compressed-lumas connectionstatus consolekit contactnotes contacts corefonts cracklib crypt css ctype cuda cups curl curlwrappers cxx dar32 dbox2 dbus declarative deprecated device-mapper disk-partition diskio doomsday dri dts dv dvd dvdnav dvdr dvdread dynamic dynamicplugin eac3 efiemu embedded emboss emerald encode eselect evo examples exchange exif fam fastcgi festival ffmpeg filepicker firefox3 flac fluidsynth font-server fontconfig fontforge fortran frei0r fts3 g3dvl gd gdbm gdu geolocation gif gimp glamor gles1 gles2 glitz glsa gmp gnokii gnome gnutls google-gadgets gpac gpgme gphoto2 gpm graphviz gre gstreamer gtk2 gtk3 gui handbook hardcoded-tables haskell history horde howl-compat hp1018 hwdb iconv icu imap imlib inline inotify introspection iproute2 iptv ipv6 irc jabber jack jadetex java java6 jingle jpeg kde kdehiddenvisibility kdepim kdevelop kdrive keymap kipi kqemu kvm lame lcms ldap libass libcaca libnotify libsamplerate libv4l2 libwww lirc live lm_sensors log4j lua lvm lzo mad maemo6 mailwrapper management matroska mbox mdnsresponder-compat melt mhash midi mjpeg mmap mmx mmxext mng modules mozilla mp3 mp4 mpeg mpi mplayer mpm-threadpool mpm-worker msn mtp multilib multitarget mysql mythtv nas ncurses netboot network nftables nls nptl nsplugin ntpl nut nvidia obex objc ocr odk offensive ofx ogg old-daemons openal opencl opencv openexr opengl opengl-video opengl-xvmc openmp openvpn optimization osmesa overlays pam pango parcheck parted pascal pcap pcre pdf pdfimport perl phonon php pic plasma png policykit portage postgres ppds ppp private-headers pth pulseaudio pvr python python2 qca qt3support qt4 qthelp qtscript rar raw rdesktop rdp readline real realtime regex replytolist reports resolvconf romio rss rtc rtmp rtsp rubberband samba sasl scale0tilt scanner scenarios script sdl seamonkey seccomp secure-delete semantic-desktop server session shadow sip sipim smbclient smp sms snmp sockets source speex spell spice sql sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification statistics stream strigi subversion suhosin svg tcl tcltk tcpd templates test-programs theora threads threadsafe thumbnail thunar thunderbird tiff timidity tk tomcat tracker transcode truehd truetype truetype-fonts type1 type1-fonts udev udisks unicode upnp upower usb utempter uxa v4l v4l2 vaapi vdpau vhosts video vim-syntax virgl visualization vnc vorbis webdav webinterface webkit webserver win32codecs winbind wlm wxwidgets wxwindows x264 xattr xcb xcomposite xforms xine xinerama xkb xml xmp xprint xrandr xscreensaver xulrunner xv xvid xvmc zeroconf zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="directory kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 ptp2 canon" 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" GRUB_PLATFORMS="coreboot efi-64 multiboot pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US nl" LIRC_DEVICES="mceusb" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia 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"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Bas Nedermeijer 2016-02-11 14:59:03 UTC
Created attachment 425252 [details]
Xorg.0.log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2016-02-12 06:57:35 UTC
Please post your `emerge -vpq media-libs/libepoxy =x11-drivers/nvidia-drivers-361.28` output in a comment.
Comment 3 Bas Nedermeijer 2016-02-12 14:37:05 UTC
(In reply to Jeroen Roovers from comment #2)
> Please post your `emerge -vpq media-libs/libepoxy
> =x11-drivers/nvidia-drivers-361.28` output in a comment.


# emerge -vpq media-libs/libepoxy =x11-drivers/nvidia-drivers-361.28
[ebuild   R   ] media-libs/libepoxy-1.3.1  USE="{-test}" ABI_X86="32 (64) (-x32)" 
[ebuild   R   ] x11-drivers/nvidia-drivers-361.28  USE="X acpi driver gtk3 kms multilib static-libs tools uvm -pax_kernel"
Comment 4 Matt Turner gentoo-dev 2016-07-08 23:59:31 UTC
I'd be curious to see more information in the backtrace. Could you compile libepoxy with debugging symbols? That is, add -O0 -g3 to your CFLAGS and recompile it.
Comment 5 Matt Turner gentoo-dev 2017-02-26 03:57:12 UTC
(In reply to Matt Turner from comment #4)
> I'd be curious to see more information in the backtrace. Could you compile
> libepoxy with debugging symbols? That is, add -O0 -g3 to your CFLAGS and
> recompile it.

NEEDINFO.