Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 463558

Summary: >=media-video/vlc-2.0.5[svg] segfaults
Product: Gentoo Linux Reporter: Harris Landgarten <harrisl>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED DUPLICATE    
Severity: normal CC: atoth, captaincrutches, chewi, crabbedhaloablution, doctor_who, doug.hunley, floppym, gekkoman, gentoo, jarausch, jrmalaq, polynomial-c, renatogallo, rose, rzubaly, zeekec
Priority: Normal    
Version: 10.1   
Hardware: All   
OS: Linux   
URL: https://trac.videolan.org/vlc/ticket/8694
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
strace showing segfault
list of package I installed since my last working vlc-2.0.5

Description Harris Landgarten 2013-03-28 02:23:14 UTC
Created attachment 343488 [details]
build log

problem appears to be in ./vlc-cache-gen ../modules which segfaults

from /var/log/messages:

vlc-cache-gen[8890]: segfault at 7f09b8202c70 ip 00007f09c1c5f368 sp 00007fff7c7d9798 error 4 in libc-2.16.so[7f09c1b3e000+19e000
Comment 1 Harris Landgarten 2013-03-28 15:29:14 UTC
Created attachment 343534 [details]
strace showing segfault
Comment 2 Harris Landgarten 2013-03-28 15:29:39 UTC
same issue with glibc-2.17
Comment 3 Harris Landgarten 2013-04-02 02:56:09 UTC
backtrace of seqfault

Reading symbols from /var/tmp/paludis/media-video-vlc-2.0.5/work/vlc-2.0.5/bin/.libs/vlc-cache-gen...(no debugging symbols found)...done.
(gdb) run ../modules
Starting program: /var/tmp/paludis/media-video-vlc-2.0.5/work/vlc-2.0.5/bin/.libs/vlc-cache-gen ../modules
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".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff766f6e8 in __strcmp_sse42 () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff766f6e8 in __strcmp_sse42 () from /lib64/libc.so.6
#1  0x00007ffff0b74b49 in g_str_equal () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ffff0b7427f in g_hash_table_lookup () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff0b9350f in g_quark_from_static_string () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fffee4a1eac in gobject_init_ctor () from /usr/lib64/libgobject-2.0.so.0
#5  0x00007ffff7de9b56 in call_init () from /lib64/ld-linux-x86-64.so.2
#6  0x00007ffff7de9c3a in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
#7  0x00007ffff7dedce9 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#8  0x00007ffff7de9996 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#9  0x00007ffff7ded519 in _dl_open () from /lib64/ld-linux-x86-64.so.2
#10 0x00007ffff6ce41e6 in dlopen_doit () from /lib64/libdl.so.2
#11 0x00007ffff7de9996 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#12 0x00007ffff6ce478c in _dlerror_run () from /lib64/libdl.so.2
#13 0x00007ffff6ce4281 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
#14 0x00007ffff798a61d in module_Load () from /var/tmp/paludis/media-video-vlc-2.0.5/work/vlc-2.0.5/src/.libs/libvlccore.so.5
#15 0x00007ffff7975197 in module_InitDynamic () from /var/tmp/paludis/media-video-vlc-2.0.5/work/vlc-2.0.5/src/.libs/libvlccore.so.5
#16 0x00007ffff7975472 in AllocatePluginDir () from /var/tmp/paludis/media-video-vlc-2.0.5/work/vlc-2.0.5/src/.libs/libvlccore.so.5
#17 0x00007ffff797551a in AllocatePluginDir () from /var/tmp/paludis/media-video-vlc-2.0.5/work/vlc-2.0.5/src/.libs/libvlccore.so.5
#18 0x00007ffff797551a in AllocatePluginDir () from /var/tmp/paludis/media-video-vlc-2.0.5/work/vlc-2.0.5/src/.libs/libvlccore.so.5
#19 0x00007ffff7975671 in AllocatePluginPath () from /var/tmp/paludis/media-video-vlc-2.0.5/work/vlc-2.0.5/src/.libs/libvlccore.so.5
#20 0x00007ffff7975c44 in module_LoadPlugins () from /var/tmp/paludis/media-video-vlc-2.0.5/work/vlc-2.0.5/src/.libs/libvlccore.so.5
#21 0x00007ffff7918e2f in libvlc_InternalInit () from /var/tmp/paludis/media-video-vlc-2.0.5/work/vlc-2.0.5/src/.libs/libvlccore.so.5
#22 0x00007ffff7bc8edd in libvlc_new () from /var/tmp/paludis/media-video-vlc-2.0.5/work/vlc-2.0.5/lib/.libs/libvlc.so.5
#23 0x0000000000400adf in main ()
Comment 4 Harris Landgarten 2013-04-02 04:00:19 UTC
note I get the same seqfault and bt when running gdb on /usr/lib64/vlc/vlc-cache-gen which was last successfully installed on Feb 23, 2013

This shows the segfault is being caused by a runtime dependency of vlc-cache-gen, possibly glib, which changed after Feb 23.

# ltrace /usr/lib64/vlc/vlc-cache-gen /usr/lib64/vlc/plugins
__libc_start_main(0x400910, 2, 0x7ffff33153b8, 0x400b80 <unfinished ...>
setlocale(LC_CTYPE, "")                                                                                 = "en_US.utf8"
getopt_long(2, 0x7ffff33153b8, "fhV", 0x400dc0, nil)                                                    = -1
FromLocale(0x7ffff3317046, 0x7ffff33153b8, 1, 0)                                                        = 0x7ffff3317046
setenv("VLC_PLUGIN_PATH", "/usr/lib64/vlc/plugins", 1)                                                  = 0
libvlc_new(2, 0x7ffff3315280, 0, 0x7ffff3317fc9 <no return ...>
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
Comment 5 Harris Landgarten 2013-04-02 11:30:59 UTC
bt full gave more info

#14 0x00007ffff797a3a2 in module_Load (p_this=0x604218, psz_file=0x74e7b0 "../modules/text_renderer/.libs/libsvg_plugin.so", p_handle=0x7fffffffd458, lazy=true)
    at posix/plugin.c:62
        flags = 1
        path = 0x74e7b0 "../modules/text_renderer/.libs/libsvg_plugin.so"
        handle = 0x7fffffffd410
#15 0x00007ffff795ca58 in module_InitDynamic (obj=0x604218, path=0x74e7b0 "../modules/text_renderer/.libs/libsvg_plugin.so", fast=true) at modules/bank.c:536
        handle = 0x74e7b0
        entry_name = "vlc_entry__1_2_0l"
        entry = 0x7ffff7979dd1 <vlc_statEx+132>
        module = 0x7fffffffd4a0
#16 0x00007ffff795c90f in AllocatePluginFile (bank=0x7fffffffd7d0, abspath=0x74e7b0 "../modules/text_renderer/.libs/libsvg_plugin.so", 
    relpath=0x74e7f0 "text_renderer/.libs/libsvg_plugin.so", st=0x7fffffffd4f0) at modules/bank.c:479
        module = 0x0

I disabled the svg use flag and sure enough vlc now builds.
Comment 6 Harris Landgarten 2013-04-02 14:46:31 UTC
After successfully installing vlc with use -svg the program segfaults on running. I reinstalled with -libnotify and now it runs.

What is going on with this package?
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-04-15 15:46:49 UTC
I can confirm this. Disabling the svg USE flag fixes the problem.

# emerge --info vlc
Portage 2.2.0_alpha173 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3-asneeded, glibc-2.15-r3, 3.8.7 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.8.7-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2389-with-gentoo-2.2
KiB Mem:     8243584 total,   1363500 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Mon, 15 Apr 2013 06:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3_pre::poly-c
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo kde-sunset poly-c
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/adobe /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/env.d /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml"
CXXFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="/lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/opt/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde-sunset /usr/local/portage"
SYNC="rsync://192.168.0.254/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 berkdb branding bzip2 cairo caps cdda cdr cli cracklib crypt css cups cxx dbus declarative dri dts dvd dvdr emboss encode exif faac fam ffmpeg firefox flac gdbm gif gmp gnutls gtk iconv icu idn inotify jpeg jpeg2k kde kipi lame lcms libnotify lzma mac mad matroska midi mmap mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp opus pam pango pcre pdf phonon plasma png ppds qt3support qt4 quicktime readline rtmp schroedinger sdl session slang spell sse sse2 ssl startup-notification svg theora threads tiff truetype twolame udev unicode upower usb vaapi vcd vorbis vpx wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib zsh-completion" ABI_X86="64" ALSA_CARDS="emu10k1 hda-intel usb-audio" 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" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev joystick" KERNEL="linux" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-video/vlc-2.0.6 was built with the following:
USE="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 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 (multilib) -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) (-win32codecs) (-wingdi) wma-fixed x264 xcb xml -xosd xv -zvbi" ABI_X86="64"

# emerge -qpv librsvg
[ebuild   R   ] gnome-base/librsvg-2.36.4  USE="gtk introspection -tools -vala"
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-04-15 15:59:29 UTC
> gdb vlc
GNU gdb (Gentoo 7.5.1 p1) 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...done.
(gdb) run
Starting program: /usr/bin/vlc 
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.6 Twoflower (revision 2.0.6-0-gbe9623c)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff71b6276 in ?? () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff71b6276 in ?? () from /lib64/libc.so.6
#1  0x00007ffff366f569 in g_str_equal () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ffff366ec0d in g_hash_table_lookup ()
   from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff368e050 in g_quark_from_static_string ()
   from /usr/lib64/libglib-2.0.so.0
#4  0x00007ffff0bc16ac in ?? () from /usr/lib64/libgobject-2.0.so.0
#5  0x00007ffff7de99ce in ?? () from /lib64/ld-linux-x86-64.so.2
#6  0x00007ffff7de9aa2 in ?? () from /lib64/ld-linux-x86-64.so.2
#7  0x00007ffff7deddca in ?? () from /lib64/ld-linux-x86-64.so.2
#8  0x00007ffff7de9829 in ?? () from /lib64/ld-linux-x86-64.so.2
#9  0x00007ffff7ded571 in ?? () from /lib64/ld-linux-x86-64.so.2
#10 0x00007ffff74dc05b in ?? () from /lib64/libdl.so.2
#11 0x00007ffff7de9829 in ?? () from /lib64/ld-linux-x86-64.so.2
#12 0x00007ffff74dc66d in ?? () from /lib64/libdl.so.2
#13 0x00007ffff74dc0f1 in dlopen () from /lib64/libdl.so.2
#14 0x00007ffff79873a3 in module_Load (p_this=p_this@entry=0x605428, 
    psz_file=psz_file@entry=0x720fb0 "/usr/lib64/vlc/plugins/text_renderer/libsvg_plugin.so", p_handle=p_handle@entry=0x7fffffffd3f8, lazy=<optimized out>)
    at posix/plugin.c:62
#15 0x00007ffff7972d57 in module_InitDynamic (obj=0x605428, 
    path=0x720fb0 "/usr/lib64/vlc/plugins/text_renderer/libsvg_plugin.so", 
    fast=<optimized out>) at modules/bank.c:536
