Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65313 - mplayer crashes with MPlayer interrupted by signal 11 in module: ao2_init -- segfault in /lib/libc.so.6
Summary: mplayer crashes with MPlayer interrupted by signal 11 in module: ao2_init -- ...
Status: RESOLVED DUPLICATE of bug 61312
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-25 06:50 UTC by Joe Roberts
Modified: 2005-07-17 13:06 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 Joe Roberts 2004-09-25 06:50:53 UTC
There are some other bugs open with signal 11 in module: ao2_init but gdb reports this, in my case, to be a problem with a different library; in this instance: /lib/libc.so.6 - No video will play at all.

Error occurs with:

MPlayer version 1.0pre5-3.4.1 (1.0_pre5-r3) and also 1.0pre4-3.4.1 and possibly others.  These are the two I tried.

Reproducible: Always
Steps to Reproduce:
1. Play any video (such as mpegs) from the hard drive at the command line.

Actual Results:  
MPlayer interrupted by signal 11 in module: ao2_init

No other useful details.  Note: This was working for the most part about a week
ago.  Something got updated and killed it.

Expected Results:  
Should have played the video.

MPlayer version 1.0pre5-3.4.1 (1.0_pre5-r3)
glibc version 2.3.4.20040808


GDB output:
-----------

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 2250)]
0x40b60b2f in mallopt () from /lib/libc.so.6


lrwxrwxrwx  1 root root      13 Aug 12 16:18 libc.so.6 -> libc-2.3.4.so
-rwxr-xr-x  1 root root 1209244 Aug 12 16:17 libc-2.3.4.so

EMERGE INFO:
------------

Portage 2.0.51_rc1 (default-x86-1.4, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.7 i686)
=================================================================
System uname: 2.6.7 i686 Celeron (Coppermine)
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib aim apache2 arts artswrappersuid avi berkdb bitmap-fonts bonobo cdr
chroot crypt cups curl dba dga directfb dv dvd dvdr eds encode escreen esd flac
foomaticdb gd gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile hal
icq imagemagick imlib jabber jack java javascript joystick jpeg justify kde lcms
ldap libg++ libwww lids mad maildir mbox mikmod mldonkeypango mmx motif mozilla
moznocompose moznoirc moznomail mozp3p mozsvg mpeg mpeg4 msn mysql ncurses nls
nvidia offensive oggvorbis opengl operanom2 pam parse-clocks pdflib perl
plotutils png python qt quicktime readline samba sdl slang slp snmp spell sse
ssl svga tcltk tcpd tetex tiff transcode truetype type1 unicode usb v4l v4l2 wmf
x86 xml2 xmms xprint xv xvid yahoo zlib"
Comment 1 Chris White (RETIRED) gentoo-dev 2004-09-28 06:27:27 UTC
Try adding/taking out mmx2 and sse2 USE flags.
Comment 2 Joe Roberts 2004-09-28 08:36:20 UTC
Unfortunately, the same behavior occurs.  I re-emerged first with +mmx2 and +sse2, neither of which I previously had enabled.  Same issue.  I then recompiled without them explicitly; same problem.
Comment 3 Anders Bruun Olsen 2004-09-28 15:29:30 UTC
I have the same problem with MPlayer, except GDB gives this output:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 10060)]
0x409a09b0 in g_mem_chunk_alloc () from /usr/lib/libglib-1.2.so.0

When first it started crashing with the ao2_init error (only when trying to play sound through aRTS it seems) MPlayer was compiled with GCC 3.3.4, I have since tried compiling it with GCC 3.4.2, with no effect whatsoever.

It crashes with the same error with both MPlayer 1.0_pre4-r7 and 1.0_pre5-r3.

