hmm, on Mon, Feb 07, 2011 at 10:27:32PM +0100, frantisek holop said that
> for now i will build a debug flavour of the current version
> and collect traces.

here we go:

$ gdb /usr/local/bin/mplayer mplayer.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd4.9"...
Core was generated by `mplayer'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libpthread.so.13.1...done.
Loaded symbols for /usr/lib/libpthread.so.13.1
Reading symbols from /usr/local/lib/libiconv.so.6.0...done.
Loaded symbols for /usr/local/lib/libiconv.so.6.0
Reading symbols from /usr/lib/libncurses.so.12.0...done.
Loaded symbols for /usr/lib/libncurses.so.12.0
Reading symbols from /usr/local/lib/libpng.so.10.0...done.
Loaded symbols for /usr/local/lib/libpng.so.10.0
Reading symbols from /usr/lib/libz.so.4.1...done.
Loaded symbols for /usr/lib/libz.so.4.1
Reading symbols from /usr/local/lib/libmng.so.3.1...done.
Loaded symbols for /usr/local/lib/libmng.so.3.1
Reading symbols from /usr/local/lib/liblcms.so.2.0...done.
Loaded symbols for /usr/local/lib/liblcms.so.2.0
Reading symbols from /usr/local/lib/libjpeg.so.64.0...done.
Loaded symbols for /usr/local/lib/libjpeg.so.64.0
Reading symbols from /usr/lib/libm.so.5.2...done.
Loaded symbols for /usr/lib/libm.so.5.2
Reading symbols from /usr/local/lib/libungif.so.5.4...done.
Loaded symbols for /usr/local/lib/libungif.so.5.4
Reading symbols from /usr/lib/libsndio.so.4.0...done.
Loaded symbols for /usr/lib/libsndio.so.4.0
Reading symbols from /usr/local/lib/libdvdread.so.4.3...done.
Loaded symbols for /usr/local/lib/libdvdread.so.4.3
Reading symbols from /usr/local/lib/libcdda_interface.so.0.0...done.
Loaded symbols for /usr/local/lib/libcdda_interface.so.0.0
Reading symbols from /usr/local/lib/libcdda_paranoia.so.0.0...done.
Loaded symbols for /usr/local/lib/libcdda_paranoia.so.0.0
Reading symbols from /usr/lib/libutil.so.11.2...done.
Loaded symbols for /usr/lib/libutil.so.11.2
Reading symbols from /usr/X11R6/lib/libfreetype.so.17.2...done.
Loaded symbols for /usr/X11R6/lib/libfreetype.so.17.2
Reading symbols from /usr/X11R6/lib/libfontconfig.so.7.0...done.
Loaded symbols for /usr/X11R6/lib/libfontconfig.so.7.0
Reading symbols from /usr/local/lib/libfribidi.so.0.0...done.
Loaded symbols for /usr/local/lib/libfribidi.so.0.0
Reading symbols from /usr/local/lib/libbz2.so.10.4...done.
Loaded symbols for /usr/local/lib/libbz2.so.10.4
Reading symbols from /usr/local/lib/libvorbisenc.so.3.1...done.
Loaded symbols for /usr/local/lib/libvorbisenc.so.3.1
Reading symbols from /usr/local/lib/libvorbis.so.8.0...done.
Loaded symbols for /usr/local/lib/libvorbis.so.8.0
Reading symbols from /usr/local/lib/libogg.so.6.1...done.
Loaded symbols for /usr/local/lib/libogg.so.6.1
Reading symbols from /usr/local/lib/libspeex.so.8.0...done.
Loaded symbols for /usr/local/lib/libspeex.so.8.0
Reading symbols from /usr/local/lib/libtheora.so.3.2...done.
Loaded symbols for /usr/local/lib/libtheora.so.3.2
Reading symbols from /usr/local/lib/libmpcdec.so.3.0...done.
Loaded symbols for /usr/local/lib/libmpcdec.so.3.0
Reading symbols from /usr/local/lib/libfaad.so.2.0...done.
Loaded symbols for /usr/local/lib/libfaad.so.2.0
Reading symbols from /usr/lib/libstdc++.so.50.0...done.
Loaded symbols for /usr/lib/libstdc++.so.50.0
Reading symbols from /usr/local/lib/libdv.so.5.0...done.
Loaded symbols for /usr/local/lib/libdv.so.5.0
Reading symbols from /usr/local/lib/libxvidcore.so.4.2...done.
Loaded symbols for /usr/local/lib/libxvidcore.so.4.2
Reading symbols from /usr/local/lib/libschroedinger-1.0.so.2.0...done.
Loaded symbols for /usr/local/lib/libschroedinger-1.0.so.2.0
Reading symbols from /usr/local/lib/liborc-0.4.so.3.0...done.
Loaded symbols for /usr/local/lib/liborc-0.4.so.3.0
Reading symbols from /usr/local/lib/libvpx.so.1.0...done.
Loaded symbols for /usr/local/lib/libvpx.so.1.0
Reading symbols from /usr/local/lib/libdvdnavmini.so.6.0...done.
Loaded symbols for /usr/local/lib/libdvdnavmini.so.6.0
Reading symbols from /usr/lib/libcrypto.so.19.0...done.
Loaded symbols for /usr/lib/libcrypto.so.19.0
Reading symbols from /usr/X11R6/lib/libXext.so.11.0...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.11.0
Reading symbols from /usr/X11R6/lib/libX11.so.14.0...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.14.0
Reading symbols from /usr/X11R6/lib/libXss.so.5.0...done.
Loaded symbols for /usr/X11R6/lib/libXss.so.5.0
Reading symbols from /usr/X11R6/lib/libXv.so.5.0...done.
Loaded symbols for /usr/X11R6/lib/libXv.so.5.0
Reading symbols from /usr/X11R6/lib/libXinerama.so.5.0...done.
Loaded symbols for /usr/X11R6/lib/libXinerama.so.5.0
Reading symbols from /usr/X11R6/lib/libXxf86vm.so.5.0...done.
Loaded symbols for /usr/X11R6/lib/libXxf86vm.so.5.0
Reading symbols from /usr/X11R6/lib/libXxf86dga.so.5.0...done.
Loaded symbols for /usr/X11R6/lib/libXxf86dga.so.5.0
Reading symbols from /usr/X11R6/lib/libGL.so.10.0...done.
Loaded symbols for /usr/X11R6/lib/libGL.so.10.0
Reading symbols from /usr/local/lib/libfaac.so.1.0...done.
Loaded symbols for /usr/local/lib/libfaac.so.1.0
Reading symbols from /usr/local/lib/libx264.so.5.0...done.
Loaded symbols for /usr/local/lib/libx264.so.5.0
Reading symbols from /usr/local/lib/libmp3lame.so.2.0...done.
Loaded symbols for /usr/local/lib/libmp3lame.so.2.0
Symbols already loaded for /usr/lib/libpthread.so.13.1
Reading symbols from /usr/lib/libc.so.58.0...done.
Loaded symbols for /usr/lib/libc.so.58.0
Reading symbols from /usr/lib/libexpat.so.9.0...done.
Loaded symbols for /usr/lib/libexpat.so.9.0
Reading symbols from /usr/X11R6/lib/libxcb.so.2.2...done.
Loaded symbols for /usr/X11R6/lib/libxcb.so.2.2
Reading symbols from /usr/X11R6/lib/libpthread-stubs.so.1.0...done.
Loaded symbols for /usr/X11R6/lib/libpthread-stubs.so.1.0
Reading symbols from /usr/X11R6/lib/libXau.so.9.0...done.
Loaded symbols for /usr/X11R6/lib/libXau.so.9.0
Reading symbols from /usr/X11R6/lib/libXdmcp.so.10.0...done.
Loaded symbols for /usr/X11R6/lib/libXdmcp.so.10.0
Reading symbols from /usr/X11R6/lib/libXdamage.so.3.1...done.
Loaded symbols for /usr/X11R6/lib/libXdamage.so.3.1
Reading symbols from /usr/X11R6/lib/libXfixes.so.5.0...done.
Loaded symbols for /usr/X11R6/lib/libXfixes.so.5.0
Reading symbols from /usr/X11R6/lib/libdrm.so.2.6...done.
Loaded symbols for /usr/X11R6/lib/libdrm.so.2.6
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
Reading symbols from /usr/X11R6/lib/libXcursor.so.4.0...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.4.0
Reading symbols from /usr/X11R6/lib/libXrender.so.5.0...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.5.0
#0  0x1c51cb56 in postProcess_MMX2 (
    src=0x865d4010 '\026' <repeats 15 times>, 
"\027\027\030\031\032\027\026\033\035\033\031\026\025", '\026' <repeats 11 
times>, '\025' <repeats 15 times>, '\024' <repeats 43 times>, 
"\023\023\023\023\023\023\024\025\024\024\025\025\025\026\026", '\025' <repeats 
13 times>, '\024' <repeats 12 times>, 
"\025\025\025\025\025\025\025\025\024\024\025\025\025\025\026\024\024\026\030\027\026\026\027\027\027\027\027\027\026\026\025\025\026\026\026\026\026\026\026\026\026\027\026\026\026\026\026",
 '\025' <repeats 16 times>..., srcStride=512, 
    dst=0x7d793000 '\026' <repeats 14 times>, 
"\027\027\027\030\030\030\031\031\032\032\031\030\030\027", '\026' <repeats 11 
times>, '\025' <repeats 15 times>, '\024' <repeats 43 times>, 
"\023\023\023\023\023\024\024\024\024\024", '\025' <repeats 18 times>, '\024' 
<repeats 12 times>, '\025' <repeats 16 times>, 
"\026\026\027\027\027\027\027\027\027\027\027\027", '\026' <repeats 19 times>, 
'\025' <repeats 16 times>..., dstStride=480, width=480, 
    height=360, QPs=0x8aa1f400 "\r\r\r\r\016\n\n\n\n\f", '\r' <repeats 20 
times>, QPStride=31, isColor=0, 
    c2=0x8670c800) at postprocess_template.c:1047
1047    postprocess_template.c: No such file or directory.
        in postprocess_template.c

(gdb) bt
#0  0x1c51cb56 in postProcess_MMX2 (
    src=0x865d4010 '\026' <repeats 15 times>, 
"\027\027\030\031\032\027\026\033\035\033\031\026\025", '\026' <repeats 11 
times>, '\025' <repeats 15 times>, '\024' <repeats 43 times>, 
"\023\023\023\023\023\023\024\025\024\024\025\025\025\026\026", '\025' <repeats 
13 times>, '\024' <repeats 12 times>, 
"\025\025\025\025\025\025\025\025\024\024\025\025\025\025\026\024\024\026\030\027\026\026\027\027\027\027\027\027\026\026\025\025\026\026\026\026\026\026\026\026\026\027\026\026\026\026\026",
 '\025' <repeats 16 times>..., srcStride=512,
    dst=0x7d793000 '\026' <repeats 14 times>, 
"\027\027\027\030\030\030\031\031\032\032\031\030\030\027", '\026' <repeats 11 
times>, '\025' <repeats 15 times>, '\024' <repeats 43 times>, 
"\023\023\023\023\023\024\024\024\024\024", '\025' <repeats 18 times>, '\024' 
<repeats 12 times>, '\025' <repeats 16 times>, 
"\026\026\027\027\027\027\027\027\027\027\027\027", '\026' <repeats 19 times>, 
'\025' <repeats 16 times>..., dstStride=480, width=480,
    height=360, QPs=0x8aa1f400 "\r\r\r\r\016\n\n\n\n\f", '\r' <repeats 20 
times>, QPStride=31, isColor=0,
    c2=0x8670c800) at postprocess_template.c:1047
#1  0x1c52558f in pp_postprocess (src=0x8aa205ac, srcStride=0x8aa205bc, 
dst=0x8aa203ac, dstStride=0x8aa203bc,
    width=480, height=360, QP_store=0x8aa1f400 "\r\r\r\r\016\n\n\n\n\f", '\r' 
<repeats 20 times>, QPStride=31,
    vm=0x86e1b7c0, vc=0x8670c800, pict_type=2) at postprocess.c:663
#2  0x1c124b7a in put_image (vf=0x7ef0ba00, mpi=0x8aa20580, 
pts=65.200000000000003) at libmpcodecs/vf_pp.c:145
#3  0x1c07de69 in filter_video (sh_video=0x7d496400, frame=0x8aa20580, 
pts=65.200000000000003)
    at libmpcodecs/dec_video.c:479
#4  0x1c01bfbe in update_video (blit_frame=0xcfbd7088) at mplayer.c:1833
#5  0x1c020b9b in main (argc=2, argv=0xcfbd84f8) at mplayer.c:3796


ffmpeg/libpostproc/postprocess_template.c:1047:

#if !HAVE_ALTIVEC                                                               
                                 static inline void RENAME(dering)(uint8_t 
src[], int stride, PPContext *c)                                       {        
                                                                                
                        #if HAVE_MMX2 || HAVE_AMD3DNOW
    __asm__ volatile(
        "pxor %%mm6, %%mm6                      \n\t"
        "pcmpeqb %%mm7, %%mm7                   \n\t"
        "movq %2, %%mm0                         \n\t"
        "punpcklbw %%mm6, %%mm0                 \n\t"
        "psrlw $1, %%mm0                        \n\t"
        "psubw %%mm7, %%mm0                     \n\t"
        "packuswb %%mm0, %%mm0                  \n\t"
        "movq %%mm0, %3                         \n\t"

        "lea (%0, %1), %%"REG_a"                \n\t"
        "lea (%%"REG_a", %1, 4), %%"REG_d"      \n\t"


vmware player cpu dmesg:

OpenBSD 4.9-beta (GENERIC) #632: Thu Jan 20 17:39:32 MST 2011
    [email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD AMD64 ("AuthenticAMD" 686-class, 1024KB L2 cache) 2.10 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16

eeepc dmesg:

OpenBSD 4.9-beta (GENERIC) #626: Sat Jan 15 12:25:05 MST 2011
    [email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) M processor 900MHz ("GenuineIntel" 686-class) 631 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF


$ mplayer -v
MPlayer SVN-r32528-OpenBSD (C) 2000-2010 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 2
CPU: Intel(R) Celeron(R) M processor          900MHz (Family: 6, Model: 13, 
Stepping: 8)
extended cpuid-level: 8
extended cache-info: 33562688
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Testing OS support for SSE2... yes.
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 0
Compiled with runtime CPU detection.

cpudetect.c:315:

        caps->hasMMX2 = caps->hasSSE; // SSE cpus supports mmxext too


looking at i386/machdep.c, there is no MMX2 cpu flag and i dont see
anybody talking about MMX2 (although the mplayer sources are full of it)
only SSE[1-4].


i am afraid i have no idea if an unsupported instruction can
generate "Program terminated with signal 11, Segmentation fault."
or some other fatal error.  but MMX being so old, i'd say
the instruction set is supported.

the other filter i have been using and can't reproduce a crash so far
is fspp=0.  libmpcodecs/vf_fspp.c has one single #if HAVE_MMX2,
it seems to be more of an MMX filter.

i have no /etc/malloc.conf

hope this helps.

-f
--
a true friend knows who you are... but likes you anyway.

Reply via email to