another variant, right before deadlock (stopped on breakpoint on pthread_cond_wait(&p->progress_cond, &p->progress_mutex);),
>&"thread apply all bt\n" >~"\nThread 14 (Thread 1812.0xac0):\n" >~"#0 0x7d61cbeb in ?? ()\n" >~"#1 0x7da43de0 in RPCRT4!NdrpReleaseTypeFormatString () from C:\\WINDOWS\\syswow64\\rpcrt4.dll\n" >~"#2 0x0da1ffac in ?? ()\n" >~"#3 0x7da43d04 in RPCRT4!NdrpReleaseTypeFormatString () from C:\\WINDOWS\\syswow64\\rpcrt4.dll\n" >~"#4 0x002347d0 in ?? ()\n" >~"#5 0x7da43dc8 in RPCRT4!NdrpReleaseTypeFormatString () from C:\\WINDOWS\\syswow64\\rpcrt4.dll\n" >~"#6 0x00230b78 in ?? ()\n" >~"#7 0x7d4dfe37 in KERNEL32!GetConsoleOutputCP () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#8 0x002fb470 in ?? ()\n" >~"#9 0x00000000 in ?? ()\n" >~"\nThread 13 (Thread 1812.0xb64):\n" >~"#0 0x7d61c846 in ?? ()\n" >~"#1 0x7d4d8c0d in RegisterWaitForInputIdle () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#2 0x00000cbc in ?? ()\n" >~"#3 0xffffffff in ?? ()\n" >~"#4 0x00000000 in ?? ()\n" >~"\nThread 12 (Thread 1812.0x84):\n" >~"#0 0x7d61c846 in ?? ()\n" >~"#1 0x7d4d8c0d in RegisterWaitForInputIdle () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#2 0x00000ccc in ?? ()\n" >~"#3 0xffffffff in ?? ()\n" >~"#4 0x00000000 in ?? ()\n" >~"\nThread 11 (Thread 1812.0x964):\n" >~"#0 0x7d947860 in USER32!SetActiveWindow () from C:\\WINDOWS\\syswow64\\user32.dll\n" >~"#1 0x7d947bbf in USER32!SetForegroundWindow () from C:\\WINDOWS\\syswow64\\user32.dll\n" >~"#2 0x0c8bfef8 in ?? ()\n" >~"#3 0x6d78538e in EventThread (p_this=0xc3c5df0) at events.c:265\n" >~"#4 0x6a5d79f9 in vlc_entry (p=0xc3c60f0) at win32/thread.c:577\n" >~"#5 0x77bcb530 in msvcrt!_endthreadex () from C:\\WINDOWS\\syswow64\\msvcrt.dll\n" >~"#6 0x7d4dfe37 in KERNEL32!GetConsoleOutputCP () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#7 0x0c3c6120 in ?? ()\n" >~"#8 0x00000000 in ?? ()\n" >~"\nThread 10 (Thread 1812.0x8f4):\n" >~"#0 0x7d81b72f in ResetDCW () from C:\\WINDOWS\\syswow64\\gdi32.dll\n" >~"#1 0x4e0408f8 in d3d9!Direct3DShaderValidatorCreate9 () from C:\\WINDOWS\\SysWOW64\\d3d9.dll\n" >~"#2 0x4e04eee8 in d3d9!Direct3DShaderValidatorCreate9 () from C:\\WINDOWS\\SysWOW64\\d3d9.dll\n" >~"#3 0x4e04ec86 in d3d9!Direct3DShaderValidatorCreate9 () from C:\\WINDOWS\\SysWOW64\\d3d9.dll\n" >~"#4 0x6d782fb6 in Direct3DUnlockSurface (picture=0xc3c7a70) at direct3d.c:853\n" >~"#5 0x6d781ca2 in Prepare (vd=0xc3c47e8, picture=0xc3c7a70, subpicture=0x0) at direct3d.c:274\n" >~"#6 0x6a59457f in vout_display_Prepare (vd=0xc3c47e8, picture=0xc3c7a70, subpicture=0x0) at ../include/vlc_vout_wrapper.h:47\n" >~"#7 0x6a597064 in ThreadDisplayRenderPicture (vout=0x370bcb8, is_forced=true) at video_output/video_output.c:1018\n" >~"#8 0x6a597574 in ThreadDisplayPicture (vout=0x370bcb8, now=false, deadline=0xc7bff24) at video_output/video_output.c:1126\n" >~"#9 0x6a5975c0 in ThreadManage (vout=0x370bcb8, deadline=0xc7bff24, interlacing=0xc7bff34, postprocessing=0xc7bff30) at video_output/video_output.c:1138\n" >~"#10 0x6a598925 in Thread (object=0x370bcb8) at video_output/video_output.c:1581\n" >~"#11 0x6a5d79f9 in vlc_entry (p=0xc3c3e98) at win32/thread.c:577\n" >~"#12 0x77bcb530 in msvcrt!_endthreadex () from C:\\WINDOWS\\syswow64\\msvcrt.dll\n" >~"#13 0x7d4dfe37 in KERNEL32!GetConsoleOutputCP () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#14 0x0c3c3ec8 in ?? ()\n" >~"#15 0x00000000 in ?? ()\n" >~"\nThread 9 (Thread 1812.0xa68):\n" >~"#0 0x7d61c846 in ?? ()\n" >~"#1 0x7d4d8c0d in RegisterWaitForInputIdle () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#2 0x00000d68 in ?? ()\n" >~"#3 0xffffffff in ?? ()\n" >~"#4 0x00000000 in ?? ()\n" >~"\nThread 8 (Thread 1812.0x788):\n" >~"#0 ff_thread_get_buffer (avctx=0x36f3ba0, f=0xd1500b8) at libavcodec/pthread.c:881\n" >~"#1 0x05d5d6ce in alloc_frame_buffer (s=0x36f3fe0, pic=0xd1500b8) at libavcodec/mpegvideo.c:262\n" >~"#2 0x05d5d8b5 in ff_alloc_picture (s=0x36f3fe0, pic=0xd1500b8, shared=0) at libavcodec/mpegvideo.c:314\n" >~"#3 0x05d614b3 in MPV_frame_start (s=0x36f3fe0, avctx=0x36f3ba0) at libavcodec/mpegvideo.c:1183\n" >~"#4 0x05d75ccc in ff_h263_decode_frame (avctx=0x36f3ba0, data=0x36eea88, data_size=0x36eeba8, avpkt=0x36eea38) at libavcodec/h263dec.c:626\n" >~"#5 0x05f33008 in frame_worker_thread (arg=0x36ee9e0) at libavcodec/pthread.c:326\n" >~"#6 0x05f3221d in win32thread_worker (arg=0x36ee9e4) at libavcodec/w32pthreads.h:70\n" >~"#7 0x77bcb530 in msvcrt!_endthreadex () from C:\\WINDOWS\\syswow64\\msvcrt.dll\n" >~"#8 0x7d4dfe37 in KERNEL32!GetConsoleOutputCP () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#9 0x036f6a28 in ?? ()\n" >~"#10 0x00000000 in ?? ()\n" >~"\nThread 7 (Thread 1812.0x384):\n" >~"#0 0x060d4f3c in prefetch_mmx2 (mem=0xcd27e28, stride=608, h=1) at libavcodec/x86/dsputil_mmx.c:1797\n" >~"#1 0x05d5c010 in prefetch_motion (s=0x36f1240, pix=0x36f15a0, dir=0) at libavcodec/mpegvideo_common.h:619\n" >~"#2 0x05d5c0c0 in MPV_motion_internal (s=0x36f1240, dest_y=0xd0fef40 '\\021' <repeats 16 times>, dest_cb=0xd101540 \"\\177\\177\\177\\177\\177\\177\\177\\177\", dest_cr=0xd103b40 \"\\177\\177\\177\\177\\177\\177\\177\\177\", dir=0, ref_picture=0x36f15a0, pix_op=0x36f2704, qpix_op=0x36f2864, is_mpeg12=0) at libavcodec/mpegvideo_common.h:650\n" >~"#3 0x05d5d322 in MPV_motion (s=0x36f1240, dest_y=0xd0fef40 '\\021' <repeats 16 times>, dest_cb=0xd101540 \"\\177\\177\\177\\177\\177\\177\\177\\177\", dest_cr=0xd103b40 \"\\177\\177\\177\\177\\177\\177\\177\\177\", dir=0, ref_picture=0x36f15a0, pix_op=0x36f2704, qpix_op=0x36f2864) at libavcodec/mpegvideo_common.h:896\n" >~"#4 0x05d6579c in MPV_decode_mb_internal (s=0x36f1240, block=0xd113f80, lowres_flag=0, is_mpeg12=0) at libavcodec/mpegvideo.c:2266\n" >~"#5 0x05d66538 in MPV_decode_mb (s=0x36f1240, block=0xd113f80) at libavcodec/mpegvideo.c:2403\n" >~"#6 0x05d74a7f in decode_slice (s=0x36f1240) at libavcodec/h263dec.c:250\n" >~"#7 0x05d75db2 in ff_h263_decode_frame (avctx=0x36c3860, data=0x36ec258, data_size=0x36ec378, avpkt=0x36ec208) at libavcodec/h263dec.c:655\n" >~"#8 0x05f33008 in frame_worker_thread (arg=0x36ec1b0) at libavcodec/pthread.c:326\n" >~"#9 0x05f3221d in win32thread_worker (arg=0x36ec1b4) at libavcodec/w32pthreads.h:70\n" >~"#10 0x77bcb530 in msvcrt!_endthreadex () from C:\\WINDOWS\\syswow64\\msvcrt.dll\n" >~"#11 0x7d4dfe37 in KERNEL32!GetConsoleOutputCP () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#12 0x036c3ed8 in ?? ()\n" >~"#13 0x00000000 in ?? ()\n" >~"\nThread 6 (Thread 1812.0x500):\n" >~"#0 0x7d61c846 in ?? ()\n" >~"#1 0x7d4d8c0d in RegisterWaitForInputIdle () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#2 0x00000da0 in ?? ()\n" >~"#3 0xffffffff in ?? ()\n" >~"#4 0x00000000 in ?? ()\n" >~"\nThread 5 (Thread 1812.0x82c):\n" >~"#0 0x7d61d06f in ?? ()\n" >~"#1 0x6a5d6e0d in vlc_WaitForMultipleObjects (count=1, handles=0x390f1ec, delay=4294967295) at win32/thread.c:135\n" >~"#2 0x6a5d6e78 in vlc_WaitForSingleObject (handle=0xd50, delay=4294967295) at win32/thread.c:147\n" >~"#3 0x6a5d7268 in vlc_cond_wait (p_condvar=0x36cc918, p_mutex=0x36cc8f4) at win32/thread.c:303\n" >~"#4 0x6a568c96 in input_DecoderWaitBuffering (p_dec=0x3619c78) at input/decoder.c:598\n" >~"#5 0x6a570972 in EsOutDecodersStopBuffering (out=0x36cf3a8, b_forced=false) at input/es_out.c:681\n" >~"#6 0x6a57485d in EsOutControlLocked (out=0x36cf3a8, i_query=6, args=0x390f56c \"\250\363l\\003\\004\") at input/es_out.c:2335\n" >~"#7 0x6a575799 in EsOutControl (out=0x36cf3a8, i_query=6, args=0x390f564 \"\211\365\\004\") at input/es_out.c:2716\n" >~"#8 0x6a5768ba in es_out_vaControl (out=0x36cf3a8, i_query=6, args=0x390f564 \"\211\365\\004\") at ../include/vlc_es_out.h:126\n" >~"#9 0x6a5768e1 in es_out_Control (out=0x36cf3a8, i_query=6) at ../include/vlc_es_out.h:135\n" >~"#10 0x6a5794ff in CmdExecuteControl (p_out=0x36cf3a8, p_cmd=0x390f5c8) at input/es_out_timeshift.c:1463\n" >~"#11 0x6a577668 in ControlLocked (p_out=0x36cf560, i_query=6, args=0x390f6e4 \"\211\365\\004\") at input/es_out_timeshift.c:622\n" >~"#12 0x6a577994 in Control (p_out=0x36cf560, i_query=6, args=0x390f6e4 \"\211\365\\004\") at input/es_out_timeshift.c:720\n" >~"#13 0x6e04154e in es_out_vaControl (out=0x36cf560, i_query=6, args=0x390f6e4 \"\211\365\\004\") at ../../../include/vlc_es_out.h:126\n" >~"#14 0x6e041575 in es_out_Control (out=0x36cf560, i_query=6) at ../../../include/vlc_es_out.h:135\n" >~"#15 0x6e043717 in Demux_Seekable (p_demux=0x36e5868) at avi.c:867\n" >~"#16 0x6a57b386 in demux_Demux (p_demux=0x36e5868) at input/demux.h:44\n" >~"#17 0x6a57c2f6 in MainLoopDemux (p_input=0x36bbb40, pb_changed=0x390febb, pb_demux_polled=0x390feab, i_start_mdate=9243810766) at input/input.c:591\n" >~"#18 0x6a57c8f5 in MainLoop (p_input=0x36bbb40, b_interactive=true) at input/input.c:765\n" >~"#19 0x6a57c1b7 in Run (obj=0x36bbb40) at input/input.c:553\n" >~"#20 0x6a5d79f9 in vlc_entry (p=0x36cf530) at win32/thread.c:577\n" >~"#21 0x77bcb530 in msvcrt!_endthreadex () from C:\\WINDOWS\\syswow64\\msvcrt.dll\n" >~"#22 0x7d4dfe37 in KERNEL32!GetConsoleOutputCP () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#23 0x036cf560 in ?? ()\n" >~"#24 0x00000000 in ?? ()\n" >~"\nThread 4 (Thread 1812.0xb70):\n" >~"#0 0x7d61ccc6 in ?? ()\n" >~"#1 0x7d4d14ef in KERNEL32!FindNextFileW () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#2 0x0000ea60 in ?? ()\n" >~"#3 0x00000000 in ?? ()\n" >~"\nThread 3 (Thread 1812.0x244):\n" >~"#0 0x7d61cbeb in ?? ()\n" >~"#1 0x7da43de0 in RPCRT4!NdrpReleaseTypeFormatString () from C:\\WINDOWS\\syswow64\\rpcrt4.dll\n" >~"#2 0x02ddffac in ?? ()\n" >~"#3 0x7da43d04 in RPCRT4!NdrpReleaseTypeFormatString () from C:\\WINDOWS\\syswow64\\rpcrt4.dll\n" >~"#4 0x002347d0 in ?? ()\n" >~"#5 0x7da43dc8 in RPCRT4!NdrpReleaseTypeFormatString () from C:\\WINDOWS\\syswow64\\rpcrt4.dll\n" >~"#6 0x00230b78 in ?? ()\n" >~"#7 0x7d4dfe37 in KERNEL32!GetConsoleOutputCP () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#8 0x002346a8 in ?? ()\n" >~"#9 0x00000000 in ?? ()\n" >~"\nThread 2 (Thread 1812.0x8d8):\n" >~"#0 0x7d61d06f in ?? ()\n" >~"#1 0x7d63f948 in ?? ()\n" >~"#2 0x7d4dfe37 in KERNEL32!GetConsoleOutputCP () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#3 0x00000000 in ?? ()\n" >~"\nThread 1 (Thread 1812.0xa70):\n" >~"#0 0x7d947860 in USER32!SetActiveWindow () from C:\\WINDOWS\\syswow64\\user32.dll\n" >~"#1 0x7d947bbf in USER32!SetForegroundWindow () from C:\\WINDOWS\\syswow64\\user32.dll\n" >~"#2 0x00225cf8 in ?? ()\n" >~"#3 0x0060d0a3 in ?? () from C:\\WINDOWS\\WinSxS\\x86_Microsoft.VC90.DebugMFC_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_8B7AF229\\mfc90d.dll\n" >~"#4 0x0060e6be in ?? () from C:\\WINDOWS\\WinSxS\\x86_Microsoft.VC90.DebugMFC_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_8B7AF229\\mfc90d.dll\n" >~"#5 0x0060df0d in ?? () from C:\\WINDOWS\\WinSxS\\x86_Microsoft.VC90.DebugMFC_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_8B7AF229\\mfc90d.dll\n" >~"#6 0x00610789 in ?? () from C:\\WINDOWS\\WinSxS\\x86_Microsoft.VC90.DebugMFC_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_8B7AF229\\mfc90d.dll\n" >~"#7 0x00595dbf in ?? () from C:\\WINDOWS\\WinSxS\\x86_Microsoft.VC90.DebugMFC_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_8B7AF229\\mfc90d.dll\n" >~"#8 0x0044ef1a in ?? ()\n" >~"#9 0x004455a8 in ?? ()\n" >~"#10 0x0044530f in ?? ()\n" >~"#11 0x7d4e7d42 in KERNEL32!GetDateFormatW () from C:\\WINDOWS\\syswow64\\kernel32.dll\n" >~"#12 0x00000000 in ?? ()\n" >^done 2011/12/9 Ronald S. Bultje <[email protected]> > Hi, > > On Thu, Dec 8, 2011 at 5:48 PM, Sergey Radionov <[email protected]> wrote: > >> I've found exact place of deadlock. >> it is >> http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/pthread.c;hb=HEAD#l859 >> >> patch for debug tracing: http://pastie.org/2988933 >> debug log: http://pastie.org/2988951 >> call stack: http://pastie.org/2988941 >> > > Do you know what the other threads are stuck at at that point? (Gdb: > thread apply all bt) > > Ronald > > _______________________________________________ > libav-devel mailing list > [email protected] > https://lists.libav.org/mailman/listinfo/libav-devel > >
_______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
