Bug 54134 - media-libs/xvid-1.0.1 segmentation fault on amd64
Bug#: 54134 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: amd64@gentoo.org Reported By: ralf.schmelter@t-online.de
Component: Ebuilds
URL: 
Summary: media-libs/xvid-1.0.1 segmentation fault on amd64
Keywords:  
Status Whiteboard: 
Opened: 2004-06-16 16:06 0000
Description:   Opened: 2004-06-16 16:06 0000
The media-libs/xvid-1.0.1 codec cores on amd64 (and probably on all 64bit
machines). 

Reproducible: Always
Steps to Reproduce:
1. emerge transcode and dvdrip  
2. rip a track from a dvd and try to encode it in xvid4 format.


Actual Results:  
A segmentation fault (you may need to copy the command line displayed in the 
error window of dvdrip to see the segfault). 

Expected Results:  
No segfault. 

tux xvid # emerge info 
Portage 2.0.50-r8 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.4.20040605-r0, 
2.6.5-gentoo-r1) 
================================================================= 
System uname: 2.6.5-gentoo-r1 x86_64 4 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CFLAGS="-O2" 
CHOST="x86_64-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ 
http://ftp.snt.utwente.nl/pub/os/linux/gentoo 
http://ftp.uni-erlangen.de/pub/mirrors/gentoo 
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ 
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ 
http://gentoo.tiscali.nl/gentoo/ 
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ 
http://ftp.gentoo.skynet.be/pub/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X aalib alsa amd64 apm arts audiofile avi berkdb bonobo cdr crypt debug 
encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml imlib jpeg kde libg++ 
libwww mikmod mng motif mozilla mpeg ncurses nls nogcj oggvorbis opengl oss pam 
pdflib perl png python qt quicktime readline sdl slang spell ssl tcltk tcpd 
truetype xml2 xmms xv zlib"

------- Comment #1 From Ralf Schmelter 2004-06-16 16:08:01 0000 -------
Created an attachment (id=33401) [details]
Patch to fix segmentation fault on amd64

The attached patch fixed the problem for me.

------- Comment #2 From Danny van Dyk (RETIRED) 2004-06-22 13:42:30 0000 -------
Thx for your (imho very good because good commented) patch. ferringb liked it
too ;-)
In CVS now, thanks!