[vlc-devel] test_libvlc_media_list_player deadlocks

Rafaël Carré rafael.carre at gmail.com
Wed Aug 19 01:40:23 CEST 2009


On Wed, 19 Aug 2009 01:08:14 +0200
buildbot at videolan.org wrote:

> The Buildbot has detected a new failure of I386-Sid-Trunk on VLC
> media player. Full details are available at:
>  http://buildbot.videolan.org/builders/I386-Sid-Trunk/builds/1748

> BUILD FAILED: failed Check (Test suite)

reproduce with

[fun at kru /media/bordel/build-vlc/test]% while [ $? = 0 ];do ./test_libvlc_media_list_player;done

(gdb) thread apply all bt full

Thread 4 (Thread 0x7fd243d56910 (LWP 23541)):
#0  0x00007fd242d7f5a9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00007fd2436f8fa9 in vlc_cond_wait (p_condvar=0x1baf99c,
p_mutex=0x80) at ../../vlc/src/misc/pthread.c:343
        val = <value optimized out>
        __func__ = "vlc_cond_wait"
#2  0x00007fd24367e687 in LoopRequest (data=<value optimized out>)
    at ../../vlc/src/playlist/thread.c:558
        i_status = -512
        p_item = <value optimized out>
#3  Thread (data=<value optimized out>)
at ../../vlc/src/playlist/thread.c:605 p_playlist = 0x1baf828
#4  0x00007fd242d7aa04 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5  0x00007fd24265c5fd in clone () from /lib/libc.so.6
No symbol table info available.
#6  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 3 (Thread 0x7fd241072910 (LWP 23542)):
---Type <return> to continue, or q <return> to quit---
#0  0x00007fd242f941a4 in clock_nanosleep () from /lib/librt.so.1
No symbol table info available.
#1  0x00007fd2436d8034 in mwait (date=<value optimized out>)
    at ../../vlc/src/misc/mtime.c:363
        d = {quot = 22699, rem = 511417}
        ts = {tv_sec = 22699, tv_nsec = 511417000}
        val = <value optimized out>
#2  0x00007fd2436f93b6 in vlc_timer_thread (data=<value optimized out>)
    at ../../vlc/src/misc/pthread.c:725
        th = 0
        timer = 0x1ba9fc0
        value = 22699511417
        interval = 30000000
#3  0x00007fd242d7aa04 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4  0x00007fd24265c5fd in clone () from /lib/libc.so.6
No symbol table info available.
#5  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 2 (Thread 0x7fd23af80910 (LWP 23544)):
#0  0x00007fd242d81c34 in __lll_lock_wait () from /lib/libpthread.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#1  0x00007fd242d7d295 in _L_lock_949 () from /lib/libpthread.so.0
No symbol table info available.
#2  0x00007fd242d7d0b8 in pthread_mutex_lock ()
from /lib/libpthread.so.0 No symbol table info available.
#3  0x00007fd2436f8d19 in vlc_mutex_lock (p_mutex=0x1baa798)
    at ../../vlc/src/misc/pthread.c:216
        val = <value optimized out>
        __func__ = "vlc_mutex_lock"
#4  0x00007fd243952235 in libvlc_media_list_player_stop
(p_mlp=0x1baa780, p_e=0x80)
at ../../vlc/src/control/media_list_player.c:505 No locals.
#5  0x00007fd243952af5 in libvlc_media_list_player_next
(p_mlp=0x1baa780, p_e=0x7fd23af80000)
at ../../vlc/src/control/media_list_player.c:547 path = 0x1bbd1f0
        event = {type = 28980224, p_obj = 0x7fd243b715d5, u = {
            media_meta_changed = {meta_type = libvlc_meta_Album}, 
            media_subitem_added = {new_child = 0x4},
media_duration_changed = { new_duration = 4}, media_preparsed_changed =
{new_status = 4}, media_freed = {md = 0x4}, media_state_changed = {
              new_state = libvlc_Paused}, media_player_position_changed
= { new_position = 5.60519386e-45}, media_player_time_changed = {
              new_time = 4}, media_player_title_changed = {new_title =
4}, media_player_seekable_changed = {new_seekable = 4}, 
---Type <return> to continue, or q <return> to quit---
            media_player_pausable_changed = {new_pausable = 4}, 
            media_list_item_added = {item = 0x4, index = 1121459637}, 
            media_list_will_add_item = {item = 0x4, index =
1121459637}, media_list_item_deleted = {item = 0x4, index =
1121459637}, media_list_will_delete_item = {item = 0x4, index =
1121459637}, media_list_view_item_added = {item = 0x4, index =
1121459637}, media_list_view_will_add_item = {item = 0x4, index =
1121459637}, media_list_view_item_deleted = {item = 0x4, index =
1121459637}, media_list_view_will_delete_item = {item = 0x4, 
              index = 1121459637}, media_player_snapshot_taken = {
              psz_filename = 0x4 <Address 0x4 out of bounds>}, 
            media_player_length_changed = {new_length = 4},
vlm_media_event = { psz_media_name = 0x4 <Address 0x4 out of bounds>, 
              psz_instance_name = 0x7fd242d81db5 "Z^\303\17\37\204"}}}
