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

Bug 136291

Summary: VLC Segfaults after upgrade to Modular X
Product: Gentoo Linux Reporter: Luke Imhoff <Kronic.Deth>
Component: Current packagesAssignee: Diego Elio Pettenò (RETIRED) <flameeyes>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ari
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Luke Imhoff 2006-06-10 08:32:23 UTC
I upgraded to modular X (7.0-r1).  Many programs didn't work right away, so I figured I just missed packages affected by the change so I did emerge -e world. Most programs work now, but VLC does not.  It segfaults in the main thread before anything appears on screen. I've included the stack trace from gdb below:

#0  0x00000000 in ?? ()
#1  0xb4c567de in XSetErrorHandler () from /usr/lib/libSDL-1.2.so.0
#2  0xb4ed9572 in gdk_keymap_get_entries_for_keyval ()
   from /usr/lib/libgdk-x11-2.0.so.0
#3  0x0000002e in ?? ()
#4  0xb52bbdb8 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#5  0x0825ab28 in ?? ()
#6  0xb508257e in gtk_disable_setlocale () from /usr/lib/libgtk-x11-2.0.so.0
#7  0xb521ec87 in gtk_combo_string_key () from /usr/lib/libgtk-x11-2.0.so.0
#8  0xb5289945 in gtk_major_version () from /usr/lib/libgtk-x11-2.0.so.0
#9  0xb4dc41c4 in ?? () from /usr/lib/libglib-2.0.so.0
#10 0xb4dc41c4 in ?? () from /usr/lib/libglib-2.0.so.0
#11 0xb5082566 in gtk_disable_setlocale () from /usr/lib/libgtk-x11-2.0.so.0
#12 0xb4d6772b in g_option_context_parse () from /usr/lib/libglib-2.0.so.0
Previous frame inner to this frame (corrupt stack?)

emerge --info :

Portage 2.1_rc4-r4 (default-linux/x86/2006.0, gcc-3.4.6/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r1 i686)
=================================================================
System uname: 2.6.16-gentoo-r1 i686 AMD Athlon(TM) XP 2100+
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -pipe -mtune=athlon-xp -march=athlon-xp -ftracer -fprefetch-loop-arrays -msse -m3dnow -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -pipe -mtune=athlon-xp -march=athlon-xp -ftracer -fprefetch-loop-arrays -msse -m3dnow -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
PKGDIR="/opt/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac acpi alsa apache2 apm asm avi berkdb bitmap-fonts bonobo browserplugin cdr cli crypt cups dri dts dvd emboss encode ffmpeg firefox flac foomaticdb fortran freetype gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jikes jpeg libg++ libwww mad matroska mikmod mmx mod motif mp3 mpeg ncurses nls nptl nptlonly nsplugin offensive ogg oggvorbis opengl pam pcre pdflib perl pic png ppds pppd profile python quicktime readline reflection sdl session shout spell spl sse ssl svg sysvipc tcpd theora tifftype1 truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vorbis win32codecs wxwindows xml xml2 xorg xosd xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas Arens 2006-06-10 14:57:40 UTC
I see the same happening with "avidemux2", also dieing somewhere down the road in gtk_disable_setlocale(). Debugging is not easy as the app is heavily multithreaded.
I first suspected that to a glibc upgrade (2.3.6 to 2.4), but I'm not certain whether or not one of the later gnome updates to 2.14 may have caused it. I can't remember when it worked last. (the effected system is pretty vanilla ~amd64 2006.0).
Comment 2 Luke Imhoff 2006-06-10 23:11:32 UTC
I know it wasn't part of gnome 2.14 since I've been running that since it came out.  However, I run gnome light because I don't like a lot of the default apps for gnome, so it could be something that's in full gnome or one if it's dependencies that also hits something with modular X.  I should note that Totem still works.  I only have that installed because for some reason gedit pulls it in when I have python in my use flags.

Comment 3 Andreas Arens 2006-06-11 01:26:45 UTC
Please also look at bug 136353. It might be related.
Comment 4 Andreas Arens 2006-06-13 12:56:19 UTC
can you try to emerge with USE=-sdl ?

I think that bug 135101 is the root cause of this, and this in fact is a dupe.

Comment 5 Luke Imhoff 2006-06-13 20:57:49 UTC
(In reply to comment #4)
> can you try to emerge with USE=-sdl ?
> 
> I think that bug 135101 is the root cause of this, and this in fact is a dupe.
> 

I rolled back to libsdl-1.2.9 and everything works now.
Comment 6 Andreas Arens 2006-06-16 07:05:58 UTC
That confirms it's a duplicated of 135101.

Diego, can you close this?
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-28 00:09:00 UTC

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