[MPlayer-dev-eng] [BUG] spudec? pthread?! faszom!?

Gabucino gabucino at mplayer.dev.hu
Fri Mar 29 21:06:38 CET 2002


MPlayer segfaults after uninit of second file. In spudec, in pthread ?!
--($:~)-- ldd /usr/bin/mplayer  | grep pthread
        libpthread.so.0 => /lib/libpthread.so.0 (0x40035000)
Heh??


(gdb) run -v Crest_of_the_Stars-01.avi Crest_of_the_Stars-02.avi Crest_of_the_Stars-03.avi
Starting program: /home/gabucino/mplayer/src/mplayer -v Crest_of_the_Stars-01.avi Crest_of_the_Stars-02.avi Crest_of_the_Stars-03.avi
[New Thread 1024 (LWP 22207)]


MPlayer CVS-020329-20:47-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU vendor name: AuthenticAMD  max cpuid level: 1
CPU: Advanced Micro Devices K6-2 (Type: 5, Stepping: 12)
extended cpuid-level: 5
CPUflags: Type: 5 MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with RUNTIME CPU Detection - warning, it's not optimal! To get best performance, recompile mplayer from sources with --disable-runtime-cpudetection
/home/gabucino/.mplayer/config(1): option: vo
/home/gabucino/.mplayer/config(1): parameter: xmga
/home/gabucino/.mplayer/config(2): option: fs
/home/gabucino/.mplayer/config(2): parameter: igen
/home/gabucino/.mplayer/config(6): option: osdlevel
/home/gabucino/.mplayer/config(6): parameter: 1
/home/gabucino/.mplayer/config(7): option: framedrop
/home/gabucino/.mplayer/config(7): parameter: nem
/home/gabucino/.mplayer/config(8): option: autoq
/home/gabucino/.mplayer/config(8): parameter: 100
/home/gabucino/.mplayer/config(11): option: cache
/home/gabucino/.mplayer/config(11): parameter: 1024
Reading /home/gabucino/.mplayer/codecs.conf: 30 audio & 80 video codecs
CommandLine: '-v' 'Crest_of_the_Stars-01.avi' 'Crest_of_the_Stars-02.avi' 'Crest_of_the_Stars-03.avi'
get_path('font/font.desc') -> '/home/gabucino/.mplayer/font/font.desc'
Font /home/gabucino/.mplayer/font/font.desc loaded successfully! (206 chars)
Linux RTC init error in ioctl (rtc_pie_on): Permission denied
Using usleep() timing
get_path('input.conf') -> '/home/gabucino/.mplayer/input.conf'
Parsing input config file /home/gabucino/.mplayer/input.conf
Input config file /home/gabucino/.mplayer/input.conf parsed : 50 binds
Playing Crest_of_the_Stars-01.avi
Can't open IFO file: No such file or directory
Not an URL!
File size is 169920512 bytes
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0  
Cache fill:  0.00% (0 bytes)    Detected AVI file format!
list_end=0x2292
======= AVI Header =======
us/frame: 41708  (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 36080   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  512 x 384
list_end=0x10F4
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: div3 (33766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 23976023/1000000 = 23.976
Start: 0   Len: 36080
Suggested BufferSize: 68178
Quality 10000
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 512
  biHeight 384
  biPlanes 1
  biBitCount 24
  biCompression 861292868='DIV3'
  biSizeImage 589824
===========================
Regenerating keyframe table for DIVX 3 video
list_end=0x2186
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 48000/1152 = 41.667
Start: 0   Len: 62697
Suggested BufferSize: 576
Quality -1
Sample size: 0
found 'wf', 30 bytes of 20
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 19383
Block align: 1152
bits/sample: 0
cbSize: 12
list_end=0x2292
list_end=0x22F6
hdr=Software  size=13
Software  : Nandub v0.27
hdr=Name  size=9
Name      : Invasion
hdr=Subject  size=9
Subject   : Invasion
hdr=Artist  size=1
Artist    : 
hdr=Copyright  size=1
Copyright : 
hdr=Comments  size=1
Comments  : 
Broken chunk?  chunksize=1282  (id=JUNK)
list_end=0xA08A29E
Found movie at 0x280C - 0xA08A29E
Reading INDEX block, 98777 chunks for 36080 frames
Broken chunk?  chunksize=0  (id=idx1)
Reading INDEX block, 98777 chunks for 36080 frames
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x18C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=167474921
VIDEO:  [DIV3]  512x384  24bpp  23.98 fps  890.3 kbps (108.7 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:512x384  fps:23.98  ftime:=0.0417
Clip info: 
 Software: Nandub v0.27
 Name: Invasion
 Subject: Invasion
 Artist: 
 Copyright: 
 Comments: 
get_path('sub/') -> '/home/gabucino/.mplayer/sub/'
Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
Initializing audio codec...
Selecting Audio Decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
CPU vendor name: AuthenticAMD  max cpuid level: 1
CPU: Advanced Micro Devices K6-2 (Type: 5, Stepping: 12)
extended cpuid-level: 5
mp3lib: made decode tables with MMX optimization
init layer2&3 finished, tables done
mp3lib: using 3DNow! optimized decore!
MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384
Channels: 2, copyright: Yes, original: No, CRC: Yes, emphasis: 0
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 16000->192000
==========================================================================
Opening Video Decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec: CPU flags: mmx 3dnow
INFO: libavcodec init OK!
VDec: vo config request - 512 x 384, Planar YV12  
Movie-Aspect is undefined - no prescaling applied.
VO: [xmga] 512x384 => 512x384 Planar YV12 fs 
VO: Description: X11 (Matrox G200/G4x0/G550 overlay in window using /dev/mga_vid)
VO: Author: Zoltan Ponekker <pontscho at makacs.poliod.hu>
video_out->init(512x384->512x384,flags=1,'MPlayer',0x32315659)
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 800x600 with depth 24 and 32 bits/pixel (":0.0" => local display)
[xmga] x: 0 y: 0 w: 800 h: 600
[xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
[xmga-fs] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
[xmga] x: 0 y: 0 w: 800 h: 600
[xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
[xmga-fs] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
Detected video codec: [ffdivx] drv:5 prio:0 (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
AutoQ: setting quality to 0
AO: [oss] 48000Hz Stereo Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
Start playing...
Using MMX (with tiny bit 3DNow) Optimized OnScreenDisplay
X11 Window 1x1-800x600
[xmga] x: 0 y: 0 w: 800 h: 600
[xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
[xmga-fs] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
XXX initial  v_pts=0.000  a_pos=7680 (0.396) /  1   0%  0%  0.0% 0 0 98%
EOF code: 1   1.6 A-V:  0.118 ct:  0.046   39/ 39  14%  8%  4.0% 0 0 90%
vo: uninit!

*** free_stream() called ***
uninit video: 5  
Playing Crest_of_the_Stars-02.avi
Can't open IFO file: No such file or directory
Not an URL!
File size is 169009152 bytes
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0  
Cache fill:  0.00% (0 bytes)    Detected AVI file format!
list_end=0x2292
======= AVI Header =======
us/frame: 41708  (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 36118   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  512 x 384
list_end=0x10F4
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: div3 (33766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 23976023/1000000 = 23.976
Start: 0   Len: 36118
Suggested BufferSize: 44353
Quality 10000
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 512
  biHeight 384
  biPlanes 1
  biBitCount 24
  biCompression 861292868='DIV3'
  biSizeImage 589824
===========================
Regenerating keyframe table for DIVX 3 video
list_end=0x2186
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 48000/1152 = 41.667
Start: 0   Len: 62767
Suggested BufferSize: 576
Quality -1
Sample size: 0
found 'wf', 30 bytes of 20
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 18841
Block align: 1152
bits/sample: 0
cbSize: 12
list_end=0x2292
list_end=0x2306
hdr=Software  size=13
Software  : Nandub v0.27
hdr=Name  size=17
Name      : Kin of the Stars
hdr=Subject  size=17
Subject   : Kin of the Stars
hdr=Artist  size=1
Artist    : 
hdr=Copyright  size=1
Copyright : 
hdr=Comments  size=1
Comments  : 
Broken chunk?  chunksize=1266  (id=JUNK)
list_end=0x9FAB5A8
Found movie at 0x280C - 0x9FAB5A8
Reading INDEX block, 98885 chunks for 36118 frames
Broken chunk?  chunksize=0  (id=idx1)
Reading INDEX block, 98885 chunks for 36118 frames
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x1EC)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=166561357
VIDEO:  [DIV3]  512x384  24bpp  23.98 fps  884.5 kbps (108.0 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:512x384  fps:23.98  ftime:=0.0417
Clip info: 
 Software: Nandub v0.27
 Name: Kin of the Stars
 Subject: Kin of the Stars
 Artist: 
 Copyright: 
 Comments: 
get_path('sub/') -> '/home/gabucino/.mplayer/sub/'
Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
Initializing audio codec...
Selecting Audio Decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
CPU vendor name: AuthenticAMD  max cpuid level: 1
CPU: Advanced Micro Devices K6-2 (Type: 5, Stepping: 12)
extended cpuid-level: 5
mp3lib: made decode tables with MMX optimization
init layer2&3 finished, tables done
mp3lib: using 3DNow! optimized decore!
MPEG 1.0, Layer III, 48000 Hz 160 kbit Joint-Stereo, BPF: 480
Channels: 2, copyright: Yes, original: No, CRC: Yes, emphasis: 0
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 20000->192000
==========================================================================
Opening Video Decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
VDec: vo config request - 512 x 384, Planar YV12  
Movie-Aspect is undefined - no prescaling applied.
VO: [xmga] 512x384 => 512x384 Planar YV12 fs 
VO: Description: X11 (Matrox G200/G4x0/G550 overlay in window using /dev/mga_vid)
VO: Author: Zoltan Ponekker <pontscho at makacs.poliod.hu>
video_out->init(512x384->512x384,flags=1,'MPlayer',0x32315659)
[xmga] x: 0 y: 0 w: 800 h: 600
[xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
[xmga-fs] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
[xmga] x: 0 y: 0 w: 800 h: 600
[xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
[xmga-fs] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
Detected video codec: [ffdivx] drv:5 prio:0 (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
AO: [oss] 48000Hz Stereo Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
Start playing...
XXX initial  v_pts=0.000  a_pos=7776 (0.413) /  1   0%  0%  0.0% 0 0 98%
EOF code: 1   0.0 A-V:  0.042 ct:  0.054    2/  2   0%  0%  0.0% 0 0 98%
vo: uninit!

*** free_stream() called ***

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 22207)]
0x4003cd50 in pthread_mutex_lock () from /lib/libpthread.so.0
(gdb) bt
#0  0x4003cd50 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x405fd96b in free () from /lib/libc.so.6
#2  0x807c786 in spudec_free (this=0x83014c0) at spudec.c:683
#3  0x8067c93 in uninit_player (mask=65387) at mplayer.c:308
#4  0x806cf1c in main (argc=5, argv=0xbffff924, envp=0xbffff93c)
    at mplayer.c:2760
#5  0x405a6906 in __libc_start_main () from /lib/libc.so.6
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x4003cd30 to 0x4003cd70:
0x4003cd30 <pthread_mutex_trylock+772>: pop    %ebx
0x4003cd31 <pthread_mutex_trylock+773>: pop    %esi
0x4003cd32 <pthread_mutex_trylock+774>: pop    %edi
0x4003cd33 <pthread_mutex_trylock+775>: mov    %ebp,%esp
0x4003cd35 <pthread_mutex_trylock+777>: pop    %ebp
0x4003cd36 <pthread_mutex_trylock+778>: ret    
0x4003cd37 <pthread_mutex_trylock+779>: nop    
0x4003cd38 <pthread_mutex_lock>:        push   %ebp
0x4003cd39 <pthread_mutex_lock+1>:      mov    %esp,%ebp
0x4003cd3b <pthread_mutex_lock+3>:      sub    $0xc,%esp
0x4003cd3e <pthread_mutex_lock+6>:      push   %edi
0x4003cd3f <pthread_mutex_lock+7>:      push   %esi
0x4003cd40 <pthread_mutex_lock+8>:      push   %ebx
0x4003cd41 <pthread_mutex_lock+9>:      
    call   0x4003cd46 <pthread_mutex_lock+14>
0x4003cd46 <pthread_mutex_lock+14>:     pop    %ebx
0x4003cd47 <pthread_mutex_lock+15>:     add    $0xda36,%ebx
0x4003cd4d <pthread_mutex_lock+21>:     mov    0x8(%ebp),%edi
0x4003cd50 <pthread_mutex_lock+24>:     mov    0xc(%edi),%eax
0x4003cd53 <pthread_mutex_lock+27>:     cmp    $0x3,%eax
0x4003cd56 <pthread_mutex_lock+30>:     
    ja     0x4003ce96 <pthread_mutex_lock+350>
0x4003cd5c <pthread_mutex_lock+36>:     mov    %ebx,%edx
0x4003cd5e <pthread_mutex_lock+38>:     sub    0xffff25f4(%ebx,%eax,4),%edx
0x4003cd65 <pthread_mutex_lock+45>:     jmp    *%edx
0x4003cd67 <pthread_mutex_lock+47>:     mov    %esi,%esi
0x4003cd69 <pthread_mutex_lock+49>:     lea    0x0(%edi,1),%edi
End of assembler dump.


-- 
Gabucino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020329/9e966659/attachment.pgp>


More information about the MPlayer-dev-eng mailing list