Bug 20020 - VLC with NVidia segfaults on startup (error 6 in libGL.so.375.26)
Summary: VLC with NVidia segfaults on startup (error 6 in libGL.so.375.26)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: High major
Target Milestone: Mageia 6
Assignee: Shlomi Fish
QA Contact:
URL:
Whiteboard:
Keywords:
: 19097 20124 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-24 07:27 CET by Jean Michel Varvou
Modified: 2017-03-14 22:19 CET (History)
8 users (show)

See Also:
Source RPM: vlc-2.2.4-8.2.mga6.tainted, x11-driver-video-nvidia-current
CVE:
Status comment:


Attachments

Description Jean Michel Varvou 2016-12-24 07:27:45 CET
Description of problem:
vlc don't start. We get the following error message when we try to start it with the Konsole


[vouf@ISIS ~]$ vlc -v
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
[0000000001361148] core libvlc warning: cannot read /usr/lib64/vlc/plugins/plugins.dat: No such file or directory
Erreur de segmentation (core dumped)
[vouf@ISIS ~]$ rpm -qa |grep vlc


Version-Release number of selected component (if applicable):
[vouf@ISIS ~]$ rpm -qa |grep vlc
phonon-vlc-0.9.0-3.mga6
vlc-plugin-theora-2.2.4-8.2.mga6.tainted
vlc-plugin-common-2.2.4-8.2.mga6.tainted
lib64vlccore8-2.2.4-8.2.mga6.tainted
vlc-plugin-flac-2.2.4-8.2.mga6.tainted
vlc-2.2.4-8.2.mga6.tainted
vlc-plugin-upnp-2.2.4-8.2.mga6.tainted
lib64vlc5-2.2.4-8.2.mga6.tainted
phonon4qt5-vlc-0.9.0-3.mga6
npapi-vlc-2.2.0-1.mga6
vlc-plugin-lua-2.2.4-8.2.mga6.tainted
vlc-plugin-pulse-2.2.4-8.2.mga6.tainted
vlc-plugin-speex-2.2.4-8.2.mga6.tainted


How reproducible:
Always

Steps to Reproduce:
1. Start VLC
2.
3.
Marja Van Waes 2016-12-24 10:54:14 CET

CC: (none) => marja11
Assignee: bugsquad => shlomif

Jani Välimaa 2016-12-24 11:21:05 CET

Summary: https://www.mageialinux-online.org/forum/topic-22977.php#m221442 => VLC segfaults on startup

Comment 1 Shlomi Fish 2016-12-24 14:26:02 CET
Hi Jean!

vlc starts fine here on x86-64 Cauldron. Moreover:

«
shlomif@telaviv1:~$ vlc -v
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
[0000000001d7f5e8] pulse audio output error: PulseAudio server connection failure: Connection refused
[0000000001de3858] lua interface error: password not configured
[0000000001de3858] lua interface: Please specify the password in the preferences.
[0000000001de3858] core interface error: no suitable interface module
[0000000001ca4088] core libvlc error: interface "telnet,none" initialization failed
[0000000001ca4088] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
QObject::~QObject: Timers cannot be stopped from another thread
shlomif@telaviv1:~$ vlc -v^C
shlomif@telaviv1:~$ ls -l /usr/lib64/vlc/plugins/plugins.dat
-rw-r--r-- 1 root root 286801 Nov 29 12:59 /usr/lib64/vlc/plugins/plugins.dat
shlomif@telaviv1:~$ rpm -qf /usr/lib64/vlc/plugins/plugins.dat
vlc-plugin-common-2.2.4-8.2.mga6.tainted
shlomif@telaviv1:~$
»

Perhaps you need to restore /usr/lib64/vlc/plugins/plugins.dat somehow by doing «urpmi --replacpkgs --replacefiles --force vlc-plugin-common».

Status: NEW => ASSIGNED

