Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478154 - media-video/mplayer-1.1.1-r1 crashes on playing avi files with ffmpeg-1.2.1
Summary: media-video/mplayer-1.1.1-r1 crashes on playing avi files with ffmpeg-1.2.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-25 17:05 UTC by Viktor Yu. Kovalskii
Modified: 2014-06-10 16:47 UTC (History)
2 users (show)

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


Attachments
Video sample which crashes mplayer (Stockholm.Ostra.2011.(Kenum).sample.avi,726.84 KB, video/avi)
2013-07-29 01:30 UTC, Viktor Yu. Kovalskii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor Yu. Kovalskii 2013-07-25 17:05:34 UTC
When playing any avi files by media-video/mplayer-1.1.1-r1 compiled against media-video-1.2.1.
If media-video/mplayer-1.1.1-r1 compile against media-video/ffmpeg-1.0.7 mplayer plays this avi files.

Reproducible: Always

Steps to Reproduce:
1. emerge -1av =media-video/ffmpeg-1.2.1
2. emerge -1av =media-video/mplayer-1.1.1-r1

Actual Results:  
mplayer crashed:
mplayer Stockholm.Ostra.2011.\(Kenum\).avi
MPlayer 1.1-4.7.3 (C) 2000-2012 MPlayer Team

Playing Stockholm.Ostra.2011.(Kenum).avi.
libavformat version 54.63.104 (external)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
[aviheader] Audio stream found, -aid 2
VIDEO:  [XVID]  720x384  12bpp  25.000 fps  1681.0 kbps (205.2 kbyte/s)
Clip info:
 Software: VirtualDubMod 1.5.10.2 (build 2540/release)
