Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160923 - ffmpeg-0.4.9_p20061016 crashes when attempting to play WMA files using SSE optimisations
Summary: ffmpeg-0.4.9_p20061016 crashes when attempting to play WMA files using SSE op...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-08 15:51 UTC by Andrew Turner
Modified: 2007-04-14 23:54 UTC (History)
0 users

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 Andrew Turner 2007-01-08 15:51:06 UTC
As soon as you attempt to play a WMA file in anything that uses FFMPEG, it will crash, usually with a segfault.

Reproducable in ffplay, and applications using xine-lib (which uses ffmpeg for WMA) such as picoxine and Amarok.

The crash seems to occur in an SSE-specific routine (see backtrace).

Reproducible: Always

Steps to Reproduce:
1. Try to play a WMA file in ffplay


Actual Results:  
Brief freeze, followed by crash. "Segmentation Fault" listed on console.

Expected Results:  
Audio playback of the file.
Comment 1 Andrew Turner 2007-01-08 15:53:03 UTC
Backtrace taken after segfault:

(gdb) bt
#0  0xb7d3e171 in ff_imdct_calc_sse (s=0xb59aa480, output=0xb61bc2dc, input=0xb59a6480, tmp=0xb59aa570) at fft_sse.c:221
#1  0xb7de16b7 in wma_decode_frame (s=0xb59a0020, samples=0xb69f90c0) at wmadec.c:1116
#2  0xb7de19fe in wma_decode_superframe (avctx=0x8085ef0, data=0xb69f90c0, data_size=0xb61c43e8, buf=0x80b91c0 "\t", 
    buf_size=4459) at wmadec.c:1261
#3  0xb7c3f75c in avcodec_decode_audio (avctx=0x8085ef0, samples=0xb69f90c0, frame_size_ptr=0xb61c43e8, buf=0x80b91c0 "\t", 
    buf_size=4459) at utils.c:924
#4  0x0804ce38 in sdl_audio_callback (opaque=0xb69f9020, stream=0x809b858 "", len=3760) at ffplay.c:1493
#5  0xb7b9fc43 in SDL_AudioInit () from /usr/lib/libSDL-1.2.so.0
#6  0xb7ba7bb1 in SDL_GetThreadID () from /usr/lib/libSDL-1.2.so.0
#7  0xb7be06e8 in SDL_ThreadID () from /usr/lib/libSDL-1.2.so.0
#8  0xb7b8c167 in start_thread () from /lib/libpthread.so.0
#9  0xb7b273fe in clone () from /lib/libc.so.6
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-08 15:58:44 UTC
emerge --info please.
Comment 3 Andrew Turner 2007-01-08 19:29:55 UTC
emerge --info:

Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r4 i686)
=================================================================
System uname: 2.6.18-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.12.6
Last Sync: Mon, 08 Jan 2007 01:47:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Os -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk ftp://mirrors.blueyonder.co.uk/mirrors/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/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.europe.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apm bash-completion berkdb bitmap-fonts bzip2 cdr cli cracklib crypt cups dbus dio dlloader dri dts dvb dvd dvdread elibc_glibc encode fam ffmpeg fftw flac fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv imlib innodb input_devices_keyboard input_devices_mouse isdnlog jpeg jpeg2k kernel_linux libg++ linguas_en_GB mad matroska mime mmx mp3 mpeg msn mysql mysqli ncurses nls nlsn nptl nptlonly nsplugin ogg openal opengl pam pcre perl png postgres ppds pppd python qt3 readline reflection ruby samba sdl session spell spl sse sse2 ssl svg tcpd theora threads truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_fglrx video_cards_radeon videos vorbis win32codecs xine xml xorg xpm xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


also, ffmpeg was emerged using the splitdebug feature.
Comment 4 Ramin Khatibi 2007-01-10 00:54:26 UTC
Ran into this bug myself after upgrading to ffmpeg-0.4.9_p20061016. Disabling mmx support and recompiling fixed it. I can provide test wmav2 file and more info if needed. 

kashani
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2007-04-14 23:54:52 UTC
Current x86 stable is ffmpeg-0.4.9_p20070330, reopen if this is still a issue.