#16 0x00007ffff7973146 in AllocatePluginFile (st=<optimized out>, 
---Type <return> to continue, or q <return> to quit---
    relpath=<optimized out>, abspath=<optimized out>, bank=<optimized out>)
    at modules/bank.c:479
#17 AllocatePluginDir (bank=0x7fffffffd630, maxdepth=4039075098, 
    absdir=0x5e2f3160 <Address 0x5e2f3160 out of bounds>, 
    reldir=0x619c70 "text_renderer") at modules/bank.c:440
#18 0x00007ffff7973108 in AllocatePluginDir (bank=0x7fffffffd630, 
    maxdepth=4039075098, maxdepth@entry=5, 
    absdir=0x5e2f3160 <Address 0x5e2f3160 out of bounds>, 
    absdir@entry=0x61a180 "/usr/lib64/vlc/plugins", reldir=0x0)
    at modules/bank.c:444
#19 0x00007ffff797321f in AllocatePluginPath (p_this=p_this@entry=0x605428, 
    path=0x61a180 "/usr/lib64/vlc/plugins", mode=mode@entry=CACHE_USE)
    at modules/bank.c:353
#20 0x00007ffff79736d9 in AllocateAllPlugins (p_this=0x605428)
    at modules/bank.c:282
#21 module_LoadPlugins (obj=obj@entry=0x605428) at modules/bank.c:189
#22 0x00007ffff791814b in libvlc_InternalInit (
    p_libvlc=p_libvlc@entry=0x605428, i_argc=i_argc@entry=3, 
    ppsz_argv=ppsz_argv@entry=0x7fffffffd810) at libvlc.c:247
