[Mplayer-cvslog] CVS: main/libvo vo_sdl.c,1.97,1.98

Filip Kalinski filon at pld.org.pl
Thu Jan 9 16:08:36 CET 2003


On Wed, Jan 08, 2003 at 03:56:15PM +0100, Arpi of Ize wrote:
> Update of /cvsroot/mplayer/main/libvo
> In directory mail:/var/tmp.root/cvs-serv2704
> 
> Modified Files:
> 	vo_sdl.c 
> Log Message:
> - init & check SDL availability at preinit() (fixes -vo sdl,mga)
> - moved global init/uninit code to preinit/uninit
> - -fixed-vo support, still buggy (leak some memory and after a while it
>   permanently kills xv, only X restart helps... or just nvidia sucks again)
> 

It breaks SDL uninitializing (I have never had problems with this before
change). When you run with -fs (after this you can change it to window,
important is to _start_ in fullscreen) and closed it not always, but
very often hangs, it gets sig11 and don't unintialize fully.

when run "mplayer <file> -vo sdl -fs", then press "f" to see the
underlaying gdb there is:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8192 (LWP 2798)]
0x42071cfe in free () from /lib/i686/libc.so.6
(gdb) bt
#0  0x42071cfe in free () from /lib/i686/libc.so.6
#1  0x080d18c8 in vf_uninit_filter (vf=0x41c33040) at vf.c:432
#2  0x42015987 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) up
#1  0x080d18c8 in vf_uninit_filter (vf=0x41c33040) at vf.c:432
432         free(vf);
(gdb) print vf
$1 = (struct vf_instance_s *) 0x41c33040

So it is no null, but somheow illegal pointer.

For completness this is mplayer output:

/*-- output --*/

