#168 Signal 11 in flip_page crash with vo sdl

svn
closed-fixed
nobody
sdl (1)
5
2013-03-01
2013-02-28
Josh
No

I appears that SDL isn't stable with MinGW-w64 I get an immediate crash "Signal 11 in module: flip_page", I have the same problem in my personal build of mplayer (also using mingw-w64) as well but when I built a debug build of mplayer in mingw-w64 the debug build didn't crash at all when using sdl vo. However, a debug build of ffplay did crash and pointed to the MMX optimizations in SDL (./src/video/SDL_yuv_mmx.c:94). http://ffmpeg.org/trac/ffmpeg/ticket/939

Any way with this patch fixed it, not originally mine but borrowed from https://github.com/fantix/ArchLinux-x32/blob/master/libx32-sdl/sdl-1.2.14-disable-mmx.patch and should fix the sig 11 flip_page crash w/ sdl vo present in your build as well.

1 Attachments

Discussion

  • thanks for spotting, mingw32 worked because it never enabled mmx code (at least my old lib) while w64 build enables somehow mmx code, if you look at symbols
    i686-w64-mingw32-objdump -t SDL_yuv_sw.o|grep -i mmx
    55(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00000000 _Color565DitherYV12MMX1X
    56(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00000000 _ColorRGBDitherYV12MMX1X
    58(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00000000 _SDL_HasMMX

    I've tried to play with asm without success, the code makes some hacks to use ebx register while gcc asm is able to handle clobbered registers

     
    • status: open --> closed-fixed