Emerge info:
------------
Portage 2.0.51_rc6 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r3 i686)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(TM) XP 2400+
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE=""
ALSA_CARDS="cmipci"
ANT_HOME="/usr/share/ant-core"
ARCH="x86"
AUTOCLEAN="yes"
AUTO_SYMLINK="no"
BASH_ENV="/etc/spork/is/not/valid/profile.env"
CC="gcc"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CVS_RSH="ssh"
CXX="g++"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -funroll-loops"
DCCC_PATH="/usr/lib/distcc/bin"
DISPLAY=":0.0"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
FEATURES="ccache digest distlocks sandbox userpriv"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
GDK_USE_XFT="1"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://128.213.5.34/gentoo/"
GLIBC_SSP_CHECKED="1"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"
GUILE_LOAD_PATH="/usr/share/guile/1.6"
G_BROKEN_FILENAMES="1"
HOME="/root"
HOSTNAME="ernest"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info"
JAVAC="/opt/blackdown-jdk-1.4.2_rc1/bin/javac"
JAVA_HOME="/opt/blackdown-jdk-1.4.2_rc1"
JDK_HOME="/opt/blackdown-jdk-1.4.2_rc1"
KBUILD_OUTPUT_PREFIX=""
KDEDIR="/usr/kde/3.3"
KDEDIRS="/usr"
KDE_MALLOC="1"
LESS="-R"
LESSOPEN="|lesspipe.sh %s"
LINGUAS="da"
LINUX_PORTAGE_WRITABLE="no"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="-j2"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/share/man::/opt/blackdown-jdk-1.4.2_rc1/man:/usr/qt/3/man:/usr/qt/3/doc/man:/opt/swish++/man"
NOCOLOR="false"
OLDPWD="/usr/portage/media-video/mplayer"
PAGER="/usr/bin/less"
PATH="/usr/bin/wrappers/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/Acrobat5:/opt/rar/bin:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2_rc1/bin:/opt/blackdown-jdk-1.4.2_rc1/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin:/usr/NX/bin:/usr/share/karamba/bin:/usr/X11R6/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="alpha amd64 arm hppa ia64 macos mips ppc ppc64 ppc-macos s390 sparc x86 x86-obsd x86-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="29446"
PORTAGE_NICENESS="15"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK=""
PWD="/root"
PYTHONDOCS="/usr/share/doc/python-docs-2.3.4/html"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SGML_CATALOG_FILES="/etc/sgml/sgml-docbook.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-docbook-4.0.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/sgml-docbook-4.2.cat:/etc/sgml/sgml-lite.cat:/etc/sgml/dsssl-docbook-stylesheets.cat"
SHELL="/bin/bash"
SHLVL="1"
SYNC="rsync://rsync.skumleren.net/gentoo-portage"
TERM="xterm"
TMAKEPATH="/usr/lib/tmake/linux-g++"
USE="3dnow 3dnowex X aalib alsa apache2 apm arts artswrappersuid avi berkdb bitmap-fonts bonobo cdr crypt cscope cups curl dba directfb dvd dvdr dvdread edl encode faad fbcon fbdev flac flash foomaticdb freetype gd gdbm gif gphoto2 gstreamer gtk gtk2 guile imap imlib java jpeg kde ldap libcaca libg++ libwww ltsp lzo mad matroska matrox mmx mmx2 motif mozcalendar mozilla moznocompose moznoirc mozsvg mpeg mysql ncurses network nls nntp nowin objc oggvorbis opengl oss pam pda pdf perl png psyco python qt quicktime readline rtc samba sdl slang spell sse sse2 ssl tcltk tcpd tetex tga theora tiff truetype unicode vhosts x86 xface xml xml2 xprint xv xvid zlib video_cards_matrox linguas_da"
USER="root"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
VIDEO_CARDS="matrox"
XARGS="xargs -r"
XINITRC="/etc/X11/xinit/xinitrc"
_="/usr/bin/emerge"
Comment 4 Anders Bruun Olsen 2004-09-29 05:05:35 UTC
My MPlayer works again after recompiling KDE with GCC 3.4.2 (was needed to recompile arts) and upgrading to Kernel 2.6.8-gentoo-r4 (which implies a reboot of course).
I don't really know what has changed other than recompiling KDE and upgrading kernel.
Comment 5 Chris White (RETIRED) gentoo-dev 2004-11-08 22:51:48 UTC
I've recently cleaned out and filtered some weird flags.  Please let me know if 
this problem still occurs.
Comment 6 Chris White (RETIRED) gentoo-dev 2005-01-22 12:26:10 UTC

*** This bug has been marked as a duplicate of 61312 ***
Comment 7 Chris White (RETIRED) gentoo-dev 2005-01-22 12:32:41 UTC
Arg, read the sumarries wrong.  This is different.
Comment 8 Vladimir Stwora 2005-02-01 18:26:13 UTC
To Chris: This bug is not a duplicate of 61312. Here we are talking about problem in module ao2_init. Bug #61312 is about module vo_check_events.

I found some interesting discussion about the problem: http://frontrangebsd.org/pipermail/kde-freebsd/2004-April/007929.html. Aparently it is a well known problem for some time now. 
Comment 9 Vladimir Stwora 2005-02-02 14:57:56 UTC
I found work around. 

Look at this link: http://frontrangebsd.org/pipermail/kde-freebsd/2004-April/007932.html They are saying there:

The problem is that mplayer links to both glib-2.0 and glib12 - glib-2.0 is 
pulled in via arts, glib12 via mplayer's gtk-gui. AFAIK, there is no way for 
making this work right short of converting mplayer's gui to gtk2 or disabling 
it (I've verified this fixes arts audio output, but isn't easily supported by 
the mplayer port at the moment - the gui is automatically enabled when gtk is 
detected).

So, to make long story short, do the following:

1. In /etc/portage/package.use add line
media-video/mplayer gtk2 -gtk

2. emerge mplayer

3. enjoy
Comment 10 Chris White (RETIRED) gentoo-dev 2005-02-25 14:08:40 UTC
Reimar,

   Any ideas on this?  I thought there was some form of an arts/gui fix or something.  Could I be wrong here?
Comment 11 Reimar Döffinger 2005-02-25 14:42:28 UTC
Ok, this looks to me like follows:
This actually is a duplicate of bug 61312 (maybe not in the strict sense, but "functionally"), and corresponds to Mplayer bug http://bugzilla.mplayerhq.hu/show_bug.cgi?id=12
The reason is that some time ago the KDE developers decided to link arts against glib-2.0. Since the MPlayer Gui uses gtk-1.2 it links against glib-1.2.
And the cause of all this happy crashing is that glib-1.2 and glib-2.0 step onto each others toes until it breaks (sorry, no more precise description available).
So seems like possible fixes are
1) revert to an arts version that does not link against glib-2.0
2) port MPlayers Gui to gtk-2.0 (there is work on it going on, but I doubt it will yield a result anytime soon).
3) Use something except arts or don't use the Gui.
4) Make glib-1.2 and glib-2.0 able to coexist (I don't really expect this to happen, even though this IMHO is the cleanest solution, followed by 1) )
Of course I might be wrong and it might actually be a mplayer bug, but it does not look like it...
Comment 12 Chris White (RETIRED) gentoo-dev 2005-03-19 19:47:51 UTC

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