when loading a incomplete file, I never get a picture, often it results 
in a segfault (when calling m_Mutex.Unlock(); line 1790 in renderer.cpp, 
however somehow this call ends up somewhere in the SDL code):
Other times it simply exists with code 0 right after writing: 
"<renderer> : Loading subfont blablabla"
a classic race condition?

SDL version: 1.2.3+cvs20020303-1

(gdb) r
Starting program: /usr/bin/aviplay aaaa.avi
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...[New Thread 1024 (LWP 4415)]

(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...
<Init> : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 apic 
sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
<Init> : 855.05 MHz AMD Athlon(tm) Processor processor detected
<LDT_Keeper> : Installed fs segment: 0x40017000
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...
<aviplay> : Debug is on 0
<AVI reader> : Checking: aaaa.avi
<AVI reader> : AVIMainHeader: MicroSecPerFrame=41708 MaxBytesPerSec=0
 PaddingGranularity=0  Flags=[ HAS_INDEX IS_INTERLEAVED ] TotalFrames=139198
 InitialFrames=0  Streams=2  SuggestedBufferSize=0 WxH=576x256
 Scale=0  Rate=0  Start=0  Length=0
<AVI reader> : AVIStreamHeader: FccType=vids FccHandler=div3 Flags=[ ]
 InitialFrames=0 Scale=1000 Rate=23976 Start=0 Length=139198
 SuggestedBufferSize=41057 Quality=10000 SampleSize=0 Rect 
l,r,t,b=0,576,0,256
<AVI reader> : AVIStreamHeader: FccType=auds FccHandler=0x0 Flags=[ ]
 InitialFrames=1 Scale=1152 Rate=48000 Start=0 Length=241902
 SuggestedBufferSize=384 Quality=-1 SampleSize=0 Rect 
l,r,t,b=3524,12336,0,27
<AVI reader> : InfoChunk Software:  Nandub v1.0rc2
<AVI reader> : Reconstructing index...
<AVI reader> : Stream 0: 0x73646976 (vids) : 0x33766964 (div3)   103568 
chunks (1618.25KB)
<AVI reader> : Cache: Adding stream, 103568 chunks
<AVI reader> : Stream 1: 0x73647561 (auds) : 0x55 (MPEG Layer-3)   
180002 chunks (2812.53KB)
<AVI reader> : Cache: Adding stream, 180002 chunks
<AVI reader> : Cache:   Creating cache for file descriptor: 9
(no debugging symbols found)...[New Thread 2049 (LWP 4419)]
[New Thread 1026 (LWP 4420)]
<AVI reader> : Initialized video stream 0 (Chunk table size 103568, 
format size 40)
<AVI reader> : Initialized audio stream 0 (Chunk table size 180002, 
format size 30)
<AVI reader> : Successfully opened aaaa.avi
<Codec keeper> : /usr/lib/avifile0.7/libxvid.so: found  A: 0  V: 1  plugin
<Codec keeper> : /usr/lib/avifile0.7/libwin32.so: found  A: 13  V: 46  
plugins
<Codec keeper> : /usr/lib/avifile0.7/libvorbis_audio.so: found  A: 1  V: 
0  plugin
<Codec keeper> : /usr/lib/avifile0.7/libmpeg_audiodec.so: found  A: 1  
V: 0  plugin
<Codec keeper> : /usr/lib/avifile0.7/libmp3lamebin_audioenc.so: found  
A: 1  V: 0  plugin
<Codec keeper> : /usr/lib/avifile0.7/libmjpeg.so: found  A: 0  V: 1  plugin
<Codec keeper> : /usr/lib/avifile0.7/libmad_audiodec.so: found  A: 1  V: 
0  plugin
<Codec keeper> : /usr/lib/avifile0.7/libffmpeg.so: found  A: 2  V: 6  
plugins
<Codec keeper> : /usr/lib/avifile0.7/libdivx4.so: found  A: 0  V: 2  plugins
<Codec keeper> : /usr/lib/avifile0.7/libaudiodec.so: found  A: 5  V: 0  
plugins
<Codec keeper> : /usr/lib/avifile0.7/libac3pass.so: found  A: 1  V: 0  
plugin
Using DirectShow codec: divx_c32.ax
<Win32 DS video decoder> : Decoder is capable of YUV output ( flags 0x6 )
<Codec keeper> : DivX ;-) DirectShow video decoder created
<aviplay> : MAXAUTO 4
(no debugging symbols found)...(no debugging symbols found)...[New 
Thread 2051 (LWP 4426)]
[New Thread 3076 (LWP 4427)]
<aviplay> : Video decoder  thread lowered priority to 5
[New Thread 4101 (LWP 4429)]
<renderer> : SDL Video driver: x11
<renderer> : Detected nVidia GLX driver
<renderer> : If you need to clear two lowes line set shell variable 
AVIPLAY_NVIDIA_ENABLE
[New Thread 5126 (LWP 4431)]
<renderer> : Created surface: 576 x 256  32 bits
<renderer> : Creating YUV overlay 576x256, fourcc 0x32595559 (YUY2)
<renderer> : xv: port: 83
<renderer> : Loading subfont: 
"-adobe-helvetica-medium-r-normal--*-160-100-100-p-*-iso8859-*"

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 5126 (LWP 4431)]
0x407055c4 in X11_GrabInput () from /usr/lib/libSDL-1.2.so.0
(gdb) where
#0  0x407055c4 in X11_GrabInput () from /usr/lib/libSDL-1.2.so.0
#1  0x40098908 in avm::FullscreenRenderer::Unlock () from 
/usr/lib/libaviplay-0.7.so.0
#2  0x400938e0 in avm::GetPhysicalDepth () from /usr/lib/libaviplay-0.7.so.0
#3  0x40872f0a in pthread_start_thread () from /lib/libpthread.so.0
#4  0x40872f51 in pthread_start_thread_event () from /lib/libpthread.so.0
(gdb) info threads
* 7 Thread 5126 (LWP 4431)  0x407055c4 in X11_GrabInput () from 
/usr/lib/libSDL-1.2.so.0
  6 Thread 4101 (LWP 4429)  0x40934aee in sigsuspend () from /lib/libc.so.6
  5 Thread 3076 (LWP 4427)  0x40934aee in sigsuspend () from /lib/libc.so.6
  4 Thread 2051 (LWP 4426)  0x40934aee in sigsuspend () from /lib/libc.so.6
  3 Thread 1026 (LWP 4420)  0x40934aee in sigsuspend () from /lib/libc.so.6
  2 Thread 2049 (LWP 4419)  Couldn't get registers: No such process.
