Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183702 - media-video/mplayer-1.0.20070622-r1 mencoder segmentation fault w/zmbv lavc codec
Summary: media-video/mplayer-1.0.20070622-r1 mencoder segmentation fault w/zmbv lavc c...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-30 02:46 UTC by trefoil
Modified: 2007-07-11 19:39 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 trefoil 2007-06-30 02:46:11 UTC
Hello, I was trying to transcode a series of png files into the zmbv codec using mencoder. Other codecs work fine, such as mpeg4. My ffmpeg version is ffmpeg-0.4.9_p20070616-r1, and my emerge --info is as follows:

mencoder mf://snaps/*.png -mf type=png:fps=30 -ovc lavc -lavcopts vcodec=zmbv -o zmbv.avi
MEncoder dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) XP 2500+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

success: format: 16  data: 0x0 - 0x0
MF file format detected.
[mf] search expr: snaps/*.png
[mf] number of files: 232 (928)
VIDEO:  [MPNG]  0x0  24bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x474E504D  size:0x0  fps:30.00  ftime:=0.0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffpng] vfm: ffmpeg (FFmpeg PNG decoder)
==========================================================================
VDec: vo config request - 240 x 160 (preferred colorspace: RGB 24-bit)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using RGB 24-bit as output csp (no 5)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
[swscaler @ 0x8733348]SwScaler: BICUBIC scaler, from rgb24 to yuv420p using MMX2
[swscaler @ 0x8733348]SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0x8733348]SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0x8733348]SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
[swscaler @ 0x8733348]SwScaler: 240x160 -> 240x160
videocodec: libavcodec (240x160 fourcc=76626d7a [zmbv])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.




Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r9 i686)
=================================================================
System uname: 2.6.20-gentoo-r9 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 29 Jun 2007 20:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
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.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirrors.acm.cs.rpi.edu/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/kai/portage_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa aotuv asf berkdb bitmap-fonts bzip2 cairo capslib cdparanoia cdr chardet charset cli console cracklib crypt css ctype cups curl dbus dri dvd dvdr dvdread emboss encode evo exif fam fbcon ffmpeg firefox flac fortran ftp gd gdbm gif glib glut gmp gnome gpm gs gtk guile hal iconv imagemagick imap imlib inkjar ipv6 isdnlog joystick jpeg kdeenablefinal kerberos lame lcms ldap libg++ libsamplerate lua lzo mad matroska midi mikmod mjpeg mmap mmx mmxext mng modplug mp3 mpeg msn mudflap musepack ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime rar readline real reflection sdl session sid smpeg sndfile sox speex spell spl sqlite sqlite3 sse ssl startup-notification svg t1lib tcpd tga theora tidy tiff truetype truetype-fonts type1-fonts unicode usb vcd vorbis wavpack win32codecs x264 x86 xchattext xine xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon fbdev vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 trefoil 2007-06-30 02:47:39 UTC
Oops, the last line of the console output was, of course, "Segmentation fault"

This should probably go upstream, eh?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-06-30 02:54:24 UTC
Can you attach a backtrace here?

http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 3 trefoil 2007-06-30 03:39:49 UTC
I tried. Mplayer, however, fails to compile with the debug use flag set (both when I use -gddb and when not):

i686-pc-linux-gnu-gcc -I../libavcodec -I../libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -W -Wall -O2 -march=athlon-xp -mtune=athlon-xp -pipe -g3  -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/X11R6/include -I/usr/include/SDL  -D_REENTRANT  -I/usr/include/freetype2 -DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12   -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c -o dmo/dmo_guids.o dmo/dmo_guids.c
In file included from ./wine/pe_image.h:6,
                 from ./wine/module.h:12,
                 from ./dshow/guids.h:6,
                 from dmo/dmo_guids.h:5,
                 from dmo/dmo_guids.c:2:
./wine/winbase.h:544: warning: 'packed' attribute ignored for field of type 'CHAR[8]'
In file included from ./wine/module.h:12,
                 from ./dshow/guids.h:6,
                 from dmo/dmo_guids.h:5,
                 from dmo/dmo_guids.c:2:
./wine/pe_image.h:60: warning: 'packed' attribute ignored for field of type 'BYTE'
./wine/pe_image.h:62: warning: 'packed' attribute ignored for field of type 'BYTE'
./wine/pe_image.h:64: warning: 'packed' attribute ignored for field of type 'BYTE'
./wine/pe_image.h:66: warning: 'packed' attribute ignored for field of type 'BYTE'
./wine/pe_image.h:67: warning: 'packed' attribute ignored for field of type 'BYTE'
./wine/pe_image.h:69: warning: 'packed' attribute ignored for field of type 'BYTE'
In file included from ./wine/pe_image.h:6,
                 from ./wine/module.h:12,
                 from ./dshow/guids.h:6,
                 from dmo/dmo_guids.h:5,
                 from dmo/DMO_Filter.h:5,
                 from dmo/dmo.c:9:
./wine/winbase.h:544: warning: 'packed' attribute ignored for field of type 'CHAR[8]'
In file included from ./wine/module.h:12,
                 from ./dshow/guids.h:6,
                 from dmo/dmo_guids.h:5,
                 from dmo/DMO_Filter.h:5,
                 from dmo/dmo.c:9:
./wine/pe_image.h:60: warning: 'packed' attribute ignored for field of type 'BYTE'
./wine/pe_image.h:62: warning: 'packed' attribute ignored for field of type 'BYTE'
./wine/pe_image.h:64: warning: 'packed' attribute ignored for field of type 'BYTE'
./wine/pe_image.h:66: warning: 'packed' attribute ignored for field of type 'BYTE'
./wine/pe_image.h:67: warning: 'packed' attribute ignored for field of type 'BYTE'
./wine/pe_image.h:69: warning: 'packed' attribute ignored for field of type 'BYTE'
dmo/dmo.c: In function 'DMO_FilterCreate':
dmo/dmo.c:73: warning: dereferencing type-punned pointer will break strict-aliasing rules
dmo/dmo.c:79: warning: dereferencing type-punned pointer will break strict-aliasing rules
dmo/dmo.c:86: warning: dereferencing type-punned pointer will break strict-aliasing rules
dmo/dmo.c:90: warning: dereferencing type-punned pointer will break strict-aliasing rules
dmo/dmo.c:93: warning: dereferencing type-punned pointer will break strict-aliasing rules
dmo/dmo.c:118: warning: unused variable 'vi'
ar r libloader.a driver.o afl.o vfl.o ldt_keeper.o pe_image.o module.o ext.o win32.o pe_resource.o resource.o registry.o elfdll.o wrapper.o dshow/DS_AudioDecoder.o dshow/DS_Filter.o dshow/DS_VideoDecoder.o dshow/allocator.o dshow/mediatype.o dshow/cmediasample.o dshow/guids.o dshow/inputpin.o dshow/outputpin.o dmo/DMO_AudioDecoder.o dmo/DMO_VideoDecoder.o dmo/buffer.o dmo/dmo.o dmo/dmo_guids.o
ar: creating libloader.a
true libloader.a
make[1]: Leaving directory `/var/tmp/portage/media-video/mplayer-1.0.20070622-r1/work/mplayer-20070622/loader'

!!! ERROR: media-video/mplayer-1.0.20070622-r1 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  mplayer-1.0.20070622-r1.ebuild, line 437:   Called die
Comment 4 trefoil 2007-06-30 03:59:27 UTC
Maybe the problem lies in the ebuild's (or mplayer's) use of -g3? Next week I could try to look at this further. :/
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-06-30 08:41:23 UTC
(In reply to comment #3)
> I tried. Mplayer, however, fails to compile with the debug use flag set (both
> when I use -gddb and when not):

Please, file a new bug about this and attach the complete emerge log there.
Comment 6 trefoil 2007-07-11 19:39:17 UTC
Thanks for your advice. It's bug 175627