#23 0x00007ffff7bc8e58 in libvlc_new (argc=argc@entry=2, 
    argv=argv@entry=0x7fffffffd870) at core.c:59
#24 0x000000000040147b in main (i_argc=<optimized out>, 
    ppsz_argv=<optimized out>) at vlc.c:217
(gdb) bt full
#0  0x00007ffff71b6276 in ?? () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007ffff366f569 in g_str_equal () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#2  0x00007ffff366ec0d in g_hash_table_lookup ()
   from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#3  0x00007ffff368e050 in g_quark_from_static_string ()
   from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#4  0x00007ffff0bc16ac in ?? () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#5  0x00007ffff7de99ce in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#6  0x00007ffff7de9aa2 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#7  0x00007ffff7deddca in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#8  0x00007ffff7de9829 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#9  0x00007ffff7ded571 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#10 0x00007ffff74dc05b in ?? () from /lib64/libdl.so.2
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#11 0x00007ffff7de9829 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#12 0x00007ffff74dc66d in ?? () from /lib64/libdl.so.2
No symbol table info available.
#13 0x00007ffff74dc0f1 in dlopen () from /lib64/libdl.so.2
No symbol table info available.
#14 0x00007ffff79873a3 in module_Load (p_this=p_this@entry=0x605428, 
    psz_file=psz_file@entry=0x720fb0 "/usr/lib64/vlc/plugins/text_renderer/libsvg_plugin.so", p_handle=p_handle@entry=0x7fffffffd3f8, lazy=<optimized out>)
    at posix/plugin.c:62
        flags = 1
        path = 0x720fb0 "/usr/lib64/vlc/plugins/text_renderer/libsvg_plugin.so"
        handle = <optimized out>
#15 0x00007ffff7972d57 in module_InitDynamic (obj=0x605428, 
    path=0x720fb0 "/usr/lib64/vlc/plugins/text_renderer/libsvg_plugin.so", 
    fast=<optimized out>) at modules/bank.c:536
        handle = <optimized out>
        entry_name = "vlc_entry__1_2_0l"
        entry = <optimized out>
        module = <optimized out>
#16 0x00007ffff7973146 in AllocatePluginFile (st=<optimized out>, 
    relpath=<optimized out>, abspath=<optimized out>, bank=<optimized out>)
    at modules/bank.c:479
        module = 0x0
