Summary: | xvid-1.1.3-r3.ebuild and textrel-3.patch on AMD XP 2000+ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mario Bachmann <grafgrimm77> |
Component: | New packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | major | CC: | grafgrimm77, hardened, pageexec |
Priority: | High | ||
Version: | 2007.0 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 271786 | ||
Bug Blocks: | |||
Attachments: |
segfault while encoding
emerge --info mplayer -vc xvid (xvid with texrel-patch) GREEN mplayer -vc xvid (xvid with texrel-patch) PURPLE |
Description
Mario Bachmann
2008-05-17 09:46:44 UTC
Created attachment 153507 [details]
segfault while encoding
no matter if pass=1 or pass=2 or no pass
Created attachment 153511 [details]
emerge --info
Created attachment 153513 [details]
mplayer -vc xvid (xvid with texrel-patch) GREEN
Created attachment 153515 [details]
mplayer -vc xvid (xvid with texrel-patch) PURPLE
Another point: beside the amd 2000+, i own an amd duron with the same core but less cache and less MHz (both machines have the same cpu-flags). on booth machines i got a segfault while encoding with mencoder/xvid-1.1.3[-rX]. I also tried to slow down the RAM-settings in the BIOS. No effect. Because i have 2 machines and i slowed down the RAM, i think it is not a hardware problem... The segfaults come on random positions i think. please let me know if you need more informations... I fear no one has such an "old" CPU?! Mario, could you try to emerge with USE="-3dnow -3dnowext -mmx -mmxext -sse" and see if that gets you the segfault and/or the bad encoding results? i'm asking it because one thing that the textrel patch touches is the low-level asm code which is specific to each CPU and it's very possible that i introduced a bug in the 3dnow parts (FWIW, i don't know if anyone verified the other parts either so the above USE will turn off all asm hopefully...). also for the segfault you should try to get a core dump and backtrace/etc info from gdb (preferably compile xvid with debug info: CFLAGS=-ggdb and FEATURES="splitdebug -nostrip"). i activated the xvid-texrel-ebuild again and USE="-3dnow -3dnowext -mmx -mmxext -sse" emerge xvid same green result as on screenshot. than: USE="-3dnow -3dnowext -mmx -mmxext -sse" emerge mplayer -> mplayer wants mmx at least! than: USE="-3dnow -3dnowext mmx -mmxext -sse" emerge mplayer same green result as on screenshot. I experienced similar problems with the textrel patch. In my case, the encoded videos had weird colors "stepping". The colors gradually become greenish frame after frame and suddenly come back to normal and the cycle repeats again. I recompiled xvid-1.1.3-r3 without that patch and everything is back to normal now and contrary to what others experienced, removing the patch does not cause segfaults with mencoder. Test =media-video/xvid-1.2.1-r1 (You can get rid of TEXTRELs by USE="pic" and EXECSTACKs should be fixed without USE flag altering.) Sorry, 1.2.2-r1 Arg, wrong resolution. Sorry for bugspam. |