Bug#765793: glx-alternative-nvidia: makes EGL applications crash

Rémi Denis-Courmont courmisch at gmail.com
Sat Oct 18 07:12:01 UTC 2014


Package: glx-alternative-nvidia
Version: 0.4.2
Severity: important

Dear Maintainer,

When running 'vlc -Vgl /some/video/file', VLC crashes straight away
if glx-alternative-nvidia is installed. It appears that libGL.so points
(correctly) to the NVIDIA driver, but libEGL.so points to the Mesa
implementation, resulting in a memory corruption.

'export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/nvidia/current' works
around the problem, assuming libegl1-nvidia is installed.

libEGL.so should ostensibly be redirected at the same time as libGL.so.

-- Package-specific info:
Diversions:
diversion of /usr/lib/arm-linux-gnueabihf/libGL.so to /usr/lib/mesa-diverted/arm-linux-gnueabihf/libGL.so by glx-diversions
diversion of /usr/lib/arm-linux-gnueabihf/libGL.so.1 to /usr/lib/mesa-diverted/arm-linux-gnueabihf/libGL.so.1 by glx-diversions
diversion of /usr/lib/arm-linux-gnueabihf/libGL.so.1.2 to /usr/lib/mesa-diverted/arm-linux-gnueabihf/libGL.so.1.2 by glx-diversions
diversion of /usr/lib/arm-linux-gnueabihf/libGL.so.1.2.0 to /usr/lib/mesa-diverted/arm-linux-gnueabihf/libGL.so.1.2.0 by glx-diversions
diversion of /usr/lib/i386-linux-gnu/libGL.so to /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so by glx-diversions
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1 by glx-diversions
diversion of /usr/lib/i386-linux-gnu/libGL.so.1.2 to /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1.2 by glx-diversions
diversion of /usr/lib/i386-linux-gnu/libGL.so.1.2.0 to /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1.2.0 by glx-diversions
diversion of /usr/lib/libGL.so to /usr/lib/mesa-diverted/libGL.so by glx-diversions
diversion of /usr/lib/libGL.so.1 to /usr/lib/mesa-diverted/libGL.so.1 by glx-diversions
diversion of /usr/lib/libGL.so.1.2 to /usr/lib/mesa-diverted/libGL.so.1.2 by glx-diversions
diversion of /usr/lib/libGL.so.1.2.0 to /usr/lib/mesa-diverted/libGL.so.1.2.0 by glx-diversions
diversion of /usr/lib/x86_64-linux-gnu/libGL.so to /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so by glx-diversions
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1 by glx-diversions
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1.2 to /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.2 by glx-diversions
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0 to /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.2.0 by glx-diversions

/usr/lib/mesa-diverted:
total 52
drwxr-xr-x  5 root root  4096 Mar 22  2014 .
drwxr-xr-x 86 root root 32768 Oct 18 09:55 ..
drwxr-xr-x  2 root root  4096 Oct 24  2013 arm-linux-gnueabihf
drwxr-xr-x  2 root root  4096 Oct 18 09:53 i386-linux-gnu
lrwxrwxrwx  1 root root    33 Mar 22  2014 libGL.so-master -> /etc/alternatives/libGL.so-master
drwxr-xr-x  2 root root  4096 Oct 18 09:53 x86_64-linux-gnu

/usr/lib/mesa-diverted/i386-linux-gnu/:
total 688
drwxr-xr-x 2 root root   4096 Oct 18 09:53 .
drwxr-xr-x 5 root root   4096 Mar 22  2014 ..
lrwxrwxrwx 1 root root     14 Oct 14 00:57 libGL.so.1 -> libGL.so.1.2.0
-rw-r--r-- 1 root root 695836 Oct 14 00:57 libGL.so.1.2.0

/usr/lib/mesa-diverted/x86_64-linux-gnu/:
total 624
drwxr-xr-x 2 root root   4096 Oct 18 09:53 .
drwxr-xr-x 5 root root   4096 Mar 22  2014 ..
lrwxrwxrwx 1 root root     14 Oct 14 12:34 libGL.so -> libGL.so.1.2.0
lrwxrwxrwx 1 root root     14 Oct 14 12:34 libGL.so.1 -> libGL.so.1.2.0
-rw-r--r-- 1 root root 627320 Oct 14 12:34 libGL.so.1.2.0

Alternative 'glx':
glx - auto mode
  link currently points to /usr/lib/nvidia
/usr/lib/mesa-diverted - priority 5
  slave glx--libGL.so.1-i386-linux-gnu: /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1
  slave glx--libGL.so.1-x86_64-linux-gnu: /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1
