Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474596 - media-video/vlc-2.0.x - segmentation fault in av_dict_get () from /usr/lib64/libavutil.so.51
Summary: media-video/vlc-2.0.x - segmentation fault in av_dict_get () from /usr/lib64/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-24 12:03 UTC by Paul Littlefield
Modified: 2013-08-04 20:45 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Littlefield 2013-06-24 12:03:14 UTC
Sorry, first bug report, so apologies in advance if I get it all wrong!

VLC segfaults when I play a movie. So far, Matroska MKV and MP4 fail.

It will successfully start with no gui in remote control interface mode.

It will successfully play mp3 music files.

Here is the debug output...



paully@thinkpad ~ $ gdb vlc
GNU gdb (Gentoo 7.5.1 p2) 7.5.1
Copyright (C) 2012 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".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/vlc...Reading symbols from /usr/lib64/debug/usr/bin/vlc.debug...done.
done.

(gdb) run ~/Downloads/matroska_test_w1_1/test1.mkv 
Starting program: /usr/bin/vlc ~/Downloads/matroska_test_w1_1/test1.mkv
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d)
[New Thread 0x7ffff5ef9700 (LWP 24338)]
[New Thread 0x7ffff5df8700 (LWP 24339)]
[0x6c2218] main interface error: no suitable interface module
[0x605498] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x605498] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Remote control interface initialized. Type `help' for help.
[New Thread 0x7ffff56e2700 (LWP 24340)]
[New Thread 0x7ffff49e0700 (LWP 24341)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff49e0700 (LWP 24341)]
0x00007fffdc572fef in av_dict_get () from /usr/lib64/libavutil.so.51

(gdb) bt
#0  0x00007fffdc572fef in av_dict_get () from /usr/lib64/libavutil.so.51
#1  0x00007fffdd7831e0 in Control (p_demux=0x7fffe00048f8, i_query=<optimized out>, args=<optimized out>) at demux.c:867
#2  0x00007ffff793e85c in demux_vaControl (args=0x7ffff49dfc58, i_query=<optimized out>, p_demux=<optimized out>) at input/demux.h:48
#3  demux_Control (p_demux=p_demux@entry=0x7fffe00048f8, i_query=i_query@entry=11) at input/demux.h:56
#4  0x00007ffff793ec6d in InputSourceMeta (p_input=p_input@entry=0x7ffff0000b28, p_meta=p_meta@entry=0x7fffe054df40, p_source=<optimized out>, 
    p_source=<optimized out>) at input/input.c:2723
#5  0x00007ffff7941634 in Init (p_input=p_input@entry=0x7ffff0000b28) at input/input.c:1315
#6  0x00007ffff79449d5 in Run (obj=0x7ffff0000b28) at input/input.c:550
#7  0x00007ffff76ddf4a in start_thread () from /lib64/libpthread.so.0
#8  0x00007ffff721320d in clone () from /lib64/libc.so.6
(gdb) quit


Portage 2.1.12.2 (default/linux/amd64/13.0/desktop, gcc-4.7.2, glibc-2.15-r3, 3.7.9-gentoo x86_64)
=================================================================
System uname: Linux-3.7.9-gentoo-x86_64-Intel-R-_Core-TM-_i3_CPU_U_380_@_1.33GHz-with-gentoo-2.1
KiB Mem:     3842004 total,    983632 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 12 Jun 2013 18:45:02 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4, 4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo wirelay java-overlay amielke-overlay steam-overlay local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-g -march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"



Please let me know if I am missing something with VLC or here on this web site which you need to know.
Comment 1 Paul Littlefield 2013-06-24 12:05:28 UTC
thinkpad ~ # eix -I vlc
[I] media-video/vlc
     Available versions:  2.0.5 ~2.0.6 **2.0.9999 **9999 {{+X a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec +avformat bidi bluray cdda cddb dbus dc1394 debug dirac direct2d directfb directx dshow dts dvb +dvbpsi dvd dxva2 egl elibc_glibc +encode fbosd +ffmpeg flac fluidsynth fontconfig +gcrypt gme gnome gnutls growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify libproxy libsamplerate libtar libtiger linsys lirc live lua +macosx +macosx-audio +macosx-dialog-provider +macosx-eyetv +macosx-qtkit +macosx-quartztext +macosx-vout matroska media-library mmx modplug mp3 mpeg mtp musepack ncurses neon ogg omxil opengl optimisememory opus oss png portaudio +postproc projectm pulseaudio pvr +qt4 rtsp run-as-root samba schroedinger sdl sdl-image shine shout sid skins speex sqlite sse svg switcher +swscale taglib theora truetype twolame udev upnp v4l vaapi vcdx vlm vorbis waveout wingdi wma-fixed x264 +xcb xml xosd xv zvbi}}
     Installed versions:  2.0.5(12:28:25 24/06/13)(X a52 aac alsa avcodec avformat cdda dbus debug dts dvbpsi dvd elibc_glibc encode ffmpeg flac gcrypt jack mmx mp3 mpeg ncurses ogg opengl png postproc pulseaudio sdl sse swscale truetype udev vaapi vorbis x264 xml -aalib -altivec -atmo -audioqueue -avahi -bidi -bluray -cddb -dc1394 -dirac -direct2d -directfb -directx -dshow -dvb -dxva2 -egl -fbosd -fluidsynth -fontconfig -gme -gnome -gnutls -growl -httpd -ieee1394 -ios-vout -kate -kde -libass -libcaca -libnotify -libproxy -libsamplerate -libtar -libtiger -linsys -lirc -live -lua -macosx -macosx-audio -macosx-dialog-provider -macosx-eyetv -macosx-qtkit -macosx-quartztext -macosx-vout -matroska -media-library -modplug -mtp -musepack -neon -omxil -optimisememory -opus -oss -portaudio -projectm -pvr -qt4 -rtsp -run-as-root -samba -schroedinger -sdl-image -shine -shout -sid -skins -speex -sqlite -svg -switcher -taglib -theora -twolame -upnp -v4l -vcdx -vlm -waveout -wingdi -wma-fixed -xcb -xosd -xv -zvbi)
Comment 2 Sean McGovern 2013-06-24 19:55:38 UTC
Can't reproduce in VLC 2.0.7 on ppc.

Can you unmask 2.0.7 on your machine and see if it still happens? Maybe this is restricted to AMD64?
Comment 3 Paul Littlefield 2013-06-25 17:17:25 UTC
I have installed the git 9999 version and it's an improvement.

It does not segfault but sits there...

paully@thinkpad ~ $ vlc ~/Downloads/matroska_test_w1_1/test1.mkv 

VLC media player 2.1.0-pre1 Rincewind (revision 2.1.0-git-3-g06005e8)
[0xbedef8] main interface error: no suitable interface module
[0xb274a8] main libvlc error: interface "globalhotkeys,none" initialization failed
[0xb274a8] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Remote control interface initialized. Type `help' for help.
[0x7fdac0c01758] main demux error: corrupt module: /usr/lib64/vlc/plugins/demux/libavformat_plugin.so
[0x7fdac0c04fc8] main decoder error: corrupt module: /usr/lib64/vlc/plugins/codec/libavcodec_plugin.so
status change: ( audio volume: 188 )
[0x7fdac0c55fc8] main decoder error: corrupt module: /usr/lib64/vlc/plugins/codec/libavcodec_plugin.so
Comment 4 Sean McGovern 2013-06-25 17:22:25 UTC
Can you try specifically with 2.0.7? -9999 would be the unstable branch which might have other issues.
Comment 5 Paul Littlefield 2013-07-03 09:24:02 UTC
(In reply to Sean McGovern from comment #4)
> Can you try specifically with 2.0.7? -9999 would be the unstable branch
> which might have other issues.

I can confirm that version...

VLC media player 2.0.7 Twoflower (revision 2.0.6-54-g7dd7e4d)

...has FIXED the issue.

Videos now all WORK.

Thank you for all your help.

 :-)

PAULLY
Comment 6 Paul Littlefield 2013-07-03 09:24:52 UTC
thinkpad ~ # which vlc
/usr/bin/vlc

thinkpad ~ # ldd /usr/bin/vlc
	linux-vdso.so.1 (0x00007fff637ff000)
	libvlc.so.5 => /usr/lib64/libvlc.so.5 (0x00007f002a02e000)
	libvlccore.so.5 => /usr/lib64/libvlccore.so.5 (0x00007f0029d67000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f0029b4a000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f0029946000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f002959e000)
	libdbus-1.so.3 => /usr/lib64/libdbus-1.so.3 (0x00007f0029360000)
	librt.so.1 => /lib64/librt.so.1 (0x00007f0029157000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f0028e61000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f002a248000)

Problem. Solved.