[Bug 697236] v4l2src: SEGFAULT when changing state of uvch264src pipeline

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Apr 16 20:29:32 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=697236
  GStreamer | gst-plugins-good | git

--- Comment #12 from Tristan Matthews <le.businessman at gmail.com> 2013-04-17 03:29:20 UTC ---
And the backtrace:

Thread 17 (Thread 0xb30feb40 (LWP 19023)):
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb77f196b in pthread_cond_wait@@GLIBC_2.3.2 ()
    at
../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0xb788b2a6 in g_cond_wait (cond=cond at entry=0x8366724,
mutex=mutex at entry=0x83666f4)
    at /build/buildd/glib2.0-2.34.1/./glib/gthread-posix.c:746
#3  0xb7f293e3 in gst_task_func (task=task at entry=0x83666e8) at gsttask.c:301
#4  0xb7f2a428 in default_func (tdata=0x82cc6b8, pool=0x8078a98) at
gsttaskpool.c:70
#5  0xb786fce8 in g_thread_pool_thread_proxy (data=0x809b3f0) at
/build/buildd/glib2.0-2.34.1/./glib/gthreadpool.c:309
#6  0xb786f303 in g_thread_proxy (data=0x82da430) at
/build/buildd/glib2.0-2.34.1/./glib/gthread.c:797
#7  0xb77edd4c in start_thread (arg=0xb30feb40) at pthread_create.c:308
#8  0xb772bd3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 16 (Thread 0xb28fdb40 (LWP 19022)):
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb77f196b in pthread_cond_wait@@GLIBC_2.3.2 ()
    at
../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0xb788b2a6 in g_cond_wait (cond=cond at entry=0x81ea374,
mutex=mutex at entry=0x81ea368)
    at /build/buildd/glib2.0-2.34.1/./glib/gthread-posix.c:746
#3  0xb613c964 in gst_queue_loop (pad=0x81d69c8) at gstqueue.c:1193
---Type <return> to continue, or q <return> to quit---
#4  0xb7f291e8 in gst_task_func (task=task at entry=0xb560f4a8) at gsttask.c:316
#5  0xb7f2a428 in default_func (tdata=0x8368e38, pool=0x8078a98) at
gsttaskpool.c:70
#6  0xb786fce8 in g_thread_pool_thread_proxy (data=0x809b3f0) at
/build/buildd/glib2.0-2.34.1/./glib/gthreadpool.c:309
#7  0xb786f303 in g_thread_proxy (data=0x82da460) at
/build/buildd/glib2.0-2.34.1/./glib/gthread.c:797
#8  0xb77edd4c in start_thread (arg=0xb28fdb40) at pthread_create.c:308
#9  0xb772bd3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 15 (Thread 0xb38ffb40 (LWP 19021)):
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb77f196b in pthread_cond_wait@@GLIBC_2.3.2 ()
    at
../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0xb788b2a6 in g_cond_wait (cond=cond at entry=0x81d8248,
mutex=mutex at entry=0x81d8254)
    at /build/buildd/glib2.0-2.34.1/./glib/gthread-posix.c:746
#3  0xb6167208 in gst_app_src_create (bsrc=0x81d8000, offset=0, size=4096,
buf=0xb38fefb4) at gstappsrc.c:1063
#4  0xb760be12 in gst_base_src_get_range (src=src at entry=0x81d8000, offset=0,
length=length at entry=4096, 
    buf=buf at entry=0xb38ff084) at gstbasesrc.c:2357