(gdb) thread apply all where

Thread 7 (Thread 5126 (LWP 4431)):
#0  0x407055c4 in X11_GrabInput () from /usr/lib/libSDL-1.2.so.0
#1  0x40098908 in avm::FullscreenRenderer::Unlock () from 
/usr/lib/libaviplay-0.7.so.0
#2  0x400938e0 in avm::GetPhysicalDepth () from /usr/lib/libaviplay-0.7.so.0
#3  0x40872f0a in pthread_start_thread () from /lib/libpthread.so.0
#4  0x40872f51 in pthread_start_thread_event () from /lib/libpthread.so.0

Thread 6 (Thread 4101 (LWP 4429)):
#0  0x40934aee in sigsuspend () from /lib/libc.so.6
#1  0x408756b9 in __pthread_wait_for_restart_signal () from 
/lib/libpthread.so.0
#2  0x40871f52 in pthread_cond_wait () from /lib/libpthread.so.0
#3  0x40088947 in avm::PthreadCond::Wait () from 
/usr/lib/libaviplay-0.7.so.0
#4  0x4006687a in avm::AviPlayer::checkSync () from 
/usr/lib/libaviplay-0.7.so.0
#5  0x4006814f in avm::AviPlayer::audioThread () from 
/usr/lib/libaviplay-0.7.so.0
#6  0x40063f3f in avm::AviPlayer::startAudioThread () from 
/usr/lib/libaviplay-0.7.so.0
#7  0x40872f0a in pthread_start_thread () from /lib/libpthread.so.0
#8  0x40872f51 in pthread_start_thread_event () from /lib/libpthread.so.0

Thread 5 (Thread 3076 (LWP 4427)):
#0  0x40934aee in sigsuspend () from /lib/libc.so.6
#1  0x408756b9 in __pthread_wait_for_restart_signal () from 
/lib/libpthread.so.0
#2  0x40871f52 in pthread_cond_wait () from /lib/libpthread.so.0
#3  0x40088947 in avm::PthreadCond::Wait () from 
/usr/lib/libaviplay-0.7.so.0
#4  0x4006687a in avm::AviPlayer::checkSync () from 
/usr/lib/libaviplay-0.7.so.0
#5  0x40067d68 in avm::AviPlayer::videoThread () from 
/usr/lib/libaviplay-0.7.so.0
#6  0x40063f17 in avm::AviPlayer::startVideoThread () from 
/usr/lib/libaviplay-0.7.so.0
#7  0x40872f0a in pthread_start_thread () from /lib/libpthread.so.0
#8  0x40872f51 in pthread_start_thread_event () from /lib/libpthread.so.0

Thread 4 (Thread 2051 (LWP 4426)):
#0  0x40934aee in sigsuspend () from /lib/libc.so.6
#1  0x408756b9 in __pthread_wait_for_restart_signal () from 
/lib/libpthread.so.0
#2  0x40871f52 in pthread_cond_wait () from /lib/libpthread.so.0
#3  0x40088947 in avm::PthreadCond::Wait () from 
/usr/lib/libaviplay-0.7.so.0
#4  0x4006687a in avm::AviPlayer::checkSync () from 
/usr/lib/libaviplay-0.7.so.0
#5  0x400683a8 in avm::AviPlayer::decoderThread () from 
/usr/lib/libaviplay-0.7.so.0
#6  0x40063f67 in avm::AviPlayer::startDecoderThread () from 
/usr/lib/libaviplay-0.7.so.0
#7  0x40872f0a in pthread_start_thread () from /lib/libpthread.so.0
#8  0x40872f51 in pthread_start_thread_event () from /lib/libpthread.so.0

---Type <return> to continue, or q <return> to quit---
Thread 3 (Thread 1026 (LWP 4420)):
#0  0x40934aee in sigsuspend () from /lib/libc.so.6
#1  0x408756b9 in __pthread_wait_for_restart_signal () from 
/lib/libpthread.so.0
#2  0x40871f52 in pthread_cond_wait () from /lib/libpthread.so.0
#3  0x40088947 in avm::PthreadCond::Wait () from 
/usr/lib/libaviplay-0.7.so.0
#4  0x4007f68c in avm::Cache::readfunc () from /usr/lib/libaviplay-0.7.so.0
#5  0x4007fe01 in avm::Cache::startReadfuncThread () from 
/usr/lib/libaviplay-0.7.so.0
#6  0x40872f0a in pthread_start_thread () from /lib/libpthread.so.0
#7  0x40872f51 in pthread_start_thread_event () from /lib/libpthread.so.0
Couldn't get registers: No such process.
(gdb)

-- 
Dennis
use Inline C => qq{void p(char*g){printf("Just Another %s Hacker\n",g);}};p("Perl");



_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to