Starting program: /mnt/data/work/mplayer/main.dev/mplayer
~/movies/TheTwoTowers_fs.l.mov -vo sdl -fs
[New Thread 8192 (LWP 2798)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer CVS-030101-14:46-3.2 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Duron SF Spitfire (Family: 6, Stepping: 0)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or
directory
Reading config file /home/filon/.mplayer/config
Reading /home/filon/.mplayer/codecs.conf: can't open
'/home/filon/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 126 video codecs
/home/filon/.mplayer/subfont.ttf doesn't look like a font description,
ignoring
Cannot load font: /home/filon/.mplayer/subfont.ttf
Using Linux hardware RTC timing (1024Hz).
Input config file /home/filon/.mplayer/input.conf parsed : 52 binds
Can't open menu config file: /home/filon/.mplayer/menu.conf
Menu inited: /usr/local/etc/mplayer/menu.conf

Playing /home/filon/movies/TheTwoTowers_fs.l.mov
QuickTime/MOV file format detected.
Compressed header uses zlib algo!
Compressed header size: 13589 / 28863
--------------
MOV track #0: 1 chunks, 0 samples
Generic track - not completly understood! (id: 0)
--------------
MOV track #1: 1 chunks, 0 samples
Generic track - not completly understood! (id: 1)
--------------
MOV track #2: 2 chunks, 0 samples
Generic track - not completly understood! (id: 2)
--------------
MOV track #3: 2 chunks, 2 samples
Generic track - not completly understood! (id: 3)
--------------
MOV track #4: 470 chunks, 2819 samples
MOV: Found unknown movie atom SMI  (21)!
Image size: 640 x 272 (24 bpp)
Display size: 640 x 272
Fourcc: SVQ3  Codec: 'Sorenson Video 3'
--------------
MOV track #5: 235 chunks, 0 samples
Audio bits: 16  chans: 2  rate: 44100
Fourcc: ima4
--------------
MOV track #6: 1 chunks, 0 samples
Generic track - not completly understood! (id: 6)
--------------
MOV track #7: 1 chunks, 0 samples
Generic track - not completly understood! (id: 7)
--------------
MOV: best streams: A: #5 (235 samples)  V: #4 (2819 samples)
Clip info:
comments: QuickTime 5 version by RDW & GG,  Apple
copyright: Š2002 Newline Cinema, All rights reserved.
name: Lord of the Rings: The Two Towers
encoder: Made with LiveStage Pro
==========================================================================
Opening audio decoder: [imaadpcm] IMA ADPCM audio decoder
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 46856->176400 (374.8 kbit)
Selected audio codec: [imaadpcm] afm:imaadpcm (IMA ADPCM)
==========================================================================
SDL: Using driver: x11
==========================================================================
Opening video decoder: [qtvideo] Quicktime Video decoder
External func COMCTL32.dll:17
External func COMCTL32.dll:16
QuickTime5 DLLs found
QuickTime.qts patched!!! old entry=0x62924c30
theQuickTimeDispatcher catched -> 0x62924c30
Win32 Warning: Accessed uninitialized Critical Section (0x62b7fcd0)!
WARNING! Invalid Ptr handle!
Win32 Warning: Accessed uninitialized Critical Section (0x62b7fcb8)!

### Searching for QuickTime plugins (*.qtx) at /usr/lib/win32...
### FindNext: QuickTimeEssentials.qtx
### FindNext: 3ivX.qtx
### FindNext: BeHereiVideo.qtx
### FindNext: Indeo4.qtx
### FindNext: On2_VP3.qtx
### FindNext: ZyGoVideo.qtx
theQuickTimeDispatcher catched -> 0x62924c30
InitializeQTML returned 0
Count = 1
Found it! ID = 0x100FC
ci=0x830000
ImageCodecInitialize->(nil)  size=0 (16)
Flags: compr: 0x800420  decomp: 0x400 format: 0x2060
Codec name: Sorenson Video 3
ImageDescription size: 111
 6F 00 00 00 33 51 56 53 00 00 00 00 00 00 00 00
 03 00 80 13 20 49 4D 53 FF 03 00 00 00 02 00 00
 80 02 10 01 00 00 48 00 00 00 48 00 00 00 00 00
 01 00 10 53 6F 72 65 6E 73 6F 6E 20 56 69 64 65
 6F 20 33 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 18 00 FF FF 00 00 00 15 53 4D 49 20 53 45
 51 48 00 00 00 05 E5 00 22 19 C0 00 00 00 00
=============== ImageDescription at 0x856d330 ==================
idSize=0x6F  fourcc=0x53565133
ver=3 rev=4992 vendor=0x534D4920
tempQ=1023 spatQ=512  dim: 640 x 272  dpi: 4718592 x 4718592  depth: 24
dataSize=0 frameCount=1 clutID=-1
name='Sorenson Video 3'
00 00 00 15 | 53 4D 49 20 | 53 45 51 48 | 00 00 00 05
=========================================================
imgfmt: Packed YUY2 qt_imgfmt: svuy
VDec: vo config request - 640 x 272 (preferred csp: Packed YUY2)
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [sdl] 640x272 => 640x272 Packed YUY2  [fs]
SDL: Info - please use -vm or -zoom to switch to best resolution.
Selected video codec: [qtsvq3] vfm:qtvideo (win32/quicktime SVQ3 decoder)
==========================================================================
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 44100 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: 1 soundcard found, using: hw:0,0
alsa9: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa9] 44100Hz 2ch Signed 16-bit (Little-Endian)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Start playing...
NewGWorldFromPtr returned:65536
ImageCodecPreDecompress cres=0x0
supported csp: 0x79757675 uvuy
supported csp: 0x79757673 svuy
A:   6.2 V:   6.2 A-V: -0.001 ct:  0.004  150/150  24%  9%  0.9% 0 0 0%
Program received signal SIGSEGV, Segmentation fault.

/*-- end of output */

And disasm + registers

/*-- disasm --*/