#5  0xb760e1ba in gst_base_src_loop (pad=0x81d6140) at gstbasesrc.c:2618
#6  0xb7f291e8 in gst_task_func (task=task at entry=0xb560f548) at gsttask.c:316
#7  0xb7f2a428 in default_func (tdata=0x831f590, pool=0x8078a98) at
gsttaskpool.c:70
#8  0xb786fce8 in g_thread_pool_thread_proxy (data=0x809b3f0) at
/build/buildd/glib2.0-2.34.1/./glib/gthreadpool.c:309
#9  0xb786f303 in g_thread_proxy (data=0x83b9a30) at
/build/buildd/glib2.0-2.34.1/./glib/gthread.c:797
---Type <return> to continue, or q <return> to quit---
#10 0xb77edd4c in start_thread (arg=0xb38ffb40) at pthread_create.c:308
#11 0xb772bd3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 14 (Thread 0xb5494b40 (LWP 19020)):
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb77f51f6 in nanosleep () at ../sysdeps/unix/syscall-template.S:82
#2  0xb7870c8e in g_usleep (microseconds=microseconds at entry=50000) at
/build/buildd/glib2.0-2.34.1/./glib/gtimer.c:259
#3  0xb610df24 in gst_xvimagesink_event_thread (xvimagesink=0x81f9a60) at
xvimagesink.c:582
#4  0xb786f303 in g_thread_proxy (data=0x83b9db0) at
/build/buildd/glib2.0-2.34.1/./glib/gthread.c:797
#5  0xb77edd4c in start_thread (arg=0xb5494b40) at pthread_create.c:308
#6  0xb772bd3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 13 (Thread 0xb4c93b40 (LWP 19019)):
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb77f51f6 in nanosleep () at ../sysdeps/unix/syscall-template.S:82
#2  0xb7870c8e in g_usleep (microseconds=microseconds at entry=50000) at
/build/buildd/glib2.0-2.34.1/./glib/gtimer.c:259
#3  0xb610df24 in gst_xvimagesink_event_thread (xvimagesink=0x81fb300) at
xvimagesink.c:582
#4  0xb786f303 in g_thread_proxy (data=0x83b9ef0) at
/build/buildd/glib2.0-2.34.1/./glib/gthread.c:797
#5  0xb77edd4c in start_thread (arg=0xb4c93b40) at pthread_create.c:308
#6  0xb772bd3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

---Type <return> to continue, or q <return> to quit---
Thread 6 (Thread 0xb42f7b40 (LWP 19007)):
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb77f196b in pthread_cond_wait@@GLIBC_2.3.2 ()
    at
../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0xb788b2a6 in g_cond_wait (cond=cond at entry=0xb3907584,
mutex=mutex at entry=0xb3907554)
    at /build/buildd/glib2.0-2.34.1/./glib/gthread-posix.c:746
#3  0xb7f293e3 in gst_task_func (task=task at entry=0xb3907548) at gsttask.c:301
#4  0xb7f2a428 in default_func (tdata=0x8315ab8, pool=0x8078a98) at
gsttaskpool.c:70
#5  0xb786fce8 in g_thread_pool_thread_proxy (data=0x829c8a8) at
/build/buildd/glib2.0-2.34.1/./glib/gthreadpool.c:309
#6  0xb786f303 in g_thread_proxy (data=0x8297f50) at
/build/buildd/glib2.0-2.34.1/./glib/gthread.c:797
#7  0xb77edd4c in start_thread (arg=0xb42f7b40) at pthread_create.c:308
#8  0xb772bd3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xb5fffb40 (LWP 19004)):
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb771d5f0 in __GI___poll (fds=fds at entry=0xb5602298, nfds=nfds at entry=3,
timeout=timeout at entry=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb785874b in g_poll (fds=0xb5602298, nfds=3, timeout=-1) at
/build/buildd/glib2.0-2.34.1/./glib/gpoll.c:132
#3  0xb7849d00 in g_main_context_poll (n_fds=3, fds=0xb5602298,
timeout=<optimized out>, context=0xb60094d8, 
    priority=<optimized out>) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:3584
#4  g_main_context_iterate (context=0xb60094d8, block=block at entry=1,
dispatch=dispatch at entry=1, self=<optimized out>)
---Type <return> to continue, or q <return> to quit---
    at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3285
