Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445980 - media-libs/sdl-mixer-1.2.12: playing mod files with media-libs/libmikmod-3.2.0 crashes randomly
Summary: media-libs/sdl-mixer-1.2.12: playing mod files with media-libs/libmikmod-3.2....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard:
Keywords:
: 447086 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-04 20:39 UTC by Benjamin Réveillé
Modified: 2012-12-17 01:35 UTC (History)
2 users (show)

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


Attachments
xbmc crash log (xbmc_crashlog-20121204_200717.log,113.60 KB, text/plain)
2012-12-04 20:41 UTC, Benjamin Réveillé
Details
new sdl-mixer ebuild (sdl-mixer-1.2.12-r2.ebuild,2.89 KB, text/plain)
2012-12-14 14:02 UTC, Benjamin Réveillé
Details
patch 1 (sdl-mixer-1.2.12-MikMod-1.patch,2.01 KB, patch)
2012-12-14 14:05 UTC, Benjamin Réveillé
Details | Diff
patch 2 (sdl-mixer-1.2.12-MikMod-2.patch,1.13 KB, patch)
2012-12-14 14:05 UTC, Benjamin Réveillé
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Réveillé 2012-12-04 20:39:51 UTC
After an update my xbmc started crashing at the end of every video.

So using the crash log date and knowing the last reboot of my machine, I identified 20 packages tht had been upgraded and could be the cause of the issue.

After proceeding by dichotomy I narrowed it down to the upgrade from media-libs/libmikmod-3.2.0_beta2-r5 to media-libs/libmikmod-3.2.0
> eix libmikmod
[I] media-libs/libmikmod
     Available versions:  
        (2)     3.1.12-r1
        (0)     3.2.0_beta2-r3 (~)3.2.0_beta2-r5 [m]3.2.0
        {+alsa (+)oss raw static-libs}
     Installed versions:  3.2.0_beta2-r5(20:10:17 04/12/2012)(oss -raw -static-libs)
     Homepage:            http://mikmod.shlomifish.org/
     Description:         A library to play a wide range of module formats


[I] media-tv/xbmc
     Available versions:  (~)11.0_beta2-r1[1] (~)11.0_beta2-r2[1] (~)11.0_beta2-r3[1] (~)11.0_beta3[1] (~)11.0_rc1[1] (~)11.0_rc2[1] (~)11.0_rc9[1] 11.0 (~)11.0-r1 **9999 {airplay alsa altivec avahi bluetooth bluray cec css debug goom joystick midi mysql nfs profile +projectm pulseaudio pvr +rsxs rtmp +samba sftp sse sse2 udev upnp vaapi vdpau webserver +xrandr}
     Installed versions:  11.0-r1(08:57:37 04/12/2012)(alsa avahi bluetooth css debug goom mysql projectm pulseaudio pvr rsxs rtmp samba sse sse2 udev vdpau webserver xrandr -airplay -altivec -bluray -cec -joystick -midi -profile -vaapi)
     Homepage:            http://xbmc.org/
     Description:         XBMC is a free and open source media-player and entertainment hub

mikmod is a subdependency through media-libs/sdl-mixer-1.2.12-r1 media-libs/sdl-sound-1.0.3

