[vlc-devel] Core input code race condition

xxcv xxcv07 at gmail.com
Wed Mar 4 08:14:25 CET 2009


Kaarlo Räihä wrote:
> I tested with VLC 1.0.0-git 11th feb 09 and I cannot lock down VLC. Holding down the hotket for next will give some errors to log
>
> VLC can't recognize the input's format:
> The format of 'C:\sample.avi' cannot be detected. Have a look at the log for details.
> VLC can't recognize the input's format:
> The format of 'C:\ricerca.avi' cannot be detected. Have a look at the log for details.
> VLC can't recognize the input's format:
> The format of 'C:\pstesti.avi' cannot be detected. Have a look at the log for details.
>
> All these video play fine, but something "strange" does happen when the current playlist item is changed too fast.
>   

Holding "N" never release (Creating load on CPU + Huge Memory leak)
This doesn't happen when pressing "N" then release.
This doesn't happen on 0.9-bugfix.
    http://img87.imageshack.us/img87/7917/avifile.jpg will pop up.

vlc.git/master, got stressed will trigger 3 more race conditions.
The last gdb backtrace is found after click on ok from this unknown dialog.
    http://img22.imageshack.us/img22/4668/19827859.jpg

See gdb below:
------------------------------------------------------------------------

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 6720.0x30d8]
0x6a55bee6 in decoder_SynchroNewPicture (p_synchro=0x0, i_coding_type=2,
    i_repeat_field=2, next_pts=877466, next_dts=777366, b_low_delay=false)
    at input/decoder_synchro.c:404
        in input/decoder_synchro.c
(gdb) Error: dll starting at 0x77340000 not found.
Error: dll starting at 0x77160000 not found.
Error: dll starting at 0x77340000 not found.
Error: dll starting at 0x77270000 not found.
Error: dll starting at 0x12f70000 not found.
warning: Lowest section in C:\Windows\syswow64\normaliz.dll is .text at 
00401000
BFD: C:\Windows\SysWOW64\SLC.dll: Warning: Ignoring section flag 
IMAGE_SCN_MEM_NOT_PAGED in section .reloc
BFD: C:\Windows\SysWOW64\SLC.dll: Warning: Ignoring section flag 
IMAGE_SCN_MEM_NOT_PAGED in section .reloc
Error: dll starting at 0x156a0000 not found.
Error: dll starting at 0x16790000 not found.
Error: dll starting at 0x16d20000 not found.
Error: dll starting at 0x5a500000 not found.
Error: dll starting at 0x12430000 not found.
BFD: C:\Windows\SysWOW64\WMVCORE.DLL: Warning: Ignoring section flag 
IMAGE_SCN_MEM_NOT_PAGED in section .reloc
BFD: C:\Windows\SysWOW64\WMVCORE.DLL: Warning: Ignoring section flag 
IMAGE_SCN_MEM_NOT_PAGED in section .reloc
Error: dll starting at 0x16aa0000 not found.
Error: dll starting at 0x70e90000 not found.
BFD: C:\Windows\SysWOW64\WMVCORE.DLL: Warning: Ignoring section flag 
IMAGE_SCN_MEM_NOT_PAGED in section .reloc
BFD: C:\Windows\SysWOW64\WMVCORE.DLL: Warning: Ignoring section flag 
IMAGE_SCN_MEM_NOT_PAGED in section .reloc
Error: dll starting at 0x5a500000 not found.
404     input/decoder_synchro.c: No such file or directory.
bt
#0  0x6a55bee6 in decoder_SynchroNewPicture (p_synchro=0x0, 
i_coding_type=2,
    i_repeat_field=2, next_pts=877466, next_dts=777366, b_low_delay=false)
    at input/decoder_synchro.c:404
#1  0x66741b77 in DecodeBlock (p_dec=0x1f350968, pp_block=0x13f0fe54)
    at libmpeg2.c:420
#2  0x6a55a760 in DecoderDecodeVideo (p_dec=0x1f350968,
    p_block=<incomplete type>) at input/decoder.c:1350
#3  0x6a559de2 in DecoderProcess (p_dec=0x1f350968, p_block=<incomplete 
type>)
    at input/decoder.c:1818
#4  0x6a55a1b7 in DecoderThread (p_this=0x1f350968) at input/decoder.c:884
#5  0x6a58aa2f in thread_entry (data=0x19cdae18) at misc/threads.c:960
#6  0x6a58a717 in vlc_entry (data=0x1f2dd160) at misc/threads.c:647
#7  0x76432cce in wcstombs_s () from C:\Windows\syswow64\msvcrt.dll
#8  0x76432deb in msvcrt!_beginthreadex () from 
C:\Windows\syswow64\msvcrt.dll
#9  0x771ee3f3 in UnhandledExceptionFilter ()
   from C:\Windows\syswow64\kernel32.dll
#10 0x1f352b50 in ?? ()
#11 0x13f0ffd4 in ?? ()
#12 0x7768cfed in ntdll!RtlWalkFrameChain ()
   from C:\Windows\system32\ntdll.dll
#13 0x1f352b50 in ?? ()
#14 0x7dc6303b in ?? ()
#15 0x00000000 in ?? ()