---Type <return> to continue, or q <return> to quit---
#17 AllocatePluginDir (bank=0x7fffffffd630, maxdepth=4039075098, 
    absdir=0x5e2f3160 <Address 0x5e2f3160 out of bounds>, 
    reldir=0x619c70 "text_renderer") at modules/bank.c:440
        prefix = "lib"
        suffix = "_plugin.so"
        len = 26
        file = 0x718ca0 "libsvg_plugin.so"
        relpath = 0x720f80 "text_renderer/libsvg_plugin.so"
        abspath = 0x720fb0 "/usr/lib64/vlc/plugins/text_renderer/libsvg_plugin.so"
        st = {st_dev = 2051, st_ino = 663498, st_nlink = 1, st_mode = 33261, 
          st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 46782, 
          st_blksize = 4096, st_blocks = 96, st_atim = {tv_sec = 1366041169, 
            tv_nsec = 0}, st_mtim = {tv_sec = 1366041169, tv_nsec = 0}, 
          st_ctim = {tv_sec = 1366041191, tv_nsec = 518332541}, __unused = {0, 
            0, 0}}
        dh = 0x63e930
#18 0x00007ffff7973108 in AllocatePluginDir (bank=0x7fffffffd630, 
    maxdepth=4039075098, maxdepth@entry=5, 
    absdir=0x5e2f3160 <Address 0x5e2f3160 out of bounds>, 
    absdir@entry=0x61a180 "/usr/lib64/vlc/plugins", reldir=0x0)
    at modules/bank.c:444
        file = 0x619d90 "text_renderer"
        relpath = 0x619c70 "text_renderer"
---Type <return> to continue, or q <return> to quit---
        abspath = 0x71c300 "/usr/lib64/vlc/plugins/text_renderer"
        st = {st_dev = 2051, st_ino = 662166, st_nlink = 2, st_mode = 16877, 
          st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 4096, 
          st_blksize = 4096, st_blocks = 8, st_atim = {tv_sec = 1329811588, 
            tv_nsec = 840183302}, st_mtim = {tv_sec = 1366041191, 
            tv_nsec = 519332530}, st_ctim = {tv_sec = 1366041191, 
            tv_nsec = 519332530}, __unused = {0, 0, 0}}
        dh = 0x636900
#19 0x00007ffff797321f in AllocatePluginPath (p_this=p_this@entry=0x605428, 
    path=0x61a180 "/usr/lib64/vlc/plugins", mode=mode@entry=CACHE_USE)
    at modules/bank.c:353
        bank = {obj = 0x605428, base = 0x61a180 "/usr/lib64/vlc/plugins", 
          mode = CACHE_USE, i_cache = 201, cache = 0x7279a0, 
          i_loaded_cache = 0, loaded_cache = 0x0}
        cache = 0x0
        count = 0
#20 0x00007ffff79736d9 in AllocateAllPlugins (p_this=0x605428)
    at modules/bank.c:282
        vlcpath = 0x605ab0 "/usr/lib64/vlc"
        paths = 0x61a180 "/usr/lib64/vlc/plugins"
        mode = CACHE_USE
#21 module_LoadPlugins (obj=obj@entry=0x605428) at modules/bank.c:189
        count = 140737347366575
        list = <optimized out>
---Type <return> to continue, or q <return> to quit---
#22 0x00007ffff791814b in libvlc_InternalInit (
    p_libvlc=p_libvlc@entry=0x605428, i_argc=i_argc@entry=3,
    ppsz_argv=ppsz_argv@entry=0x7fffffffd810) at libvlc.c:247
        psz_modules = 0x0
        psz_parser = 0x0
        psz_control = 0x0
        p_playlist = 0x0
        module_count = <optimized out>
        vlc_optind = <optimized out>
#23 0x00007ffff7bc8e58 in libvlc_new (argc=argc@entry=2,
    argv=argv@entry=0x7fffffffd870) at core.c:59
        p_new = 0x605330
        my_argv = 0x7fffffffd810
        p_libvlc_int = 0x605428
#24 0x000000000040147b in main (i_argc=<optimized out>,
    ppsz_argv=<optimized out>) at vlc.c:217
        set = {__val = {86023, 0 <repeats 15 times>}}
        argv = 0x7fffffffd870
        argc = <optimized out>
        i = <optimized out>
        vlc = <optimized out>
        self = <optimized out>
        signum = 32767
(gdb)
Comment 9 Jürgen Geuter 2013-04-24 20:24:19 UTC
vlc-2.0.6 has the same problem
Comment 10 renato gallo 2013-05-21 23:39:28 UTC
tried compiling with -svg still crashes
Comment 11 James Le Cuirot gentoo-dev 2013-05-26 13:52:10 UTC
I saw a segfault in the same place but had to disable sdl instead. Possibly a different problem but just adding this in case someone else is having trouble.
Comment 12 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-07-26 16:30:49 UTC
Any chance you guys have >=dev-libs/glib-2.36.0 installed? If yes does the problem disappear when you downgrade glib to a version prior 2.36.0?
Comment 13 Markus Walter 2013-07-27 15:24:03 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #12)
> Any chance you guys have >=dev-libs/glib-2.36.0 installed? If yes does the
> problem disappear when you downgrade glib to a version prior 2.36.0?

Downgrading from glib-2.36.3-r1 to glib-2.34.3 solved the problem for me.
Comment 14 Philipp Richter 2013-07-27 19:16:50 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #12)
> Any chance you guys have >=dev-libs/glib-2.36.0 installed? If yes does the
> problem disappear when you downgrade glib to a version prior 2.36.0?