> emerge --info
Portage 2.1.11.33 (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.16.0, 3.5.7-gentoo x86_64)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.2
Timestamp of tree: Tue, 04 Dec 2012 03:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p39
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.10.2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.6
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.11.6, 1.12.5
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo vmware dwardo
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula googleearth AdobeFlash-10 AdobeFlash-10.1 AdobeFlash-10.3 Oracle-BCLA-JavaSE Intel-SDP skype-4.0.0.7-copyright"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -fomit-frame-pointer -pipe"
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="${EPREFIX}/etc/gconf /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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --keep-going --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.xservers.ro/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://mirror.bih.net.ba/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/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="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vmware /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aacplus accessibility acpi aim alsa amd64 amr apache2 apng ass audiofile avahi bash-completion bcmath berkdb bidi bluetooth bzip2 cairo calendar captury ccache cdaudio cdda cddb cdinstall cdio cdr cgi chroot cli consolekit cpudetection cracklib crypt css cups cvs cxx dbus declarative device-mapper dga dhcp dirac divx dnd doc dri dts dv dvb dvd dvdr dvdread emacs embedded emboss emoticon enca encode exif extras faac faad fam fame fat fbcon fbcondecor ffmpeg fftw firefox firefox3 flac flash font-server fontconfig fortran fortran2003 fpx fr freetype fts3 fuse g3dvl gcj gcl gd gdbm gif gimp git glib glibc-omitfp glitz gmail gmedia gmp gnutls goom gphoto2 gpm graphviz gs gsl gstreamer gtk h323 highlight history hpcups hpn htmlhandbook httpd iconv icq icu ieee1394 imagemagick imap imlib ipod ithreads jabber jadetex java jemalloc jpeg jpeg2k kde kdepim kerberos lapack lastfm lcms libnotify libv4l libv4l2 libwww lirc live lm_sensors logitech-mouse logrotate lua lzo mad math matroska mdnsresponder-compat mikmod mime minizip mjpeg mmx mmxext mng mod modplug modules motif mp3 mp3tunes mp4 mpeg mpeg2 mpi mplayer msn mtp mudflap multilib musepack musicbrainz mysql ncurses network nforce2 nis nls nptl nsplugin ntfs nvcontrol nvidia nvtv objc ogg openal opengl openmp openssl oss pam pango parport parse-clocks pcre pdf pdfimport perl pic plasma png policykit posix ppds pppd projectm pulseaudio pvr python qt3support qt4 quicktime rar rdesktop readline realmedia remote romio rtc rtmp rtsp samba sasl scanner schroedinger screen sdl secure-delete semantic-desktop server session skins slang smbclient speex spell sql sqlite srt sse sse2 sse3 sse4_1 ssl ssse3 startup-notification stream subtitles subversion svg swat sysfs szip tcl tcpd tetex texteffect theora threads threadsafe thunderbird tidy tiff tk transcode truetype udev udisks unicode upnp upower usb utils v4l v4l2 vcd vdpau vdr videos vim vim-pager vim-syntax visualization vlm vorbis webkit webpresence webserver winpopup wmf wmp wxwidgets wxwindows x264 xanim xcb xcomposite xface xine xinerama xml xmlreader xmltv xosd xpm xscreensaver xulrunner xv xvid xvmc yahoo yv12 zeroconf zip zlib" ALSA_CARDS="hda-intel" 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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" INPUT_DEVICES="keyboard mouse joystick evdev v4l" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_FR en en_US en_GB" LIRC_DEVICES="default devinput userspace" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



Reproducible: Always

Steps to Reproduce:
1. upgrade to media-libs/libmikmod-3.2.0
2. start xbmc
3. start a video
4. navigate to 20s before the end and let the video finish

Actual Results:  
xmbc crashes at the end of the video

Expected Results:  
xbmc should exit player properly and return to video selection menu

Attached is the crash log (I compiled xbmc with -debug)
Comment 1 Benjamin Réveillé 2012-12-04 20:41:44 UTC
Created attachment 331444 [details]
xbmc crash log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-04 23:04:33 UTC
libmikmod doesn't appear to have had anything to do with the segmentation fault.
Comment 3 Benjamin Réveillé 2012-12-04 23:30:43 UTC
I agree it doesn't appear to have to do with it but as soon as I update it get the segfault again... If there are tests to do I can!

(In reply to comment #2)
> libmikmod doesn't appear to have had anything to do with the segmentation
> fault.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-13 16:44:53 UTC
*** Bug 447086 has been marked as a duplicate of this bug. ***
Comment 5 Benjamin Réveillé 2012-12-14 14:02:57 UTC
Created attachment 332286 [details]
new sdl-mixer ebuild

Here are an ebuild and the 2 patches (as retrieved from the redhat link furnished in the duplicate bug https://bugs.gentoo.org/show_bug.cgi?id=447086.
Comment 6 Benjamin Réveillé 2012-12-14 14:05:00 UTC
Created attachment 332288 [details, diff]
patch 1

First of the two patches for th new ebuild
Comment 7 Benjamin Réveillé 2012-12-14 14:05:43 UTC
Created attachment 332290 [details, diff]
patch 2

second of the two patches required by the new ebuild
Comment 8 Sławomir Nizio 2012-12-15 01:57:44 UTC
Pushed to 'sabayon,' and someone confirmed it helps with xbmc. Many thanks for the two bug reports and comments.
Comment 9 SpanKY gentoo-dev 2012-12-17 01:24:53 UTC
Comment on attachment 332286 [details]
new sdl-mixer ebuild

post diffs, not whole files