(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x80d18a8 to 0x80d18e8:
0x80d18a8 <vf_uninit_filter+184>:       stc    
0x80d18a9 <vf_uninit_filter+185>:       ljmp   *%ebx
0x80d18ab <vf_uninit_filter+187>:       loopne 0x80d1836 <vf_uninit_filter+70>
0x80d18ad <vf_uninit_filter+189>:       add    $0x24,%al
0x80d18af <vf_uninit_filter+191>:       call   0x806ee1c <free>
0x80d18b4 <vf_uninit_filter+196>:       jmp    0x80d1869 <vf_uninit_filter+121>
0x80d18b6 <vf_uninit_filter+198>:       mov    %eax,(%esp,1)
0x80d18b9 <vf_uninit_filter+201>:       call   0x806ee1c <free>
0x80d18be <vf_uninit_filter+206>:       jmp    0x80d1846 <vf_uninit_filter+86>
0x80d18c0 <vf_uninit_filter+208>:       mov    %eax,(%esp,1)
0x80d18c3 <vf_uninit_filter+211>:       call   0x806ee1c <free>
0x80d18c8 <vf_uninit_filter+216>:       jmp    0x80d1823 <vf_uninit_filter+51>
0x80d18cd <vf_uninit_filter+221>:       mov    %esi,(%esp,1)
0x80d18d0 <vf_uninit_filter+224>:       call   *%eax
0x80d18d2 <vf_uninit_filter+226>:       jmp    0x80d1804 <vf_uninit_filter+20>
0x80d18d7 <vf_uninit_filter+231>:       nop    
0x80d18d8 <vf_uninit_filter+232>:       nop    
0x80d18d9 <vf_uninit_filter+233>:       lea    0x0(%esi,1),%esi
0x80d18e0 <vf_uninit_filter_chain>:     push   %ebx
0x80d18e1 <vf_uninit_filter_chain+1>:   sub    $0x8,%esp
0x80d18e4 <vf_uninit_filter_chain+4>:   mov    0x10(%esp,1),%eax
End of assembler dump.

/*-- registers --*/

(gdb) info all-registers 
eax            0x41c00000       1103101952
ecx            0x42124bf0       1108495344
edx            0x4      4
ebx            0x42124250       1108492880
esp            0xbfffe2d0       0xbfffe2d0
ebp            0xbffff648       0xbffff648
esi            0x41c33040       1103310912
edi            0x3cbd1730       1019025200
eip            0x80d18c8        0x80d18c8
eflags         0x210206 2163206
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x8f     143
gs             0x7      7
st0            -nan(0x801a80168018801b) (raw 0xffff801a80168018801b)
st1            -nan(0x8015801a801c801e) (raw 0xffff8015801a801c801e)
st2            59.969299848592072521569207310676575     (raw 0x4004efe09023b6e20000)
st3            154.15839961078745545819401741027832     (raw 0x40069a288ce07c080000)
st4            -0.0010318726009588274905581783968955278 (raw 0xbff5873fe62646800000)
st5            6.208333492279052734375  (raw 0x4001c6aaab0000000000)
st6            6.5378685262151519097528762358706445     (raw 0x4001d136380e34899800)
st7            6.2073016196780939068844418216031045     (raw 0x4001c6a237019d9b9800)
fctrl          0x27f    639
fstat          0x20     32
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), 
    -nan(0x7fffff)}}
xmm1           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), 
    -nan(0x7fffff)}}
xmm2           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), 
    -nan(0x7fffff)}}
xmm3           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), 
---Type <return> to continue, or q <return> to quit---
    -nan(0x7fffff)}}
xmm4           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), 
    -nan(0x7fffff)}}
xmm5           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), 
    -nan(0x7fffff)}}
xmm6           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), 
    -nan(0x7fffff)}}
xmm7           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), 
    -nan(0x7fffff)}}
mxcsr          0x1f80   8064
orig_eax       0xffffffff       -1


--
Filip Kalinski <filon at pld.org.pl>


More information about the MPlayer-cvslog mailing list