Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483334 - media-video/vlc-2.0.7 compilation fails with segmentation fault on "./vlc-cache-gen ../modules"
Summary: media-video/vlc-2.0.7 compilation fails with segmentation fault on "./vlc-cac...
Status: RESOLVED DUPLICATE of bug 405173
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2013-09-02 05:34 UTC by Hamlet
Modified: 2013-09-02 08:51 UTC (History)
0 users

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

Build log (emerge -1 media-video/vlc) (build.log.bz2,76.97 KB, text/plain)
2013-09-02 05:38 UTC, Hamlet

Note You need to log in before you can comment on or make changes to this bug.
Description Hamlet 2013-09-02 05:34:51 UTC
During the compilation, "./vlc-cache-gen ../modules" fails with a segmentation fault and emerge bails out.

I have two gentoo boxes with the same problem (one of them has no existing vlc installed). Both are amd64 and configured by me, so they could also share the same defective configuration.

I have tried to run the broken part by hand (on the debris of the emerge), and I could produce a segmentation fault, too:

cd /var/tmp/portage/media-video/vlc-2.0.7/work/vlc-2.0.7/bin
gdb .libs/vlc-cache-gen
run ../modules

#0  0x00007ffff7631f76 in ?? () from /lib64/
#1  0x00007ffff2b97da9 in g_str_equal () from /usr/lib64/
#2  0x00007ffff2b9754f in g_hash_table_lookup () from /usr/lib64/
#3  0x00007ffff2bb5a8f in g_quark_from_static_string () from /usr/lib64/
#4  0x00007fffed15ef4c in ?? () from /usr/lib64/
#5  0x00007ffff7de978e in ?? () from /lib64/
#6  0x00007ffff7de9876 in ?? () from /lib64/
#7  0x00007ffff7ded8b5 in ?? () from /lib64/
#8  0x00007ffff7de95b6 in ?? () from /lib64/
#9  0x00007ffff7ded0da in ?? () from /lib64/
#10 0x00007ffff6caa0f6 in ?? () from /lib64/
#11 0x00007ffff7de95b6 in ?? () from /lib64/
#12 0x00007ffff6caa68f in ?? () from /lib64/
#13 0x00007ffff6caa191 in dlopen () from /lib64/
#14 0x00007ffff7979c4a in module_Load (p_this=0x604328, psz_file=0x729840 "../modules/notify/.libs/", p_handle=0x7fffffffcaa8, lazy=true) at posix/plugin.c:62
#15 0x00007ffff795c4d4 in module_InitDynamic (obj=0x604328, path=0x729840 "../modules/notify/.libs/", fast=true) at modules/bank.c:536
#16 0x00007ffff795c38b in AllocatePluginFile (bank=0x7fffffffce20, abspath=0x729840 "../modules/notify/.libs/", relpath=0x7326d0 "notify/.libs/", st=0x7fffffffcb40) at modules/bank.c:479
#17 0x00007ffff795c256 in AllocatePluginDir (bank=0x7fffffffce20, maxdepth=2, absdir=0x724a70 "../modules/notify/.libs", reldir=0x71df50 "notify/.libs") at modules/bank.c:440
#18 0x00007ffff795c287 in AllocatePluginDir (bank=0x7fffffffce20, maxdepth=3, absdir=0x6b23d0 "../modules/notify", reldir=0x632d70 "notify") at modules/bank.c:444
#19 0x00007ffff795c287 in AllocatePluginDir (bank=0x7fffffffce20, maxdepth=4, absdir=0x6190c0 "../modules", reldir=0x0) at modules/bank.c:444
#20 0x00007ffff795bfb8 in AllocatePluginPath (p_this=0x604328, path=0x6190c0 "../modules", mode=CACHE_USE) at modules/bank.c:353
#21 0x00007ffff795be80 in AllocateAllPlugins (p_this=0x604328) at modules/bank.c:298
#22 0x00007ffff795bbc7 in module_LoadPlugins (obj=0x604328) at modules/bank.c:189
#23 0x00007ffff78da3b8 in libvlc_InternalInit (p_libvlc=0x604328, i_argc=3, ppsz_argv=0x7fffffffd0a0) at libvlc.c:247
#24 0x00007ffff7bc5f5f in libvlc_new (argc=2, argv=0x7fffffffd150) at core.c:59
#25 0x0000000000400bcc in main (argc=2, argv=0x7fffffffd278) at cachegen.c:107

If I try to compile without libnotify (disabling by use flag) I get the same crash while loading another module.

Clearly there is something specific in my configuration... but I can't put the finger on it.

Reproducible: Always

Steps to Reproduce:
1. emerge media-video/vlc

Actual Results:  
Segmentation fault when compiling plug ins.

Expected Results:  
A successful compilation.

The problem was also raised in the forum at:

The suggested work-around is to disable a number of plug ins.

emerge --info:

Portage 2.2.1 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.17, 3.10.9-gentoo x86_64)
System uname: Linux-3.10.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16319288 total,  11794176 free
KiB Swap:   20971512 total,  20971512 free
Timestamp of tree: Sat, 31 Aug 2013 15:15: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.5-r2, 3.2.5, 3.3.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.10 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=native -O2 -pipe"
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/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"
EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask=n"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="3dnow X X509 Xaw3d a52 aac aalib acl acpi afs aim alsa amd64 ao apm audiofile bash-completion berkdb blas bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx dbus declarative device-mapper dga djvu dri dts dv dvb dvd dvdr emboss encode enscript exif fam fbcon ffmpeg fftw firefox flac fltk fontconfig fortran ftp g3dvl gcj gd gdbm geoip ggi gif gimp glut gmp gnuplot gnutls gpm graphviz gsl gsm gstreamer gtk gts gzip h323 hddtemp iconv icq icu idn ieee1394 imagemagick imap imlib introspection iodbc ipv6 jabber java javascript jingle jit jpeg jpeg2k kde kerberos kipi kontact lame lapack latex lcms ldap libass libcaca libffi libnotify libsamplerate libwww lm_sensors lua luatex lzma lzo mad maildir matroska mbox midi mikmod mime mmap mms mmx mng mod modplug modules mono motif mozilla mp3 mp4 mpeg mpi mplayer msn mtp mudflap multilib musepack mysql ncurses nls nntp nptl nsplugin odbc offensive ogg openal openexr opengl openmp orc oscar pam pango pch pcre pdf phonon plasma plotutils png policykit portaudio posix postscript ppds python qt3support qt4 quicktime raw readline recode rss sasl sdl session sharedmem sip sipim skey slang smp sndfile sockets sound speex spell sqlite sse sse2 ssl ssse3 startup-notification subversion svg syslog sysvipc taglib tcl tcmalloc tcpd theora threads tiff timidity tk truetype udev udisks unicode upnp upower usb v4l vdpau video vim-syntax vnc vorbis wav webkit win32codecs wmf wxwidgets x264 xa xattr xcb xcomposite xetex xface xft xine xinerama xinetd xml xmpp xorg xosd xpm xscreensaver xv xvid xvmc yahoo zlib" ABI_X86="64" ALSA_CARDS="hda-intel dummy loopback" 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" DRACUT_MODULES="caps lvm ssh-client 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 pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en it zh zh_TW" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="v4l vesa vga radeon fglrx" 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 Hamlet 2013-09-02 05:38:10 UTC
Created attachment 357606 [details]
Build log (emerge -1 media-video/vlc)
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-09-02 08:51:24 UTC

*** This bug has been marked as a duplicate of bug 405173 ***