#6  0x00007fd243952f3b in media_player_reached_end (
    p_event=<value optimized out>, p_user_data=0x1baa780)
    at ../../vlc/src/control/media_list_player.c:146
        p_md = 0x1ba3400
        p_current_md = 0x1ba3400
        e = {b_raised = 1}
#7  0x00007fd24394e081 in event_async_loop (arg=<value optimized out>)
    at ../../vlc/src/control/event_async.c:278
        p_em = 0x19be280
---Type <return> to continue, or q <return> to quit---
        event = {type = 14, p_obj = 0x1baa8b0, u = {media_meta_changed
= { meta_type = libvlc_meta_Title}, media_subitem_added = {
              new_child = 0x0}, media_duration_changed = {new_duration
= 0}, media_preparsed_changed = {new_status = 0}, media_freed = {
              md = 0x0}, media_state_changed = {
              new_state = libvlc_NothingSpecial}, 
            media_player_position_changed = {new_position = 0}, 
            media_player_time_changed = {new_time = 0}, 
            media_player_title_changed = {new_title = 0}, 
            media_player_seekable_changed = {new_seekable = 0}, 
            media_player_pausable_changed = {new_pausable = 0}, 
            media_list_item_added = {item = 0x0, index = 1131340646}, 
            media_list_will_add_item = {item = 0x0, index =
1131340646}, media_list_item_deleted = {item = 0x0, index =
1131340646}, media_list_will_delete_item = {item = 0x0, index =
1131340646}, media_list_view_item_added = {item = 0x0, index =
1131340646}, media_list_view_will_add_item = {item = 0x0, index =
1131340646}, media_list_view_item_deleted = {item = 0x0, index =
1131340646}, media_list_view_will_delete_item = {item = 0x0, 
              index = 1131340646}, media_player_snapshot_taken = {
              psz_filename = 0x0}, media_player_length_changed = {
              new_length = 0}, vlm_media_event = {psz_media_name = 0x0, 
              psz_instance_name = 0x7fd2436ee366
"\205\300u\336H\203\304\20I)\33---Type <return> to continue, or q
<return> to quit--- 5[]I\301\375\4A\\Aiţ\213.\272A]A^\303\17\37"}}} #8
0x00007fd242d7aa04 in start_thread () from /lib/libpthread.so.0 No
symbol table info available. #9  0x00007fd24265c5fd in clone ()
from /lib/libc.so.6 No symbol table info available.
#10 0x0000000000000000 in ?? ()
No symbol table info available.

Thread 1 (Thread 0x7fd243d576f0 (LWP 23540)):
#0  0x00007fd242d7f5a9 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
No symbol table info available.
#1  0x00007fd2436f8fa9 in vlc_cond_wait (p_condvar=0x1bbd2a4,
p_mutex=0x80) at ../../vlc/src/misc/pthread.c:343
        val = <value optimized out>
        __func__ = "vlc_cond_wait"
#2  0x00007fd24394dea5 in libvlc_event_async_ensure_listener_removal (
    p_em=0x19be280, listener=0x7fff148ebe50)
    at ../../vlc/src/control/event_async.c:233
No locals.
#3  0x00007fd24394cde9 in libvlc_event_detach
(p_event_manager=0x19be280, event_type=14, pf_callback=0x7fd243952e90
<media_player_reached_end>, p_user_data=0x1baa780, p_e=<value optimized
out>) ---Type <return> to continue, or q <return> to quit---
    at ../../vlc/src/control/event.c:434
        listeners_group = <value optimized out>
        listener = <value optimized out>
        i = 17
        j = <value optimized out>
        found = <value optimized out>
        listener_to_remove = {event_type = 14, p_user_data = 0x1baa780, 
          pf_callback = 0x7fd243952e90 <media_player_reached_end>, 
          is_asynchronous = true}
#4  0x00007fd243952244 in libvlc_media_list_player_stop
(p_mlp=0x1baa780, p_e=0x602138)
at ../../vlc/src/control/media_list_player.c:510 No locals.
#5  0x0000000000401168 in test_media_list_player_pause_stop (
    argc=<value optimized out>, argv=<value optimized out>)
    at ../../vlc/test/libvlc/media_list_player.c:142
        vlc = 0x19beed0
        md = 0x1ba3400
        ml = 0x1baa630
        mlp = 0x1baa780
#6  0x0000000000401219 in main ()
    at ../../vlc/test/libvlc/media_list_player.c:206
No locals.
(gdb) 


-- 
Rafaël Carré
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090819/4bb7a5e1/attachment.sig>


More information about the vlc-devel mailing list