Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133972 - transcode 1.0.2-r2 segfaults in memset
Summary: transcode 1.0.2-r2 segfaults in memset
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-21 11:58 UTC by benjones
Modified: 2006-05-24 10:12 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 benjones 2006-05-21 11:58:40 UTC
ben@devi /d/d1/movies $ emerge --info
Portage 2.1_rc1-r3 (default-linux/amd64/2005.1, gcc-3.4.6, glibc-2.4-r3, 2.6.14-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 4000+
Gentoo Base System version 1.12.0_pre19
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://gentoo.eliteitminds.com http://gentoo.mirror.icd.hu/ http://ftp.ankara.edu.tr/gentoo/ ftp://mir.zyrianes.net/gentoo/"
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.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa apache2 arts avi bash-completion berkdb bitmap-fonts cdr cli crypt cscope cups dri dvd dvdr dvdread eds emboss encode ethereal ffmpeg foomaticdb gif gpm gstreamer gtk gtk2 imlib isdnlog jpeg kde lzw lzw-tiff maildir mp3 mpeg msn mysql ncurses nls nptl nptlonly offensive opengl pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session spell spl ssl tcltk tcpd tiff truetype-fonts type1-fonts usb wifi xinerama xmms xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia video_cards_fbdev"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

This seems similar to a bunch of forum posts, and other bugs that have been closed with ffmpeg as the reason.  However, ffmpeg is now not a use flag, and I have it installed.  Here is the error I get:

ben@devi /d/d1/movies/scratch $ transcode  -i The.Libertine.avi -y ffmpeg --export_prof dvd-pal --export_asr 3 -o The.Libertine -D0 -b224 -N 0x2000 -s2 -m The.Libertine.m2v -J modfps=clonetype=3 --export_fps 25
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source The.Libertine.avi (ok)
[transcode] V: import format    | DivX5 RIFF data, AVI (V=ffmpeg|A=mp3)
[transcode] V: import frame     | 548x226  2.42:1
XXX: zoom=yes pre_clip=yes
[transcode] V: pre clip frame   | 548x316 (-44,0,-46,0)
[transcode] V: zoom             | 720x576  1.75:1 (Lanczos3)
[transcode] V: bits/pixel       | 0.174
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x55    MPEG layer-3 [48000,16,2]   96 kbps
[transcode] A: export format    | 0x2000  AC3          [48000,16,2]  224 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | 0@1000
[transcode] A: rescale stream   | 2.000
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse 3dnowext 3dnow mmxext mmx asm C)
tc_memcpy: using amd64 for memcpy
[transcode] V: video buffer     | 10 @ 720x576
[import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG
[import_ffmpeg.so] v0.1.12 (2004-05-07) (video) ffmpeg: MS MPEG4v1-3/MPEG4/MJPEG
[filter_modfps.so] v0.10 (2003-08-18) plugin to modify framerate
[filter_modfps.so] converting from 25.0000fps to 25.0000fps
[filter_modfps.so] No framerate conversion requested, exiting
[transcode] warning : filter plugin 'modfps' returned error - plugin skipped
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) Lavc51.7.0 | (audio) MPEG/AC3/PCM
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "The.Libertine.avi" -x mp3 -d 0 | tcdecode -x mp3 -d 0 -z 12000
tc_memcpy: using amd64 for memcpy
[export_ffmpeg.so] Using FFMPEG codec 'mpeg2video' (FourCC 'mpg2', MPEG2 compliant video).
[export_ffmpeg.so]: INFO: Selected dvd profile, pal/secam video type for video
[export_ffmpeg.so]: INFO: Set interlacing to top-first
[export_ffmpeg.so]: INFO: Set frame rate to 25
[export_ffmpeg.so]: INFO: Set video bitrate to 5000
[export_ffmpeg.so]: INFO: Set GOP size to 15
[export_ffmpeg.so] Neither './ffmpeg.cfg' nor '~/.transcode/ffmpeg.cfg'
[export_ffmpeg.so] found. Default settings will be used instead.
[export_ffmpeg.so]: INFO: Starting 1 thread(s)
[export_ffmpeg.so]: INFO: Display aspect ratio calculated as 1.777778
[export_ffmpeg.so]: INFO: Sample aspect ratio calculated as 1.422222
[mpeg2video @ 0x2aaaad8cb7b0]removing common factors from framerate
[export_ffmpeg.so]: INFO: Selected dvd profile for audio
[export_ffmpeg.so]: INFO: Resampling filter inactive
[export_ffmpeg.so]: INFO: Set number of audio channels to 2
[export_ffmpeg.so]: INFO: Set number of audio bits to 16
[export_ffmpeg.so]: INFO: No audio resampling necessary, using 48000 Hz
Segmentation fault (core dumped)

The backtrace is as follows:

ben@devi /d/d1/movies/scratch $ gdb --quiet /usr/bin/transcode core.16503
[...snip...]
#0  0x00002aaaab0c02ab in memset () from /lib/libc.so.6
(gdb) where
#0  0x00002aaaab0c02ab in memset () from /lib/libc.so.6
#1  0x000000000041f35c in yuv_clip_top_bottom ()
#2  0x0000000000418ed6 in preprocess_yuv_frame ()
#3  0x00000000004150e0 in vimport_thread ()
#4  0x00002aaaaabcd41a in start_thread () from /lib/libpthread.so.0
#5  0x00002aaaab10a8de in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

I have ffmpeg installed:

ben@devi /d/d1/movies/scratch $ emerge -pv ffmpeg --nocolor

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/ffmpeg-0.4.9_p20060302  USE="aac encode imlib sdl zlib -a52 -amr -debug -doc -dts -ieee1394 -network -ogg -oss -test -theora -threads -truetype -v4l -vorbis -x264 -xvid" 0 kB

Total size of downloads: 0 kB
Comment 1 benjones 2006-05-24 10:12:40 UTC
Embarrassingly enough, this was fixed with a revdep-rebuild