>=dev-libs/glib-2.36 Is required for quite a few packages I've installed. Downgrading would be a real pain, especially for only one program. The vlc-9999 went through successfully for me after cleanly unmerging the existing vlc although after the merge portage tries to run vlc-cache-gen but that still segfaults:

 * Running /usr/lib64/vlc/vlc-cache-gen on /usr/lib64/vlc/plugins/
/var/tmp/portage/media-video/vlc-9999/temp/environment: line 3546: 14794 Segmentation fault      "/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/"

But that didn't stop portage from installing anyway.
vlc launches without problem and it played any format I threw at it.

Note that reemerging the same vlc-9999 fails with the './vlc-cache-gen ../modules' segfault during compilation. Merging it after clean removal works for some reason.
Comment 15 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-07-28 19:04:00 UTC
*** Bug 478414 has been marked as a duplicate of this bug. ***
Comment 16 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-07-28 19:07:38 UTC
Maybe someone can convince upstream to accept https://trac.videolan.org/vlc/ticket/8694 as valid.
Having vlc segfault because of such an important lib is not really something they should ignore...
Comment 17 Ilya Gordeev 2013-07-30 18:45:19 UTC
Have the same trouble after the last upgrade, i.e. after upgrade to glib-2.36.3-r1. ./vlc-cache-gen fails while calling dlopen for ../modules/notify/.libs/libnotify_plugin.so or ../modules/text_renderer/.libs/libsvg_plugin.so
Here my backtrace:

Program received signal SIGSEGV, Segmentation fault.
__strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:289
289     ../sysdeps/x86_64/multiarch/../strcmp.S: Нет такого файла или каталога.
(gdb) bt
#0  __strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:289
#1  0x00007ffff05979c9 in g_str_equal (v1=<optimized out>, v2=<optimized out>) at ghash.c:1706
#2  0x00007ffff05970ff in g_hash_table_lookup_node (hash_return=<synthetic pointer>, key=0x7fffec4bb97a, hash_table=0x7a8c00)
    at ghash.c:386
#3  g_hash_table_lookup (hash_table=0x7a8c00, key=key@entry=0x7fffec4bb97a) at ghash.c:1076
#4  0x00007ffff05b639f in quark_from_string (duplicate=0, string=0x7fffec4bb97a "-g-type-private--GTypeFlags") at gquark.c:173
#5  g_quark_from_static_string (string=string@entry=0x7fffec4bb97a "-g-type-private--GTypeFlags") at gquark.c:239
#6  0x00007fffec486f4c in gobject_init_ctor () at gtype.c:4365
#7  0x00007ffff7de9b46 in call_init (env=0x603f20, argv=0x7fffffffdee8, argc=2, l=<optimized out>) at dl-init.c:84
#8  call_init (l=<optimized out>, argc=2, argv=0x7fffffffdee8, env=0x603f20) at dl-init.c:34
#9  0x00007ffff7de9c2a in _dl_init (main_map=main_map@entry=0x7f2870, argc=2, argv=0x7fffffffdee8, env=0x603f20) at dl-init.c:133
#10 0x00007ffff7dedcd9 in dl_open_worker (a=a@entry=0x7fffffffd3f8) at dl-open.c:566
#11 0x00007ffff7de9986 in _dl_catch_error (objname=objname@entry=0x7fffffffd3e8, errstring=errstring@entry=0x7fffffffd3f0, 
    mallocedp=mallocedp@entry=0x7fffffffd3e7, operate=operate@entry=0x7ffff7ded960 <dl_open_worker>, args=args@entry=0x7fffffffd3f8)
    at dl-error.c:177
#12 0x00007ffff7ded509 in _dl_open (file=0x7ed520 "../modules//notify/.libs/libnotify_plugin.so", mode=-2147483647, 
    caller_dlopen=<optimized out>, nsid=-2, argc=2, argv=0x7fffffffdee8, env=0x603f20) at dl-open.c:656
#13 0x00007ffff6cdc1e6 in dlopen_doit (a=a@entry=0x7fffffffd600) at dlopen.c:66
#14 0x00007ffff7de9986 in _dl_catch_error (objname=0x6643c0, errstring=0x6643c8, mallocedp=0x6643b8, operate=0x7ffff6cdc180 <dlopen_doit>, 
    args=0x7fffffffd600) at dl-error.c:177
#15 0x00007ffff6cdc78c in _dlerror_run (operate=operate@entry=0x7ffff6cdc180 <dlopen_doit>, args=args@entry=0x7fffffffd600)
    at dlerror.c:163