#5  0xb784a1db in g_main_loop_run (loop=0xb60094a0) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:3484
#6  0xb7275b7a in gdbus_shared_thread_func (user_data=0xb60094c0) at
/build/buildd/glib2.0-2.34.1/./gio/gdbusprivate.c:277
#7  0xb786f303 in g_thread_proxy (data=0xb60041b0) at
/build/buildd/glib2.0-2.34.1/./glib/gthread.c:797
#8  0xb77edd4c in start_thread (arg=0xb5fffb40) at pthread_create.c:308
#9  0xb772bd3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb69e1b40 (LWP 19003)):
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb771d5f0 in __GI___poll (fds=fds at entry=0xb6000c78, nfds=nfds at entry=1,
timeout=timeout at entry=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb785874b in g_poll (fds=0xb6000c78, nfds=1, timeout=-1) at
/build/buildd/glib2.0-2.34.1/./glib/gpoll.c:132
#3  0xb7849d00 in g_main_context_poll (n_fds=1, fds=0xb6000c78,
timeout=<optimized out>, context=0x80abb30, 
    priority=<optimized out>) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:3584
#4  g_main_context_iterate (context=context at entry=0x80abb30,
block=block at entry=1, dispatch=dispatch at entry=1, 
    self=<optimized out>) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3285
#5  0xb7849e61 in g_main_context_iteration (context=0x80abb30, may_block=1)
    at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3351
#6  0xb6afd9e0 in ?? () from
/usr/lib/i386-linux-gnu/gio/modules/libdconfsettings.so
#7  0xb786f303 in g_thread_proxy (data=0x80a82c0) at
/build/buildd/glib2.0-2.34.1/./glib/gthread.c:797
#8  0xb77edd4c in start_thread (arg=0xb69e1b40) at pthread_create.c:308
---Type <return> to continue, or q <return> to quit---
#9  0xb772bd3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb6e4a840 (LWP 18999)):
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb766b1df in __GI_raise (sig=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0xb766e825 in __GI_abort () at abort.c:91
#3  0xb786d7e8 in g_assertion_message (domain=domain at entry=0x0,
file=file at entry=0xb4489952 "gstv4l2bufferpool.c", 
    line=line at entry=922, func=func at entry=0xb448a3c0 <__PRETTY_FUNCTION__.21932>
"gst_v4l2_buffer_pool_release_buffer", 
    message=0xb78974f4 "code should not be reached", message at entry=0x0)
    at /build/buildd/glib2.0-2.34.1/./glib/gtestutils.c:1877
#4  0xb4476fd6 in gst_v4l2_buffer_pool_release_buffer (bpool=0xb560b550,
buffer=0xb560f688) at gstv4l2bufferpool.c:922
#5  0xb7ec8b41 in gst_buffer_pool_release_buffer (pool=pool at entry=0xb560b550,
buffer=buffer at entry=0xb560f688)
    at gstbufferpool.c:1155
#6  0xb7ec2ce9 in _gst_buffer_dispose (buffer=0xb560f688) at gstbuffer.c:540
#7  0xb7ef21a4 in gst_mini_object_unref
(mini_object=mini_object at entry=0xb560f688) at gstminiobject.c:448
#8  0xb75fcea7 in gst_buffer_unref (buf=0xb560f688) at
../../../gst/gstbuffer.h:354
#9  gst_base_sink_set_last_buffer_unlocked (sink=0x81fb300, buffer=0x0) at
gstbasesink.c:954
#10 0xb75fcf8e in gst_base_sink_set_last_buffer (buffer=<optimized out>,
sink=<optimized out>) at gstbasesink.c:966
#11 gst_base_sink_set_last_buffer (sink=<optimized out>, buffer=<optimized
out>) at gstbasesink.c:960
#12 0xb75ffdb1 in gst_base_sink_change_state (element=0x81fb300,
transition=GST_STATE_CHANGE_PAUSED_TO_READY)
    at gstbasesink.c:4957
---Type <return> to continue, or q <return> to quit---
#13 0xb610dbea in gst_xvimagesink_change_state (element=0x81fb300,
transition=GST_STATE_CHANGE_PAUSED_TO_READY)
    at xvimagesink.c:856
#14 0xb7edf4ab in gst_element_change_state (element=element at entry=0x81fb300, 
    transition=transition at entry=GST_STATE_CHANGE_PAUSED_TO_READY) at
gstelement.c:2605
#15 0xb7edfeb8 in gst_element_set_state_func (element=0x81fb300,
state=GST_STATE_READY) at gstelement.c:2561
#16 0xb7edf1ef in gst_element_set_state (element=element at entry=0x81fb300,
state=state at entry=GST_STATE_READY)
    at gstelement.c:2462
