Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513254 - media-video/mplayer-1.1.1-r1 - segmentation fault in fast_memcpy_SSE at libvo/aclib_template.c:231
Summary: media-video/mplayer-1.1.1-r1 - segmentation fault in fast_memcpy_SSE at libvo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-14 21:52 UTC by krantadan
Modified: 2015-02-12 08:52 UTC (History)
4 users (show)

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


Attachments
info.tar.gz (info.tar.gz,30.03 KB, application/gzip-compressed-tar)
2014-06-14 21:52 UTC, krantadan
Details
cpuinfo (cpuinfo,3.76 KB, text/plain)
2014-06-21 19:21 UTC, krantadan
Details
dependencies (deps,917 bytes, text/plain)
2014-06-21 19:22 UTC, krantadan
Details
emerge-info (emerge-info,13.46 KB, text/plain)
2014-06-21 19:23 UTC, krantadan
Details
gdb log (gdb,15.30 KB, text/plain)
2014-06-21 19:23 UTC, krantadan
Details
strace log (strace.log,198.19 KB, text/plain)
2014-06-21 19:24 UTC, krantadan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description krantadan 2014-06-14 21:52:57 UTC
Created attachment 378912 [details]
info.tar.gz

My mplayer crashes with most of avi video files.

I have version "media-video/mplayer-1.1.1-r1".
Comment 1 krantadan 2014-06-14 21:58:08 UTC
Here is a sample avi-file, that I have cut from a beginning of a large video file with "dd".

http://rghost.ru/download/56383069/e4517d7d594be05e07d8a027e9f3d6ff69fbd927/test.avi

This link should be alive for 30 days. If it is dead I can make a new one.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-14 21:59:21 UTC
Comment on attachment 378912 [details]
info.tar.gz

Please attach separate text files next time.
Comment 3 krantadan 2014-06-21 19:21:33 UTC
Created attachment 379378 [details]
cpuinfo
Comment 4 krantadan 2014-06-21 19:22:53 UTC
Created attachment 379380 [details]
dependencies
Comment 5 krantadan 2014-06-21 19:23:17 UTC
Created attachment 379382 [details]
emerge-info
Comment 6 krantadan 2014-06-21 19:23:44 UTC
Created attachment 379384 [details]
gdb log
Comment 7 krantadan 2014-06-21 19:24:16 UTC
Created attachment 379386 [details]
strace log
Comment 8 krantadan 2014-06-21 19:26:47 UTC
Here are my software versions.

# Kernel version
$ uname -a
Linux honeybee 3.12.13-gentoo #1 SMP PREEMPT Thu May 22 23:45:42 MSK 2014 x86_64 Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz GenuineIntel GNU/Linux


# libc version
$ ls -l /lib/libc[.-]*
-rwxr-xr-x 1 root root 1728760 Feb  1 01:46 /lib/libc-2.17.so
lrwxrwxrwx 1 root root      12 Feb  1 01:46 /lib/libc.so.6 -> libc-2.17.so


# gcc & ld versions
$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.7.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.7.3-r1/work/gcc-4.7.3/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.7.3/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.7.3-r1 p1.4, pie-0.5.5' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto --without-cloog --without-ppl
Thread model: posix
gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) 

$ ld -v
GNU ld (GNU Binutils) 2.23.2


# binutils version
$ as --version
GNU assembler (GNU Binutils) 2.23.2
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-pc-linux-gnu'.
Comment 9 Alexey Dobriyan 2014-07-05 08:44:12 UTC
happens for me too!

NULL pointer dereference of some sort

(gdb) disass $pc-32,$pc+32
Dump of assembler code from 0x517317 to 0x517357:
   0x0000000000517317 <fast_memcpy+167>:        je     0x51731e <fast_memcpy+174>
   0x0000000000517319 <fast_memcpy+169>:        mov    %rdx,%rcx
   0x000000000051731c <fast_memcpy+172>:        rep movsb %ds:(%rsi),%es:(%rdi)
   0x000000000051731e <fast_memcpy+174>:        repz retq 
   0x0000000000517320 <fast_memcpy+176>:        test   %r10,%r10
   0x0000000000517323 <fast_memcpy+179>:        je     0x517311 <fast_memcpy+161>
   0x0000000000517325 <fast_memcpy+181>:        mov    %r10,%r9
   0x0000000000517328 <fast_memcpy+184>:        mov    %rdi,%r8
   0x000000000051732b <fast_memcpy+187>:        mov    %rsi,%rcx
   0x000000000051732e <fast_memcpy+190>:        xchg   %ax,%ax
   0x0000000000517330 <fast_memcpy+192>:        prefetchnta 0x140(%rcx)
=> 0x0000000000517337 <fast_memcpy+199>:        movaps (%rcx),%xmm0
   0x000000000051733a <fast_memcpy+202>:        movaps 0x10(%rcx),%xmm1
   0x000000000051733e <fast_memcpy+206>:        movaps 0x20(%rcx),%xmm2
   0x0000000000517342 <fast_memcpy+210>:        movaps 0x30(%rcx),%xmm3
   0x0000000000517346 <fast_memcpy+214>:        movntps %xmm0,(%r8)
   0x000000000051734a <fast_memcpy+218>:        movntps %xmm1,0x10(%r8)
   0x000000000051734f <fast_memcpy+223>:        movntps %xmm2,0x20(%r8)
   0x0000000000517354 <fast_memcpy+228>:        movntps %xmm3,0x30(%r8)

(gdb) info all-registers
rax            0x7ffff7f3b000   140737353330688
rbx            0x10     16
rcx            0x0      0
rdx            0x10     16
rsi            0x0      0
rdi            0x7ffff7f3b000   140737353330688
rbp            0x7ffff7f3b2d0   0x7ffff7f3b2d0
rsp            0x7fffffffc698   0x7fffffffc698
r8             0x7ffff7f3b000   140737353330688
r9             0xb      11
r10            0xb      11
r11            0x3      3
r12            0x0      0
r13            0x1      1
r14            0x2d0    720
r15            0x0      0
rip            0x517337 0x517337 <fast_memcpy+199>
Comment 10 tlirwin 2014-07-15 14:02:16 UTC
I had the same issue with media-video/mplayer-1.1.1-r1

media-video/mplayer-1.2_pre20130729 appears to have fixed it.
Comment 11 Alexis Ballier gentoo-dev 2015-02-12 08:52:25 UTC
(In reply to tlirwin from comment #10)
> I had the same issue with media-video/mplayer-1.1.1-r1
> 
> media-video/mplayer-1.2_pre20130729 appears to have fixed it.

lets close this one then, bug #517692 is for stabilizing the fixed version