Comment 2 Jean Michel Varvou 2016-12-26 17:03:56 CET
Hi

I have uninstall and then reinstall vlc. I get the following error message


/var/tmp/rpm-tmp.1G07pa : ligne 3 :   723 Erreur de segmentation  (core dumped)/usr/lib64/vlc/vlc-cache-gen -f /usr/lib64/vlc/plugins
attention : %triggerin(vlc-2.2.4-8.2.mga6.tainted.x86_64) scriptlet échoué, état de sortie 139
ERROR: 'script' failed for npapi-vlc-2.2.0-1.mga6.x86_64

Besides, when I run 

urpmi --replacepkgs --replacefiles --force vlc-plugin-common

I get the same error message :

[root@ISIS plugins]# urpmi --replacepkgs --replacefiles --force vlc-plugin-common


    http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/tainted/release/vlc-plugin-common-2.2.4-8.2.mga6.tainted.x86_64.rpm
installation de vlc-plugin-common-2.2.4-8.2.mga6.tainted.x86_64.rpm depuis /var/cache/urpmi/rpms                                                                                                                                            
Préparation...                   ##########################################################################################################################################################################################################
      1/1: vlc-plugin-common     ##########################################################################################################################################################################################################
/var/tmp/rpm-tmp.V5aqs0 : ligne 3 : 24354 Erreur de segmentation  (core dumped)/usr/lib64/vlc/vlc-cache-gen -f /usr/lib64/vlc/plugins
attention : %triggerin(vlc-2.2.4-8.2.mga6.tainted.x86_64) scriptlet échoué, état de sortie 139
ERROR: 'script' failed for vlc-plugin-common-2.2.4-8.2.mga6.tainted.x86_64
Comment 3 Jean Michel Varvou 2016-12-26 17:22:38 CET
Hi

The workaround is to run the following command 

strace /usr/lib64/vlc/vlc-cache-gen -f /usr/lib64/vlc/plugins