#16 0x00007ffff6cdc281 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#17 0x00007ffff798190d in ?? () from /usr/lib64/libvlccore.so.5
#18 0x00007ffff796c3c7 in ?? () from /usr/lib64/libvlccore.so.5
#19 0x00007ffff796c6a2 in ?? () from /usr/lib64/libvlccore.so.5
#20 0x00007ffff796c74a in ?? () from /usr/lib64/libvlccore.so.5
#21 0x00007ffff796c74a in ?? () from /usr/lib64/libvlccore.so.5
#22 0x00007ffff796c8a1 in ?? () from /usr/lib64/libvlccore.so.5
#23 0x00007ffff796ce74 in ?? () from /usr/lib64/libvlccore.so.5
#24 0x00007ffff791015f in libvlc_InternalInit () from /usr/lib64/libvlccore.so.5
#25 0x00007ffff7bc8e5d in libvlc_new () from /usr/lib64/libvlc.so.5
#26 0x0000000000400adf in main ()
Comment 18 Luca Barbato gentoo-dev 2013-07-31 10:56:50 UTC
vlc does not use itself glib, thus I _guess_ the whole problem is caused by a library loaded dynamically by vlc that crashes with the new glib.

Please help us tracking which is.

In order to do that might be useful building glib using asan (clang or gcc) or run the whole thing with valgrind.

Upstream won't act till the problem is correctly pinpointed =/
Comment 19 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-07-31 11:05:35 UTC
Can anyone confirm that the error disappears when you have >=glib-2.36.0 installed and vlc was compiled with libnotify USE flag being disabled?
Comment 20 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-07-31 11:07:00 UTC
*** Bug 479110 has been marked as a duplicate of this bug. ***
Comment 21 Helmut Jarausch 2013-07-31 11:18:42 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #19)
> Can anyone confirm that the error disappears when you have >=glib-2.36.0
> installed and vlc was compiled with libnotify USE flag being disabled?

Unfortunately, I cannot check since vlc is not yet ready for ffmpeg-2.0
I have dev-libs/glib-2.36.3-r1 installed and get

checking for AVCODEC... yes
configure: error: libavcodec versions 55 and later are not supported yet.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-video/vlc-2.0.9999/work/vlc-2.0.9999/config.log
Comment 22 Markus Walter 2013-07-31 11:26:21 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #19)
> Can anyone confirm that the error disappears when you have >=glib-2.36.0
> installed and vlc was compiled with libnotify USE flag being disabled?