#17 0xb7ec1d06 in gst_bin_element_set_state (next=GST_STATE_READY,
current=GST_STATE_PAUSED, start_time=7033289617, 
    base_time=141858959923781, element=0x81fb300, bin=0x81ee9c8) at
gstbin.c:2297
#18 gst_bin_change_state_func (element=0x81ee9c8,
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstbin.c:2599
#19 0xb7f01645 in gst_pipeline_change_state (element=0x81ee9c8,
transition=GST_STATE_CHANGE_PAUSED_TO_READY)
    at gstpipeline.c:471
#20 0xb7edf4ab in gst_element_change_state (element=element at entry=0x81ee9c8, 
    transition=transition at entry=GST_STATE_CHANGE_PAUSED_TO_READY) at
gstelement.c:2605
#21 0xb7edf998 in gst_element_continue_state (element=element at entry=0x81ee9c8,
ret=ret at entry=GST_STATE_CHANGE_NO_PREROLL)
    at gstelement.c:2315
#22 0xb7edf7a5 in gst_element_change_state (element=element at entry=0x81ee9c8, 
    transition=transition at entry=GST_STATE_CHANGE_PLAYING_TO_PAUSED) at
gstelement.c:2649
#23 0xb7edfeb8 in gst_element_set_state_func (element=0x81ee9c8,
state=GST_STATE_READY) at gstelement.c:2561
#24 0xb7edf1ef in gst_element_set_state (element=0x81ee9c8,
state=state at entry=GST_STATE_READY) at gstelement.c:2462
#25 0x0804acf4 in on_button_ready_clicked (button=0x8201890,
user_data=0xbfffcdc8) at test-uvch264.c:267
---Type <return> to continue, or q <return> to quit---
#26 0xb790e5f7 in g_cclosure_marshal_VOID__VOIDv
(closure=closure at entry=0x82012d8, return_value=return_value at entry=0x0, 
    instance=instance at entry=0x8201890, args=args at entry=0xbfffc2fc "v1\223\267",
marshal_data=marshal_data at entry=0x0, 
    n_params=n_params at entry=0, param_types=param_types at entry=0x0) at
/build/buildd/glib2.0-2.34.1/./gobject/gmarshal.c:115
#27 0xb790cad1 in _g_closure_invoke_va (closure=0x82012d8,
return_value=return_value at entry=0x0, 
    instance=instance at entry=0x8201890, args=args at entry=0xbfffc2fc "v1\223\267",
n_params=0, param_types=0x0)
    at /build/buildd/glib2.0-2.34.1/./gobject/gclosure.c:840
#28 0xb7925e77 in g_signal_emit_valist (instance=instance at entry=0x8201890,
signal_id=signal_id at entry=105, 
    detail=detail at entry=0, var_args=var_args at entry=0xbfffc2fc "v1\223\267")
    at /build/buildd/glib2.0-2.34.1/./gobject/gsignal.c:3211
#29 0xb79268b3 in g_signal_emit (instance=0x8201890, signal_id=105, detail=0)
    at /build/buildd/glib2.0-2.34.1/./gobject/gsignal.c:3356
#30 0xb7a7626a in gtk_button_clicked () from
/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#31 0xb7a77670 in ?? () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#32 0xb790e58f in g_cclosure_marshal_VOID__VOID (closure=0x809cf60,
return_value=0x0, n_param_values=1, 
    param_values=0xbfffc500, invocation_hint=0xbfffc4ac,
marshal_data=0xb7a77630)
    at /build/buildd/glib2.0-2.34.1/./gobject/gmarshal.c:85
#33 0xb790b6bd in g_type_class_meta_marshal (closure=closure at entry=0x809cf60,
return_value=return_value at entry=0x0, 
    n_param_values=n_param_values at entry=1,
param_values=param_values at entry=0xbfffc500, 
    invocation_hint=invocation_hint at entry=0xbfffc4ac,
marshal_data=marshal_data at entry=0x1a4)
    at /build/buildd/glib2.0-2.34.1/./gobject/gclosure.c:970