------------------------------------------------------------------------

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 11060.0x3054]
0x090cf64a in InteractionDialog::update (this=0xbaadf00d)
    at dialogs/interaction.cpp:198
        in dialogs/interaction.cpp
Current language:  auto; currently c++
(gdb) Error: dll starting at 0x77340000 not found.
Error: dll starting at 0x77160000 not found.
Error: dll starting at 0x77340000 not found.
Error: dll starting at 0x77270000 not found.
Error: dll starting at 0x13000000 not found.
warning: Lowest section in C:\Windows\syswow64\normaliz.dll is .text at 
00401000
BFD: C:\Windows\SysWOW64\SLC.dll: Warning: Ignoring section flag 
IMAGE_SCN_MEM_NOT_PAGED in section .reloc
BFD: C:\Windows\SysWOW64\SLC.dll: Warning: Ignoring section flag 
IMAGE_SCN_MEM_NOT_PAGED in section .reloc
Error: dll starting at 0x15a10000 not found.
Error: dll starting at 0x15780000 not found.
Error: dll starting at 0x14710000 not found.
BFD: C:\Windows\SysWOW64\WMVCORE.DLL: Warning: Ignoring section flag 
IMAGE_SCN_MEM_NOT_PAGED in section .reloc
BFD: C:\Windows\SysWOW64\WMVCORE.DLL: Warning: Ignoring section flag 
IMAGE_SCN_MEM_NOT_PAGED in section .reloc
Error: dll starting at 0x5a500000 not found.
Error: dll starting at 0x159f0000 not found.
198     dialogs/interaction.cpp: No such file or directory.
bt
#0  0x090cf64a in InteractionDialog::update (this=0xbaadf00d)
    at dialogs/interaction.cpp:198
#1  0x090ad826 in DialogsProvider::doInteraction (this=0xd1acbe0,
    p_arg=0x21909588) at dialogs_provider.cpp:699
#2  0x09683462 in QObject::event ()
    at /include/qt4/QtCore/../src/corelib/kernel/qabstractitemmodel.h:61
#3  0x091bd29c in QApplicationPrivate::notify_helper ()
    at /include/qt4/QtCore/../src/corelib/kernel/qabstractitemmodel.h:61
#4  0x091bd3bc in QApplication::notify ()
    at /include/qt4/QtCore/../src/corelib/kernel/qabstractitemmodel.h:61
#5  0x0968851c in QCoreApplication::notifyInternal ()
    at /include/qt4/QtCore/../src/corelib/kernel/qabstractitemmodel.h:61
#6  0x0d1acbe0 in ?? ()
#7  0x2287ccc8 in ?? ()
#8  0x103add68 in ?? ()
#9  0xa24cfd47 in ?? ()
#10 0x22c4f8e8 in ?? ()
#11 0x103ad82c in ?? ()
#12 0x00ffffff in ?? ()
#13 0x00000000 in ?? ()

------------------------------------------------------------------------

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 11372.0x2a00]
0x77170e38 in KERNEL32!CreateJobObjectA ()
   from C:\Windows\syswow64\kernel32.dll
(gdb) Error: dll starting at 0x77340000 not found.
Error: dll starting at 0x77160000 not found.
Error: dll starting at 0x77340000 not found.
Error: dll starting at 0x77270000 not found.
bt
#0  0x77170e38 in KERNEL32!CreateJobObjectA ()
   from C:\Windows\syswow64\kernel32.dll
#1  0x6a58a5b6 in vlc_mutex_lock (p_mutex=0xababab57) at misc/threads.c:370
#2  0x08fbfa6e in InteractionDialog::Finish (this=0x17d6d660, i_ret=1)
    at dialogs/interaction.cpp:243
#3  0x08fc0ec7 in InteractionDialog::InteractionDialog (this=0x17d6d660,
    _p_intf=0xcf3dd50, _p_dialog=0x17548760) at dialogs/interaction.cpp:154
#4  0x08f9d72e in DialogsProvider::doInteraction (this=0xd01d2e8,
    p_arg=0x17df8680) at dialogs_provider.cpp:681
#5  0x09573462 in QObject::event ()
    at /include/qt4/QtCore/../src/corelib/kernel/qabstractitemmodel.h:61
#6  0x090ad29c in QApplicationPrivate::notify_helper ()
    at /include/qt4/QtCore/../src/corelib/kernel/qabstractitemmodel.h:61
#7  0x090ad3bc in QApplication::notify ()
    at /include/qt4/QtCore/../src/corelib/kernel/qabstractitemmodel.h:61
#8  0x0957851c in QCoreApplication::notifyInternal ()
    at /include/qt4/QtCore/../src/corelib/kernel/qabstractitemmodel.h:61
#9  0x0d01d2e8 in ?? ()
#10 0x17b02d88 in ?? ()
#11 0x1027dd68 in ?? ()
#12 0x3ee6fbb8 in ?? ()
#13 0x12b9ed68 in ?? ()
#14 0x10d2feb8 in ?? ()
#15 0x00ffffff in ?? ()
#16 0x00000000 in ?? ()

------------------------------------------------------------------------

THE END

Regards.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090304/5c891b78/attachment.html>


More information about the vlc-devel mailing list