Indeed with 2.36.3-r1 I see vlc[libnotify] segfault whereas vlc[-libnotify] merges just fine.
Comment 23 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-07-31 11:29:21 UTC
(In reply to Helmut Jarausch from comment #21)
> (In reply to Lars Wendler (Polynomial-C) from comment #19)
> > Can anyone confirm that the error disappears when you have >=glib-2.36.0
> > installed and vlc was compiled with libnotify USE flag being disabled?
> 
> Unfortunately, I cannot check since vlc is not yet ready for ffmpeg-2.0
> I have dev-libs/glib-2.36.3-r1 installed and get
> 
> checking for AVCODEC... yes
> configure: error: libavcodec versions 55 and later are not supported yet.
> 
> !!! Please attach the following file when seeking support:
> !!! /var/tmp/portage/media-video/vlc-2.0.9999/work/vlc-2.0.9999/config.log

this is bug #476506
Comment 24 Juergen Rose 2013-07-31 11:30:43 UTC
'USE="-libnotify" emerge -v1 vlc' fails here, too:

root@caiman:/home_impala/rose(176)# USE="-libnotify" emerge -v1 vlc
...
if test "x86_64-pc-linux-gnu" = "x86_64-pc-linux-gnu"; then \
        ./vlc-cache-gen ../modules ; \
else \
        echo "Cross-compilation: cache generation skipped!" ; \
fi
/bin/sh: line 4: 29949 Segmentation fault      ./vlc-cache-gen ../modules
make[2]: *** [../modules/plugins.dat] Error 139

root@caiman:/home_impala/rose(178)# qlist -Iv dev-libs/glib
dev-libs/glib-2.36.3-r1
Comment 25 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-07-31 12:18:01 UTC
Here's an idea how you could help us narrowing the problem further down:

All plugins are installed in /usr/lib/vlc/plugins/

Move one of the .so files being there outside the plugins folder and run the following command:

  /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins/

If the command segfaults move the .so file back to where it was before and continue with the next .so file.

Once the above command doesn't segfault, you have found the offending plugin.

On my system libqt4_plugin.so segfaults.
Comment 26 Harris Landgarten 2013-07-31 13:26:23 UTC
Same on my system. /usr/lib/vlc/plugins/gui/libqt4_plugin.so is causing the seqfault
Comment 27 nE0sIghT 2013-07-31 14:51:51 UTC
For me use_fluidsynth was cause of problem ( https://bbs.archlinux.org/viewtopic.php?pid=1269782 )
Comment 28 Luca Barbato gentoo-dev 2013-07-31 16:01:47 UTC
Looks like something using glib is doing something as bad as writing memory not own.

I doubt it is just vlc having the issue.
Comment 29 Ilya Gordeev 2013-07-31 18:18:05 UTC
If move libqt4_plugin.so, libnotify_plugin.so and libsvg_plugin.so into module/ directory than this small code crashes too:

#include <dlfcn.h>
int main() {
	dlopen("modules/libqt4_plugin.so", RTLD_LAZY);
	dlclose(dlopen("modules/libnotify_plugin.so", RTLD_LAZY));
	dlopen("modules/libsvg_plugin.so", RTLD_LAZY);
	return 0;
}
Comment 30 jms 2013-08-01 04:26:28 UTC
(In reply to Harris Landgarten from comment #4)
> note I get the same seqfault and bt when running gdb on
> /usr/lib64/vlc/vlc-cache-gen which was last successfully installed on Feb
> 23, 2013
> 
> This shows the segfault is being caused by a runtime dependency of
> vlc-cache-gen, possibly glib, which changed after Feb 23.

well was hit by this problem today:
/bin/sh: line 4:  5088 Segmentation fault      ./vlc-cache-gen ../modules

was rebuilding vlc-2.0.7 due to an update of libpng wich tell me to use @preserved-rebuild and so re-emerge vlc

I have too /var/log/messages:
kernel: [60707.651549] vlc-cache-gen[5088]: segfault at 7f4aa50decb0 ip 00007f4aab6bbdb8 sp 00007fffa4406498 error 4 in libc-2.15.so[7f4aab59b000+19d000]

note I have:
[I] sys-libs/glibc
Installed versions:  2.15-r3(2.2)^s(10:50:18 03/04/13)(gd multilib -debug -hardened -profile -selinux -vanilla CROSSCOMPILE_OPTS="-headers-only")

and last working vlc 2.0.7
media-video/vlc-2.0.7 Installed versions:  2.0.7(10:32:13 21/07/13)

well vlc-2.0.7  was installed before with  glibc-2.15-r3 with no problem and now I can't reinstall it.

I have theses uses flag
[ebuild   R   ~] media-video/vlc-2.0.7  USE="X a52 aac aalib alsa avahi avcodec avformat cdda cddb dbus dts dvb dvbpsi dvd encode ffmpeg flac fontconfig gcrypt kde libnotify matroska mmx mp3 mpeg mtp ncurses ogg opengl oss png postproc pulseaudio qt4 sdl sse svg swscale taglib theora truetype udev v4l vaapi vorbis x264 xcb xml xosd xv (-altivec) -atmo (-audioqueue) -bidi -bluray -dc1394 -debug -dirac (-direct2d) -directfb (-directx) (-dshow) (-dxva2) -egl -fbosd -fluidsynth -gme -gnome -gnutls -growl -httpd -ieee1394 (-ios-vout) -jack -kate -libass -libcaca -libproxy -libsamplerate -libtar -libtiger -linsys -lirc -live -lua (-macosx) (-macosx-audio) (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-macosx-vout) (-media-library) -modplug -musepack (-neon) -omxil -optimisememory -opus -portaudio -projectm -pvr -rtsp -run-as-root -samba -schroedinger -sdl-image -shine -shout -sid -skins -speex -sqlite -switcher -twolame -upnp -vcdx -vlm (-waveout) (-wingdi) -wma-fixed -zvbi" 0 kB

did try emerging vlc with -png  fail to

and 
[I] gnome-base/librsvg
     Available versions:  (2) *2.36.1 *2.36.3 2.36.4
       {doc +gtk +introspection tools vala}
     Installed versions:  2.36.4(2)(11:59:35 05/04/13)(gtk introspection -tools -vala)


but 
I] dev-libs/glib
     Available versions:  
     (1)    1.2.10-r5
     (2)    2.32.4-r1 (~)2.34.3 (~)2.36.3 (~)2.36.3-r1
 Installed versions:  2.36.3-r1(2)(13:33:25 28/07/13)(-debug -fam -selinux -static-libs -systemtap -test -utils -xattr KERNEL="linux" PYTHON_TARGETS="python2_7 -python2_5 -python2_6")


I can comfirme that now rebuilding vlc with -svg works for me
althought runing vlc from command line show up an error vlc works (quick test mp4)

vlc
VLC media player 2.0.7 Twoflower (revision 2.0.6-54-g7dd7e4d)
[0xdc7108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0xe7d038] qt4 interface error: Unable to load extensions module
Comment 31 jms 2013-08-01 04:28:52 UTC
Created attachment 354782 [details]
list of package I installed since my last working vlc-2.0.5
Comment 32 jms 2013-08-01 04:31:38 UTC
c
Portage 2.1.13.2 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.15-r3, 3.9.6-gentoo-jms-3.9.6 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.9.6-gentoo-jms-3.9.6-x86_64-Intel-R-_Core-TM-_i5-3210M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     7676464 total,   1611188 free
KiB Swap:    8396796 total,   8366632 free
Timestamp of tree: Thu, 01 Aug 2013 01:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 ao avahi bash-completion berkdb bindist bluetooth branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt css cups cxx dbus declarative dhcpcd dri dts dv dvb dvd dvdnav dvdr emboss encode evdev exif fam firefox flac fontconfig fortran gd gdbm gif gpm gtk gzip iconv icu imap ipv6 jpeg jpeg2k kde kipi laptop lcms ldap libav libnotify lzma lzo mad maildir matroska memlimit mhash mikmod mime mmap mmx mng mod modules motif mp3 mp4 mpeg mtp mudflap multilib mysql ncurse ncurses nls nptl ogg openal opengl openmp oss pam pango pcmcia pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 quicktime raw readline resolvconf scanner sdl semantic-desktop sematic-deskyop session smp spell sse sse2 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg syslog taglib tcpd theora thumbnail tidy tiff truetype udev udisks unicode upower usb utf8 v4l v4l2 vaapi vcd vdpau video vim-syntax vorbis wifi win32codecs wxwidgets x x264 xcb xcomposit xcomposite xine xinerama xml xosd xpm xscreensaver xulrunner xv xvid xvmc zip zlib" ABI_X86="64 32" 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en es fr en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa nvidia modesetting" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 33 jms 2013-08-01 04:48:37 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #19)
> Can anyone confirm that the error disappears when you have >=glib-2.36.0
> installed and vlc was compiled with libnotify USE flag being disabled?

yes for me build  correctly with -libnotify
 Installed versions:  2.0.7(00:12:11 01/08/13)(X a52 aac aalib alsa avahi avcodec avformat cdda cddb dbus dts dvb dvbpsi dvd encode ffmpeg flac fontconfig gcrypt kde matroska mmx mp3 mpeg mtp ncurses ogg opengl oss png postproc pulseaudio qt4 sdl sse svg swscale taglib theora truetype udev v4l vaapi vorbis x264 xcb xml xosd xv -altivec -atmo -audioqueue -bidi -bluray -dc1394 -debug -dirac -direct2d -directfb -directx -dshow -dxva2 -egl -fbosd -fluidsynth -gme -gnome -gnutls -growl -httpd -ieee1394 -ios-vout -jack -kate -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 -media-library -modplug -musepack -neon -omxil -optimisememory -opus -portaudio -projectm -pvr -rtsp -run-as-root -samba -schroedinger -sdl-image -shine -shout -sid -skins -speex -sqlite -switcher -twolame -upnp -vcdx -vlm -waveout -wingdi -wma-fixed -zvbi ELIBC="glibc")
Comment 34 Captain Crutches 2013-08-05 02:04:29 UTC
(In reply to jms from comment #33)
> (In reply to Lars Wendler (Polynomial-C) from comment #19)
> > Can anyone confirm that the error disappears when you have >=glib-2.36.0
> > installed and vlc was compiled with libnotify USE flag being disabled?
> 
> yes for me build  correctly with -libnotify

Unfortunately, this doesn't fix it for me. vlc-2.0.7 with -svg, -libnotify, and glib-2.36.3 still segfaults.  It emerges fine, but crashes when opening a file or running vlc-cache-gen.

Backtrace from segfault: http://bpaste.net/raw/119996/
emerge --info: http://bpaste.net/raw/119997/

vlc Installed versions:  2.0.7(07:53:55 PM 08/04/2013)(X a52 aac aalib alsa avcodec avformat cdda dbus dvbpsi dvd encode ffmpeg flac gcrypt kde libass lua matroska mmx mp3 mpeg musepack ncurses ogg opengl png postproc pulseaudio qt4 samba sdl speex sqlite sse swscale theora truetype udev v4l vorbis x264 xcb xml xv -altivec -atmo -audioqueue -avahi -bidi -bluray -cddb -dc1394 -debug -dirac -direct2d -directfb -directx -dshow -dts -dvb -dxva2 -egl -fbosd -fluidsynth -fontconfig -gme -gnome -gnutls -growl -httpd -ieee1394 -ios-vout -jack -kate -libcaca -libnotify -libproxy -libsamplerate -libtar -libtiger -linsys -lirc -live -macosx -macosx-audio -macosx-dialog-provider -macosx-eyetv -macosx-qtkit -macosx-quartztext -macosx-vout -media-library -modplug -mtp -neon -omxil -optimisememory -opus -oss -portaudio -projectm -pvr -rtsp -run-as-root -schroedinger -sdl-image -shine -shout -sid -skins -svg -switcher -taglib -twolame -upnp -vaapi -vcdx -vlm -waveout -wingdi -wma-fixed -xosd -zvbi ELIBC="glibc")

glib Installed versions:  2.36.3-r1(2)(11:31:35 AM 07/27/2013)(-debug -fam -selinux -static-libs -systemtap -test -utils -xattr KERNEL="linux" PYTHON_TARGETS="python2_7 -python2_5 -python2_6")
Comment 35 Captain Crutches 2013-08-05 02:14:48 UTC
It does also segfault when running vlc-cache-gen during the emerge/install, but that doesn't stop the install... seems it just finds it an inconvenience and determines it's okay.

 * Running /usr/lib64/vlc/vlc-cache-gen on /usr/lib64/vlc/plugins/
/var/tmp/portage/media-video/vlc-2.0.7/temp/environment: line 3230: 15852 Segmentation fault      "/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/"
Comment 36 Denis M. (Phr33d0m) 2013-08-05 03:01:04 UTC
We seem to be tracking the same bug in two places. See https://bugs.gentoo.org/show_bug.cgi?id=405173#c21 for the summary of the other bug (which is basically what has been said here).

I'm testing some of your ideas (vlc with recent versions of different libraries) and will report soon.

*** This bug has been marked as a duplicate of bug 405173 ***
Comment 37 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-08-05 06:13:43 UTC
*** Bug 479662 has been marked as a duplicate of this bug. ***
Comment 38 Attila Tóth 2013-08-06 10:47:13 UTC
vlc-cache-gen during compile started to segfault after upgrading glib from 2.34* to 2.36*. Downgrading glib solved the problem for me. Regards: Dw.