#34 0xb790c826 in g_closure_invoke (closure=closure at entry=0x809cf60,
return_value=return_value at entry=0x0, 
---Type <return> to continue, or q <return> to quit---
    n_param_values=1, param_values=param_values at entry=0xbfffc500,
invocation_hint=invocation_hint at entry=0xbfffc4ac)
    at /build/buildd/glib2.0-2.34.1/./gobject/gclosure.c:777
#35 0xb791dfaf in signal_emit_unlocked_R (node=node at entry=0x809cf90,
detail=detail at entry=0, 
    instance=instance at entry=0x8201890,
emission_return=emission_return at entry=0x0, 
    instance_and_params=instance_and_params at entry=0xbfffc500) at
/build/buildd/glib2.0-2.34.1/./gobject/gsignal.c:3481
#36 0xb7926732 in g_signal_emit_valist (instance=instance at entry=0x8201890,
signal_id=signal_id at entry=104, 
    detail=detail at entry=0, var_args=var_args at entry=0xbfffc6ec "v1\223\267")
    at /build/buildd/glib2.0-2.34.1/./gobject/gsignal.c:3300
#37 0xb79268b3 in g_signal_emit (instance=0x8201890, signal_id=104, detail=0)
    at /build/buildd/glib2.0-2.34.1/./gobject/gsignal.c:3356
#38 0xb7a7618a in gtk_button_released () from
/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#39 0xb7a761d4 in ?? () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#40 0xb7b35182 in ?? () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#41 0xb790b6bd in g_type_class_meta_marshal (closure=closure at entry=0x8080138,
return_value=return_value at entry=0xbfffc890, 
    n_param_values=n_param_values at entry=2,
param_values=param_values at entry=0xbfffc900, 
    invocation_hint=invocation_hint at entry=0xbfffc8ac,
marshal_data=marshal_data at entry=0xb4)
    at /build/buildd/glib2.0-2.34.1/./gobject/gclosure.c:970
#42 0xb790c826 in g_closure_invoke (closure=closure at entry=0x8080138,
return_value=return_value at entry=0xbfffc890, 
    n_param_values=2, param_values=param_values at entry=0xbfffc900,
invocation_hint=invocation_hint at entry=0xbfffc8ac)
    at /build/buildd/glib2.0-2.34.1/./gobject/gclosure.c:777
#43 0xb791e43a in signal_emit_unlocked_R (node=node at entry=0x807ff90,
detail=detail at entry=0, 
---Type <return> to continue, or q <return> to quit---
    instance=instance at entry=0x8201890,
emission_return=emission_return at entry=0xbfffc9bc, 
    instance_and_params=instance_and_params at entry=0xbfffc900) at
/build/buildd/glib2.0-2.34.1/./gobject/gsignal.c:3589
#44 0xb7926473 in g_signal_emit_valist (instance=instance at entry=0x8201890,
signal_id=signal_id at entry=34, 
    detail=detail at entry=0, var_args=0xbfffcb00 ",\313\377\277\220\363\063\b", 
    var_args at entry=0xbfffcafc "\220\363\063\b,\313\377\277\220\363\063\b")
    at /build/buildd/glib2.0-2.34.1/./gobject/gsignal.c:3310
#45 0xb79268b3 in g_signal_emit (instance=0x8201890, signal_id=34, detail=0)
    at /build/buildd/glib2.0-2.34.1/./gobject/gsignal.c:3356
#46 0xb7c6d93b in ?? () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#47 0xb7b33294 in gtk_propagate_event () from
/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#48 0xb7b33628 in gtk_main_do_event () from
/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#49 0xb79a6be8 in ?? () from /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0
#50 0xb78499e3 in g_main_dispatch (context=0x807bbe0) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:2715
#51 g_main_context_dispatch (context=context at entry=0x807bbe0) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:3219
#52 0xb7849d80 in g_main_context_iterate (context=0x807bbe0,
block=block at entry=1, dispatch=dispatch at entry=1, 
    self=<optimized out>) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3290
#53 0xb784a1db in g_main_loop_run (loop=0x8221e70) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:3484
#54 0xb7b323a0 in gtk_main () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#55 0x08049ed8 in main (argc=2, argv=0xbfffce94) at test-uvch264.c:657

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list