/usr/lib/nvidia - priority 100
  slave glx--libGL.so.1-i386-linux-gnu: /usr/lib/i386-linux-gnu/nvidia/libGL.so.1
  slave glx--libGL.so.1-x86_64-linux-gnu: /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
  slave glx--libnvidia-cfg.so.1-i386-linux-gnu: /usr/lib/i386-linux-gnu/nvidia/libnvidia-cfg.so.1
  slave glx--libnvidia-cfg.so.1-x86_64-linux-gnu: /usr/lib/x86_64-linux-gnu/nvidia/libnvidia-cfg.so.1
  slave glx--linux-libglx.so: /usr/lib/nvidia/libglx.so
  slave glx--nvidia-blacklists-nouveau.conf: /etc/nvidia/nvidia-blacklists-nouveau.conf
  slave glx--nvidia-bug-report.sh: /usr/lib/nvidia/nvidia-bug-report.sh
  slave glx--nvidia_drv.so: /usr/lib/nvidia/nvidia_drv.so
Current 'best' version is '/usr/lib/nvidia'.

lrwxrwxrwx 1 root root 15 Oct  7 23:36 /etc/alternatives/glx -> /usr/lib/nvidia
lrwxrwxrwx 1 root root 48 Mar 22  2014 /etc/alternatives/glx--libGL.so-x86_64-linux-gnu -> /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so
lrwxrwxrwx 1 root root 41 Oct  7 23:36 /etc/alternatives/glx--libGL.so.1-i386-linux-gnu -> /usr/lib/i386-linux-gnu/nvidia/libGL.so.1
lrwxrwxrwx 1 root root 43 Oct  7 23:36 /etc/alternatives/glx--libGL.so.1-x86_64-linux-gnu -> /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
lrwxrwxrwx 1 root root 49 Oct  7 23:36 /etc/alternatives/glx--libnvidia-cfg.so.1-i386-linux-gnu -> /usr/lib/i386-linux-gnu/nvidia/libnvidia-cfg.so.1
lrwxrwxrwx 1 root root 51 Oct  7 23:36 /etc/alternatives/glx--libnvidia-cfg.so.1-x86_64-linux-gnu -> /usr/lib/x86_64-linux-gnu/nvidia/libnvidia-cfg.so.1
lrwxrwxrwx 1 root root 25 Oct  7 23:36 /etc/alternatives/glx--linux-libglx.so -> /usr/lib/nvidia/libglx.so
lrwxrwxrwx 1 root root 42 Oct  7 23:36 /etc/alternatives/glx--nvidia-blacklists-nouveau.conf -> /etc/nvidia/nvidia-blacklists-nouveau.conf
lrwxrwxrwx 1 root root 36 Oct  7 23:36 /etc/alternatives/glx--nvidia-bug-report.sh -> /usr/lib/nvidia/nvidia-bug-report.sh
lrwxrwxrwx 1 root root 29 Oct  7 23:36 /etc/alternatives/glx--nvidia_drv.so -> /usr/lib/nvidia/nvidia_drv.so

File System:
lrwxrwxrwx 1 root root     21 Mar 22  2014 /usr/lib/glx -> /etc/alternatives/glx
lrwxrwxrwx 1 root root     48 Jul 21 18:59 /usr/lib/i386-linux-gnu/libGL.so.1 -> /etc/alternatives/glx--libGL.so.1-i386-linux-gnu
lrwxrwxrwx 1 root root     48 Mar 22  2014 /usr/lib/x86_64-linux-gnu/libGL.so -> /etc/alternatives/glx--libGL.so-x86_64-linux-gnu
lrwxrwxrwx 1 root root     50 Jul 21 18:59 /usr/lib/x86_64-linux-gnu/libGL.so.1 -> /etc/alternatives/glx--libGL.so.1-x86_64-linux-gnu
-rw-r--r-- 1 root root 286120 Sep 23 00:49 /usr/lib/xorg/modules/extensions/libglx.so


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.17.0-basile (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fi_FI.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages glx-alternative-nvidia depends on:
ii  glx-alternative-mesa  0.4.2
ii  glx-diversions        0.4.2

glx-alternative-nvidia recommends no packages.

Versions of packages glx-alternative-nvidia suggests:
ii  nvidia-driver  340.46-1

Versions of packages glx-diversions depends on:
ii  dpkg                      1.17.18
ii  nvidia-installer-cleanup  20131102+1

Versions of packages glx-diversions recommends:
ii  glx-alternative-mesa  0.4.2

Versions of packages glx-alternative-nvidia is related to:
pn  glx-alternative-fglrx                                      <none>
ii  glx-alternative-mesa                                       0.4.2
ii  glx-alternative-nvidia                                     0.4.2
pn  libgl1-dev                                                 <none>
ii  libgl1-mesa-glx [libgl1]                                   10.3.1-1
ii  libgl1-nvidia-glx [libgl1-nvidia-glx-any]                  340.46-1
ii  nvidia-driver [nvidia-glx-any]                             340.46-1
ii  xserver-xorg-video-nvidia [xserver-xorg-video-nvidia-any]  340.46-1

-- no debconf information



More information about the pkg-nvidia-devel mailing list