Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428650 - media-libs/mesa-8.1_rc1_pre20120724 - libGL error: failed to authenticate magic 5 // libGL error: failed to load driver: nouveau
Summary: media-libs/mesa-8.1_rc1_pre20120724 - libGL error: failed to authenticate mag...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
Depends on:
Reported: 2012-07-30 13:36 UTC by Juergen Rose
Modified: 2015-02-21 18:56 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2012-07-30 13:36:45 UTC
If I start gthumb, I get the following messages:

rose@lynx:/home/rose/Pictures/2012/07/30(7)$ gthumb .
libGL error: failed to load driver: nouveau
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
rose@lynx:/home/rose/Pictures/2012/07/30(8)$ LIBGL_DEBUG=verbose gthumb .
libGL: OpenDriver: trying /usr/lib64/dri/tls/
libGL: OpenDriver: trying /usr/lib64/dri/
libGL error: failed to authenticate magic 5
libGL error: failed to load driver: nouveau
libGL: OpenDriver: trying /usr/lib64/dri/tls/
libGL: OpenDriver: trying /usr/lib64/dri/

rose@lynx:/home/rose/Pictures/2012/07/30(10)$ ll  /usr/lib64/dri/tls/
/bin/ls: Zugriff auf /usr/lib64/dri/tls/ nicht möglich: Datei oder Verzeichnis nicht gefunden
rose@lynx:/home/rose/Pictures/2012/07/30(11)$ ll /usr/lib64/dri/
lrwxrwxrwx 1 root root 22 26. Nov 2010  /usr/lib64/dri/ -> ../mesa/*
rose@lynx:/home/rose/Pictures/2012/07/30(12)$ genlop -t mesa | tail

     Thu Jul 26 15:24:20 2012 >>> media-libs/mesa-8.1_rc1_pre20120724
       merge time: 7 minutes and 3 seconds.

     Sun Jul 29 08:57:54 2012 >>> media-libs/mesa-8.1_rc1_pre20120724
       merge time: 6 minutes and 47 seconds.

     Mon Jul 30 15:28:15 2012 >>> media-libs/mesa-8.1_rc1_pre20120724
       merge time: 6 minutes and 32 seconds.

rose@lynx:/home/rose/Pictures/2012/07/30(13)$ qlist -Iv nouveau

rose@lynx:/home/rose/Pictures/2012/07/30(14)$ emerge --info
Portage (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.15-r2, 3.5.0-gentoo x86_64)
System uname: Linux-3.5.0-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Mon, 30 Jul 2012 04:30:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.2
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo lordvan x11 bicatali sage-on-gentoo science dilfridge arcon ibormuth java-overlay proaudio sunrise lisp local x-cpan g-octave
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype- googleearth AdobeFlash-10.3 cadsoft Oracle-BCLA-JavaSE"
CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /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="-march=native -O2 -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-march=native -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/lordvan /var/lib/layman/x11 /var/lib/layman/bicatali /var/lib/layman/sage-on-gentoo /var/lib/layman/science /var/lib/layman/dilfridge /var/lib/layman/arcon /var/lib/layman/ibormuth /var/lib/layman/java-overlay /var/lib/layman/pro-audio /var/lib/layman/sunrise /var/lib/layman/lisp /usr/local/portage /var/lib/cpan /var/lib/g-octave"
USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 apng applet archive arpack asf aspell assistant atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boo boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli consolekit corba cracklib crypt css cuda cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpx fts3 fuse g3dvl galago garmin gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile harness hddtemp hdf hdf5 hdri http httpd hvm hwdb iconv icq icu id3 ide imagemagick imap inotify ipod ipv6 irda ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kate kdepim kdrive kerberos kpathsea kqemu kvm ladspa lame lapack laptop latex lcms ldap lensfun libffi libkms libnotify libsamplerate lirc live lua lzo mad mail maildir mapnik math matroska media-library mkl mmx mmxext mng modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musepack musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ogdi ogg openexr opengl openmp overview pam pango pcre pda pdf perl plotutils plugins png podcast policykit portaudio posix postgres postscript ppds pppd preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime readline reiserfs reports rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smbclient smp sms sndfile snmp soup sox speex spell sql sqlite sse sse2 sse4 ssl ssse3 startup-notification stlport subtitles subversion suexec svg svm swig szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thesaurus thinkpad threads thunderbird tidy tiff tk tools truetype udev udisks unicode upower usb userlocales utempter vaapi video virtualbox visio vorbis wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xa xattr xcb xemacs xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="caps lvm syslog" DVB_CARDS="usb-wt220u" 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 ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nv nouveau vesa" 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"
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-07-31 00:01:34 UTC
> libGL error: failed to authenticate magic 5

This usually indicates that it can open the drm device, but is unable to create a dri context. Possible reasons include trying to run the application while switched to another vt.

You'll have to give more information on how this started happening.
Comment 2 Juergen Rose 2012-11-17 13:40:12 UTC
The same (failed to load driver: nouveau) happens with gnome-control-center-3.4.2-r1. If I run gnome-control-center through gdb I see the following:

rose@impala:/home_impala/rose(13)$ export  LIBGL_DEBUG=verbose 
rose@impala:/home_impala/rose(14)$ gdb gnome-control-center 
GNU gdb (Gentoo 7.5 p1) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
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".
For bug reporting instructions, please see:
Reading symbols from /usr/bin/gnome-control-center...Reading symbols from /usr/lib64/debug/usr/bin/gnome-control-center.debug...done.
(gdb) run
Starting program: /usr/bin/gnome-control-center 
warning: Could not load shared library symbols for
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/".
libGL: OpenDriver: trying /usr/lib64/dri/tls/
libGL: OpenDriver: trying /usr/lib64/dri/
libGL error: failed to open drm device: Nicht genügend Hauptspeicher verfügbar
libGL error: failed to load driver: nouveau
libGL: OpenDriver: trying /usr/lib64/dri/tls/
libGL: OpenDriver: trying /usr/lib64/dri/
[New Thread 0x7fffd7373700 (LWP 4931)]
[New Thread 0x7fffd6b72700 (LWP 4932)]
[New Thread 0x7fffd6371700 (LWP 4933)]
[New Thread 0x7fffd5b70700 (LWP 4934)]
libGL: Can't open configuration file /home/rose/.drirc: Datei oder Verzeichnis nicht gefunden.
libGL: Can't open configuration file /home/rose/.drirc: Datei oder Verzeichnis nicht gefunden.
[New Thread 0x7fffcc563700 (LWP 4935)]
[New Thread 0x7fffcbadf700 (LWP 4938)]
[Thread 0x7fffd6371700 (LWP 4933) exited]
[Thread 0x7fffcc563700 (LWP 4935) exited]
[Thread 0x7fffd5b70700 (LWP 4934) exited]
[Thread 0x7fffd6b72700 (LWP 4932) exited]
[Thread 0x7fffd7373700 (LWP 4931) exited]
[Thread 0x7ffff00248c0 (LWP 4926) exited]
[Inferior 1 (process 4926) exited normally]

"Nicht genügend Hauptspeicher verfügbar" means "not enough main memory available", it is on a system with 8 GB memory. What could I else provide?
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-17 13:49:09 UTC
Looking up the translation in /usr/share/locale/de/LC_MESSAGES/ reveals that it actually means "Cannot allocate memory".

You could try with in-kernel nouveau instead of x11-base/nouveau-drm.
Comment 4 Juergen Rose 2012-11-17 17:20:01 UTC
In-kernel nouveau is already enabled:

rose@impala:/home_impala/rose(17)$ gzip -cd /proc/config.gz  | grep -i nouveau

and x11-base/nouveau-drm is not installed:

rose@impala:/home_impala/rose(18)$ emerge -pvD nouveau-drm
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild  N     ] x11-base/nouveau-drm-99999999::x11  0 kB
Total: 1 package (1 new), Size of downloads: 0 kB

What I am doing wrong?
Comment 5 Juergen Rose 2012-11-17 17:25:26 UTC
Still some more information:

I do not have /usr/lib64/dri/tls/

root@impala:/root(117)# ll  /usr/lib64/dri/tls/
/bin/ls: cannot access /usr/lib64/dri/tls/ No such file or directory

/usr/lib64/dri/ comes from mesa:

root@impala:/root(116)# ll /usr/lib64/dri/
lrwxrwxrwx 1 root root 22 Oct 10 08:06 /usr/lib64/dri/ -> ../mesa/*

In /var/log/Xorg.0.log I found the following drm related lines:

root@impala:/root(112)# grep drm /var/log/Xorg.0.log
[   390.493] (II) config/udev: Adding drm device (/dev/dri/card0)
[   390.505] (II) [drm] DRM interface version 1.4
[   390.505] (II) [drm] DRM open master succeeded.
[   390.927] (II) config/udev: Adding drm device (/dev/dri/card0)
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-17 17:36:36 UTC
(In reply to comment #4)
> and x11-base/nouveau-drm is not installed:

So this is a different setup than from comment #0?
> rose@lynx:/home/rose/Pictures/2012/07/30(13)$ qlist -Iv nouveau
> x11-base/nouveau-drm-99999999

> What I am doing wrong?
The problem could be kernel related. Try backing up your .config, then run "make defconfig" and only additionally enable nouveau and the drivers/filesystems that are necessary to boot the system in menuconfig.

Alternatively, boot with drm.debug=14 and look at dmesg when the libGL error comes (it helps to have CONFIG_PRINTK_TIME enabled for this).
Comment 7 Juergen Rose 2012-11-17 19:18:05 UTC
Btw, it seems me, that this issue happens on all of my systems, even on some without NVIDIA cards and without  nouveau drivers, e.g.:

root@caiman:/usr/src/linux(98)# lspci | grep VGA
01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS880 [Radeon HD 4290]
root@caiman:/usr/src/linux(100)# gzip -cd /proc/config.gz | grep "^[^#].*DRM"
root@caiman:/usr/src/linux(101)# gzip -cd /proc/config.gz | grep NOUVEAU
root@caiman:/usr/src/linux(103)# ll /usr/lib64/dri/
/bin/ls: cannot access /usr/lib64/dri/ No such file or directory
root@caiman:/usr/src/linux(104)# gnome-control-center 
libGL: OpenDriver: trying /usr/lib64/dri/tls/
libGL: OpenDriver: trying /usr/lib64/dri/
libGL error: dlopen /usr/lib64/dri/ failed (/usr/lib64/dri/ cannot open shared object file: No such file or directory)
libGL error: unable to load driver:
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL: OpenDriver: trying /usr/lib64/dri/tls/
libGL: OpenDriver: trying /usr/lib64/dri/
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.

root@tiger:/root(6)# lspci | grep VGA
01:00.0 VGA compatible controller: VIA Technologies, Inc. CN700/P4M800 Pro/P4M800 CE/VN800 Graphics [S3 UniChrome Pro] (rev 01)
root@tiger:/root(7)# gzip -cd /proc/config.gz | grep DRM
# CONFIG_DRM is not set
root@tiger:/root(8)# gzip -cd /proc/config.gz | grep NOUVEAU
root@tiger:/root(9)# gnome-control-center 
libGL error: failed to load driver: nouveau
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
Comment 8 Juergen Rose 2012-11-18 05:45:28 UTC
I have to correct Comment 7. When the issued happened I was sitting at "impala" and was logged in via ssh with X11 forwarding in "caiman" and "tiger". If I am sitting directly at "caiman" and calling gnome-control-center, then there is not any issue, also the issue on some other systems (with NVIDIA cards) I have seen during ssh sessions disappeared, when I was directly connected. So the local xserver at "impala" seems to be responsible. I will investigate this further.
Comment 9 Juergen Rose 2012-11-18 08:31:42 UTC
After changing the monitor section of xorg.conf or removing xorg.conf the issue at "impala" disappered.