After that, VLC start.
Comment 4 Shlomi Fish 2016-12-30 15:25:30 CET
(In reply to Jean Michel Varvou from comment #3)
> Hi
> 
> The workaround is to run the following command 
> 
> strace /usr/lib64/vlc/vlc-cache-gen -f /usr/lib64/vlc/plugins
> 
> After that, VLC start.

Can we close this bug then?
Comment 5 Jean Michel Varvou 2016-12-30 16:09:15 CET
Hi

Many of us have encountered this problem. Before closing this incident, it will be useful to check that it is not present at the installation of the iso Mageia 6 sta 2.The workaround works. But I guess the bug is present if we install the first time vlc.
Comment 6 Jean Michel Varvou 2017-01-08 12:42:13 CET
Hi

Today, I have done a fresh net install. I can confirm that problem is resolve. VLC work fine. 

Thank you for your help.

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED

Comment 7 Jean Michel Varvou 2017-01-14 13:53:04 CET
Hi,

Finally, after an update of vlc, actually we need to run the following command manually

 strace /usr/lib64/vlc/vlc-cache-gen -f /usr/lib64/vlc/plugins

I thinked that the problem was resolved after a fresh install, but today when I appled the last update, the problem occurred again.

I'm not alone, Pascaller has the same problem (see mlo forum : https://www.mageialinux-online.org/forum/topic-22977.php#m222473 )

Resolution: FIXED => (none)
Status: RESOLVED => REOPENED

Comment 8 David GEIGER 2017-01-15 13:58:14 CET
Hi, does installing vlc-plugin-lua help to fix this issue?

CC: (none) => geiger.david68210

Comment 9 Jean Michel Varvou 2017-01-15 16:07:30 CET
Hi,

I have a hypothesis. The problem does not affect everyone. Given the error message, the worry seems to be related to the nvidia proprietary driver and more specifically libGL.so.375.26[

"janv. 13 12:47:51 localhost kernel: vlc-cache-gen[350]: segfault at 7fbbaa2f9220 ip 00007fbb9c733042 sp 00007ffcd4f3c080 error 6 in libGL.so.375.26[7fbb9c683000+c9000]
janv. 13 12:47:51 localhost kernel: audit: type=1701 audit(1484308071.669:221): auid=1000 uid=0 gid=0 ses=3 pid=350 comm="vlc-cache-gen" exe="/usr/lib64/vlc/vlc-cache-gen" sig=11"

Note that vlc-plugin-lua was already installed.
Comment 10 Marja Van Waes 2017-01-15 18:34:28 CET
(In reply to Jean Michel Varvou from comment #9)
> Hi,
> 
> I have a hypothesis. The problem does not affect everyone. Given the error
> message, the worry seems to be related to the nvidia proprietary driver and
> more specifically libGL.so.375.26[
> 
> "janv. 13 12:47:51 localhost kernel: vlc-cache-gen[350]: segfault at
> 7fbbaa2f9220 ip 00007fbb9c733042 sp 00007ffcd4f3c080 error 6 in
> libGL.so.375.26[7fbb9c683000+c9000]
> janv. 13 12:47:51 localhost kernel: audit: type=1701
> audit(1484308071.669:221): auid=1000 uid=0 gid=0 ses=3 pid=350
> comm="vlc-cache-gen" exe="/usr/lib64/vlc/vlc-cache-gen" sig=11"
> 
> Note that vlc-plugin-lua was already installed.

CC'ing the kernel and drivers maintainers

Source RPM: vlc-2.2.4-8.2.mga6.tainted => vlc-2.2.4-8.2.mga6.tainted, x11-driver-video-nvidia-current
CC: (none) => kernel
Summary: VLC segfaults on startup => VLC with NVidia segfaults on startup (error 6 in libGL.so.375.26)

Comment 11 Marja Van Waes 2017-01-15 18:44:17 CET
bug 20124 is very likely a duplicate of this one
Comment 12 David GEIGER 2017-01-15 19:00:30 CET
*** Bug 20124 has been marked as a duplicate of this bug. ***

CC: (none) => wilcal.int

Comment 13 William Kenney 2017-01-16 16:40:02 CET
This problem continues here today.
Comment 14 William Kenney 2017-01-16 16:42:24 CET
My test platform:

Intel Core i7-2600K Sandy Bridge 3.4GHz
GIGABYTE GA-Z68X-UD3-B3 LGA 1155 MoBo
GIGABYTE GV-N440D3-1GI Nvidia GeForce GT 440 (Fermi) 1GB
RTL8111/8168B PCI Express 1Gbit Ethernet
DRAM 16GB (4 x 4GB)
Mageia 6 64-bit, Nvidia driver
Comment 15 Thomas Andrews 2017-01-16 19:42:26 CET
Not seeing any problems at all with vlc and nvidia340 hardware.

ASRock A790GXH/128M motherboard
Athlon X2 7750 processor
Geforce 9800GT video card
Mageia 6 from sta2 Classical iso, nvidia340 driver

CC: (none) => andrewsfarm

William Kenney 2017-01-16 23:31:55 CET

Blocks: (none) => 15527

Samuel Verschelde 2017-01-17 10:29:39 CET

Blocks: 15527 => (none)

Samuel Verschelde 2017-01-17 10:45:37 CET

Priority: Normal => High
Target Milestone: --- => Mageia 6

Comment 16 Morgan Leijström 2017-01-17 11:08:42 CET
I have found vlc not to work for long time and lazilly just used another player.
Now i found this bug report and for now i just say "mee too"


vlc-plugin-lua was not installed, installed the one in tainted -> still segfault

Nvidia âGK104 [GeForce GTX 760], using "NVIDIA GeForce 420 series and later"

On Plasma, 64 bit.

$ vlc -vv
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
[0000000000f9e148] core libvlc debug: VLC media player - 2.2.4 Weatherwax
[0000000000f9e148] core libvlc debug: Copyright © 1996-2016 the VideoLAN team
[0000000000f9e148] core libvlc debug: revision 2.2.3-37-g888b7e89
[0000000000f9e148] core libvlc debug: configured with ./configure  '--build=x86_64-mageia-linux-gnu' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--x-includes=/usr/include' '--x-libraries=/usr/lib64' '--disable-dependency-tracking' '--disable-sse' '--enable-bonjour' '--enable-smbclient' '--enable-ncurses' '--enable-lirc' '--enable-xvideo' '--disable-directfb' '--enable-aa' '--enable-sdl' '--enable-mad' '--enable-vorbis' '--enable-ogg' '--enable-theora' '--enable-speex' '--enable-flac' '--enable-mkv' '--enable-dv1394' '--enable-dvbpsi' '--enable-shout' '--enable-pulse' '--enable-jack' '--enable-alsa' '--enable-libmpeg2' '--enable-faad' '--enable-dca' '--enable-live555' '--enable-v4l2' '--enable-gnutls' '--disable-rpath' '--enable-vcdx' '--enable-libcddb' '--enable-x264' '--enable-x265' '--enable-twolame' '--disable-vnc' '--with-pic' 'build_alias=x86_64-mageia-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' 'CPPFLAGS= -DOJI -DMOZ_X11 -I/usr/include/ebml -I/usr/include/speex' 'CXXFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' 'LUAC=/usr/bin/luac5.2'
[0000000000f9e148] core libvlc debug: searching plug-in modules
[0000000000f9e148] core libvlc debug: loading plugins cache file /usr/lib64/vlc/plugins/plugins.dat
[0000000000f9e148] core libvlc warning: cannot read /usr/lib64/vlc/plugins/plugins.dat: No such file or directory
[0000000000f9e148] core libvlc debug: recursively browsing `/usr/lib64/vlc/plugins'
Segmenteringsfel (minnesutskrift skapad)


# journalctl -ab | grep vlc

jan 17 10:59:04 svarten audit[24389]: ANOM_ABEND auid=10702 uid=10702 gid=10790 ses=4 pid=24389 comm="vlc" exe="/usr/bin/vlc" sig=11
jan 17 10:59:04 svarten kernel: vlc[24389]: segfault at 7f98116e1220 ip 00007f980e39f042 sp 00007ffecda4a760 error 7 in libGL.so.375.26[7f980e2ef000+c9000]
jan 17 10:59:04 svarten kernel: audit: type=1701 audit(1484647144.469:598): auid=10702 uid=10702 gid=10790 ses=4 pid=24389 comm="vlc" exe="/usr/bin/vlc" sig=11
jan 17 10:59:48 svarten konsole[7906]: org.kde.kurifilter-ikws: "jan 17 10:59:04 svarten kernel: vlc[24389]: segfault at 7f98116e1220 ip 00007f980e39f042 sp 00007ffecda4a760 error 7 in libGL.so.375.26[7f980e2ef000+c9000]"
jan 17 11:00:00 svarten konsole[7906]: org.kde.kurifilter-ikws: "jan 17 10:59:04 svarten kernel: vlc[24389]: segfault at 7f98116e1220 ip 00007f980e39f042 sp 00007ffecda4a760 error 7 in libGL.so.375.26[7f980e2ef000+c9000]"

CC: (none) => fri

Comment 17 Samuel Verschelde 2017-01-17 11:28:30 CET
Could anyone produce a backtrace?

https://wiki.mageia.org/en/Debugging_software_crashes
Comment 18 Morgan Leijström 2017-01-17 12:35:36 CET
Weird:
When started with gdb it does not crash, and it plays video OK !

Started using
$ gdb /usr/bin/vlc

and then issuing
run

After sucessful usage under gdb i quit vlc and gdb, then issued  $ /usr/bin/vlc and vlc segfaults...

So what may be the difference when vlc is started from gdb??
Does it see a different environment?
(btw, i did not find any vlc debug packages)
Comment 19 Morgan Leijström 2017-01-17 12:40:21 CET
Now i issued the command from comment 3:  (need be run as root) :
strace /usr/lib64/vlc/vlc-cache-gen -f /usr/lib64/vlc/plugins

And after that vlc runs OK.
Comment 20 William Kenney 2017-01-30 17:18:18 CET
Today VLC on M6, 64-bit, Plasma is running just fine on my nvidia video editing platform. This is a change from just a few days ago. What change(s) made this happen?
Comment 21 William Kenney 2017-02-08 19:56:26 CET
Yesterday an M6 install to a blank drive, nvidia/plasma resulted
in VLC seg-faulting. That was using the proprietary nvidia driver.
Today I did the same install and would not allow the proprietary
nvidia driver to install and instead am using the nouveau driver.
VLC works fine.
Samuel Verschelde 2017-03-14 15:54:23 CET

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=19097

Comment 22 Nicolas Lécureuil 2017-03-14 16:03:17 CET
*** Bug 19097 has been marked as a duplicate of this bug. ***

CC: (none) => luigiwalser

Comment 23 Nicolas Lécureuil 2017-03-14 16:34:58 CET
Please test new vlc rpm

CC: (none) => mageia

Comment 24 William Kenney 2017-03-14 16:50:29 CET
(In reply to Nicolas Lécureuil from comment #23)

> Please test new vlc rpm

This is where I am today and it works fine:

[root@localhost wilcal]# urpmi vlc
Package vlc-3.0.0-0.git.5.mga6.tainted.x86_64 is already installed
Comment 25 Morgan Leijström 2017-03-14 16:57:08 CET
@ William comment #24:
1) did you test with proprietary driver?
2) and without ever have issued the workaround in comment #3 ?
Comment 26 William Kenney 2017-03-14 17:14:18 CET
(In reply to Morgan Leijström from comment #25)
> @ William comment #24:
> 1) did you test with proprietary driver?
> 2) and without ever have issued the workaround in comment #3 ?

For the time being I am not using the proprietary nvidia driver on any of my installs. When that bug(s) gets solved I'll go back to it.
Comment 27 Thomas Andrews 2017-03-14 17:37:15 CET
(In reply to Nicolas Lécureuil from comment #23)
> Please test new vlc rpm

FWIW, the new version continues to work OK with the nvidia340 driver, as have all the others for me.
Comment 28 Jean Michel Varvou 2017-03-14 18:35:59 CET
Hi

The last update did not cause any problems. VLC works fine even with the nvidia proprietary driver. I think we can close the bug.

[root@localhost ~]# rpm -qa |grep vlc
lib64vlccore8-3.0.0-0.git.6.mga6
vlc-plugin-lua-3.0.0-0.git.6.mga6
phonon4qt5-vlc-0.9.1-4.mga6
lib64vlc5-3.0.0-0.git.6.mga6
vlc-plugin-pulse-3.0.0-0.git.6.mga6
npapi-vlc-2.2.0-1.mga6
vlc-plugin-theora-3.0.0-0.git.6.mga6
vlc-3.0.0-0.git.6.mga6
vlc-plugin-vdpau-3.0.0-0.git.6.mga6
phonon-vlc-0.9.1-4.mga6
vlc-plugin-common-3.0.0-0.git.6.mga6

[root@localhost ~]# rpm -qa |grep nvidia
nvidia-current-doc-html-375.39-1.mga6.nonfree
x11-driver-video-nvidia-current-375.39-1.mga6.nonfree
dkms-nvidia-current-375.39-1.mga6.nonfree
Comment 29 Nicolas Lécureuil 2017-03-14 22:19:48 CET
thanks for the feedback => closing

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.