Load subtitles in ./
SUB: Added subtitle file (1): ./Stockholm.Ostra.2011.(Kenum).srt
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.92.100 (external)
Unsupported AVPixelFormat 53
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 448.0 kbit/14.58% (ratio: 56000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
[mpeg4 @ 0xb6b0e240]Invalid and inefficient vfw-avi packed B frames detected
Movie-Aspect is 1.88:1 - prescaling to correct movie aspect.
VO: [xv] 720x384 => 720x384 Planar YV12 


MPlayer interrupted by signal 11 in module: decode_video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.


emerge --info media-video/mplayer media-video/ffmpeg
Portage 2.2.0_alpha188 (default/linux/x86/13.0, gcc-4.7.3, glibc-2.17, 3.9.4-tuxonice i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.9.4-tuxonice-i686-Intel-R-_Core-TM-_Duo_CPU_T2350_@_1.86GHz-with-gentoo-2.2
KiB Mem:     3100028 total,    681744 free
KiB Swap:    2104508 total,   2014984 free
Timestamp of tree: Thu, 25 Jul 2013 03:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r1
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            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.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo overlays-oschtan dmol flying
Installed sets: @lxde-full, @system
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL skype-4.0.0.7-copyright dlj-1.1 AdobeFlash-11.x googleearth Oracle-BCLA-JavaSE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CPPFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer"
CXXFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer"
DISTDIR="/mnt/slag/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache collision-protect distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://linux.nsu.ru/gentoo-distfiles/ http://trumpetti.atm.tut.fi/gentoo/ http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/mnt/slag/gentoo-tree/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="/mnt/slag"
PORTDIR="/mnt/slag/gentoo-tree"
PORTDIR_OVERLAY="/mnt/slag/layman/oschtan /mnt/slag/layman/dmol /mnt/slag/layman/flying"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi additions alsa amr amrnb amrwb ao apng archive aspell audiofile autotools bash-completion bazaar bdf bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cdrdao cdrom chardet cjk cleartype cli consolekit cracklib curl cvs cxx cyrillic dbus dia divx djvu docbook dot dri dri2 drm dts dvd dvdnav dvdr dvdread dvi egl emf enca encode equalizer eselect exceptions exif expat extensions fbcondecor fbsplash ffmpeg fftw flac flash fontconfig fortran fpx ftp fuse gallium gd gecko gif gimp git gles glib glitz gmp gnutls gphoto2 gpm graphviz gstreamer gtk gtk3 gtkstyle hddtemp html http icons iconv icu id3tag idn imagemagick imlib jabber jbig jemalloc jpeg jpeg2k ladspa lame laptop lasi lastfm latex lcms libass libffi libnotify libsamplerate libyaml live lm_sensors lqr lxde lzma lzo mad matroska mercurial mikmod mime mjpeg mms mmx mmxext mng modules motif mp2 mp3 mp4 mpeg mplayer mudflap multitarget musepack natspec ncurses nls nptl nptlonly nsplugin oav ogg ogm openexr opengl openmp optimisememory opus orc osmesa pam pango pcre pdf pkcs11 plotutils png policykit postscript pulseaudio qt3support quicktime rar raw rcc readline realmedia rtc rtf science scrobbler sdl session shared-dricore shared-glapi shorten smp sndfile sound soundtouch speex spell sqlite sqlite3 srt sse sse2 ssl startup-notification stats subversion svg symlink syslog system-sqlite szip t1lib tcpd templates theora threads tiff truetype twolame type1 udev unicode unsupported upnp usb utempter v4l v4l2 vaapi vamp vba vorbis vpx wav wavpack webdav webdav-neon webgl webp wifi wma wmf wmp wps wxwidgets wxwindows x264 x264-svn-encoder x86 xattr xcb xcomposite xml xmp xorg xpm xps xscreensaver xv xvid zip zlib" ABI_X86="32" ALSA_CARDS="hda-intel" 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="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11 jl2005a jl2005c topfield ax203 st2205 tp6801" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="gnutls" 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="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport" LINGUAS="ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel i915" 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:  CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-video/mplayer-1.1.1-r1 was built with the following:
USE="X a52 aalib alsa cddb cdparanoia debug dts dv dvd dvdnav enca encode ftp gif iconv jpeg jpeg2k ladspa libass live lzo mad mmx mmxext mng mp3 network opengl osdmenu png pulseaudio quicktime rar rtc sdl shm speex sse sse2 theora toolame tremor truetype twolame unicode v4l vorbis x264 xscreensaver xv xvid -3dnow -3dnowext (-altivec) (-aqua) -bidi -bindist -bl -bluray -bs2b -cdio -cpudetection -dga -directfb -doc -dvb -dxr3 -faac -faad -fbcon -ggi -gsm -ipv6 -jack -joystick -libcaca -libmpeg2 -lirc -md5sum -nas -nut -openal -oss -pnm -pvr -radio -rtmp -samba -ssse3 -tga -vdpau -vidix -xanim -xinerama -xvmc -zoran" VIDEO_CARDS="-mga -s3virge -tdfx"
CFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -ggdb"


media-video/ffmpeg-1.2.1 was built with the following:
USE="X aac alsa amr bzip2 debug encode fontconfig gnutls hardcoded-tables iconv jpeg2k libass mmx mmxext mp3 opus pulseaudio sdl speex theora threads truetype twolame v4l vaapi vorbis vpx x264 xvid zlib -3dnow -3dnowext -aacplus (-altivec) -avx -bindist -bluray -cdio (-celt) -cpudetection -doc -examples -faac -fdk -flite -frei0r -gsm -iec61883 -ieee1394 -jack -libcaca -libsoxr -libv4l -modplug (-neon) -network -openal -openssl -oss -pic -rtmp -schroedinger -ssse3 -static-libs -test -vdpau (-vis)" FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher"
CFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -ggdb"
Comment 1 Viktor Yu. Kovalskii 2013-07-25 17:08:31 UTC
gdb --args mplayer file.avi
GNU gdb (Gentoo 7.6 p1) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/mplayer...done.
(gdb) run
Starting program: /usr/bin/mplayer file.avi
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
MPlayer 1.1-4.7.3 (C) 2000-2012 MPlayer Team

Playing file.avi.
libavformat version 54.63.104 (external)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
[aviheader] Audio stream found, -aid 2
VIDEO:  [XVID]  720x384  12bpp  25.000 fps  1681.0 kbps (205.2 kbyte/s)
Clip info:
 Software: VirtualDubMod 1.5.10.2 (build 2540/release)
Load subtitles in ./
SUB: Added subtitle file (1): ./file.srt
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.92.100 (external)
Unsupported AVPixelFormat 53
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 448.0 kbit/14.58% (ratio: 56000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
[New Thread 0xb1126b40 (LWP 2450)]
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
[mpeg4 @ 0xb7397240]Invalid and inefficient vfw-avi packed B frames detected
Movie-Aspect is 1.88:1 - prescaling to correct movie aspect.
VO: [xv] 720x384 => 720x384 Planar YV12 

Program received signal SIGSEGV, Segmentation fault.
0x081725ff in fast_memcpy_SSE (len=16, from=0x0, to=0xb0765000) at libvo/aclib_template.c:231
231	libvo/aclib_template.c: No such file or directory.
(gdb) bt
#0  0x081725ff in fast_memcpy_SSE (len=16, from=0x0, to=0xb0765000) at libvo/aclib_template.c:231
#1  fast_memcpy (to=<optimized out>, from=<optimized out>, from@entry=0x0, len=len@entry=720) at libvo/aclib.c:178
#2  0x08096599 in memcpy_pic2 (srcStride=0, dstStride=720, height=16, bytesPerLine=720, src=0x0, dst=<optimized out>, limit2width=<optimized out>) at libvo/fastmemcpy.h:91
#3  draw_slice (image=0xbfffd570, stride=0xbfffd580, w=720, h=16, x=0, y=0) at libvo/vo_xv.c:437
#4  0x08174e32 in draw_slice (s=0x832dd90, src=0x83518d4, offset=0xbfffd5f0, y=0, type=3, height=<optimized out>) at libmpcodecs/vd_ffmpeg.c:483
#5  0xb702db06 in ff_draw_horiz_band (avctx=0x832dd90, dsp=dsp@entry=0x835296c, cur=cur@entry=0x8352498, last=last@entry=0x83518d4, y=y@entry=0, h=<optimized out>, h@entry=16, picture_structure=3, 
    first_field=0, draw_edges=1, low_delay=0, v_edge_pos=384, h_edge_pos=720) at /mnt/slag/portage/media-video/ffmpeg-1.2.1/work/ffmpeg-1.2.1/libavcodec/mpegvideo.c:2908
#6  0xb702ddec in ff_mpeg_draw_horiz_band (s=s@entry=0x8351520, y=0, h=h@entry=16) at /mnt/slag/portage/media-video/ffmpeg-1.2.1/work/ffmpeg-1.2.1/libavcodec/mpegvideo.c:2916
#7  0xb6edd76d in decode_slice (s=s@entry=0x8351520) at /mnt/slag/portage/media-video/ffmpeg-1.2.1/work/ffmpeg-1.2.1/libavcodec/h263dec.c:264
#8  0xb6ede6b9 in ff_h263_decode_frame (avctx=0x832dd90, data=0x832dbe0, got_frame=0xbfffd880, avpkt=0xbfffd79c) at /mnt/slag/portage/media-video/ffmpeg-1.2.1/work/ffmpeg-1.2.1/libavcodec/h263dec.c:682
#9  0xb70f8ab0 in avcodec_decode_video2 (avctx=avctx@entry=0x832dd90, picture=picture@entry=0x832dbe0, got_picture_ptr=got_picture_ptr@entry=0xbfffd880, avpkt=avpkt@entry=0xbfffd89c)
    at /mnt/slag/portage/media-video/ffmpeg-1.2.1/work/ffmpeg-1.2.1/libavcodec/utils.c:1690
#10 0x08175552 in decode (sh=0x831dbf0, data=0x832b5e8, len=3036, flags=0) at libmpcodecs/vd_ffmpeg.c:811
#11 0x080bf3c1 in decode_video (sh_video=sh_video@entry=0x831dbf0, start=0x832b5e8 "", in_size=in_size@entry=3036, drop_frame=0, pts=0, full_frame=full_frame@entry=0xbfffd9b0) at libmpcodecs/dec_video.c:393
#12 0x0806929f in update_video (blit_frame=blit_frame@entry=0xbfffdaa0) at mplayer.c:2463
#13 0x0805c9d6 in main (argc=2, argv=0xbfffeb64) at mplayer.c:3765
(gdb) quit
Comment 2 droshalla 2013-07-25 23:28:25 UTC
Can reproduce the bug on AMD64, very upsetting. fast_memcpy_SSE is where it segfaults. Downgrade to media-video/ffmpeg-1.0.7 makes it work.
Comment 3 Viktor Yu. Kovalskii 2013-07-26 13:04:43 UTC
With -vo gl2 I can play this file. But I can't rewind file becuase of mplayer crashes.
Comment 4 Alexis Ballier gentoo-dev 2013-07-28 20:09:32 UTC
any link to such a .avi file?

does mplayer-9999 fail the same way?
Comment 5 Viktor Yu. Kovalskii 2013-07-29 01:30:32 UTC
Created attachment 354472 [details]
Video sample which crashes mplayer
Comment 6 Viktor Yu. Kovalskii 2013-07-29 01:32:11 UTC
Compilation of media-video/mplayer-9999 is failed. Because of I can't reproduce on live version of mplayer.
Comment 7 Alexis Ballier gentoo-dev 2013-07-29 21:38:37 UTC
reproduced and should be fixed in the new snapshot 1.2_pre20130729
Comment 8 Alex Efros 2014-06-10 16:40:04 UTC
I've just updated ffmpeg from 1.0.8 to 1.2.6 and get a lot of crashes of mplayer 1.1.1-r1 on .avi files. Disgrading back to 1.0.8 fixed this. So, I'm afraid it's too early to close this bug.
Comment 9 Alex Efros 2014-06-10 16:47:39 UTC
(In reply to Alexis Ballier from comment #7)
> reproduced and should be fixed in the new snapshot 1.2_pre20130729

Sorry, I missed this. Looks like 1.2_pre20130729 works fine. Probably it should be marked stable at same time as ffmpeg-1.2.6.