[Bug 773546] double free or corruption when running parallel vaapi encoders in a loop

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 28 13:56:24 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=773546

--- Comment #17 from Florent ThiƩry <florent.thiery at ubicast.eu> ---
(gdb) bt
#0  0x00007ffff66a904f in raise () at /usr/lib/libc.so.6
#1  0x00007ffff66aa47a in abort () at /usr/lib/libc.so.6
#2  0x00007ffff66e6c50 in __libc_message () at /usr/lib/libc.so.6
#3  0x00007ffff66ecfe6 in malloc_printerr () at /usr/lib/libc.so.6
#4  0x00007ffff66ed7de in _int_free () at /usr/lib/libc.so.6
#5  0x00007ffff66eff58 in _int_realloc () at /usr/lib/libc.so.6
#6  0x00007ffff66f14f9 in realloc () at /usr/lib/libc.so.6
#7  0x00007ffff708cc58 in g_realloc () at /usr/lib/libglib-2.0.so.0
#8  0x00007ffff705a869 in  () at /usr/lib/libglib-2.0.so.0
#9  0x00007ffff705abe8 in g_array_append_vals () at /usr/lib/libglib-2.0.so.0
#10 0x00007ffff4cf75b0 in ensure_profiles (display=display at entry=0x61ce40) at
gstvaapidisplay.c:565
#11 0x00007ffff4cf8aa8 in ensure_profiles (display=0x61ce40) at
gstvaapidisplay.c:1515
#12 0x00007ffff4cf8aa8 in gst_vaapi_display_get_encode_profiles
(display=0x61ce40) at gstvaapidisplay.c:1513
#13 0x00007ffff4d0d189 in get_compatible_profile (encoder=0x7fffdc003800) at
gstvaapiencoder.c:482
#14 0x00007ffff4d0d189 in get_profile (encoder=encoder at entry=0x7fffdc003800) at
gstvaapiencoder.c:504
#15 0x00007ffff4d0d189 in get_config_attribute
(encoder=encoder at entry=0x7fffdc003800,
type=type at entry=VAConfigAttribRateControl,
out_value_ptr=out_value_ptr at entry=0x7fffed12e9dc) at gstvaapiencoder.c:517
#16 0x00007ffff4d0defd in get_rate_control_mask (encoder=0x7fffdc003800) at
gstvaapiencoder.c:849
#17 0x00007ffff4d0defd in gst_vaapi_encoder_set_rate_control
(encoder=0x7fffdc003800, rate_control=GST_VAAPI_RATECONTROL_CQP) at
gstvaapiencoder.c:893
#18 0x00007ffff4d0e407 in set_property (value=<optimized out>, prop_id=1,
encoder=0x7fffdc003800) at gstvaapiencoder.c:779
#19 0x00007ffff4d0e407 in gst_vaapi_encoder_set_property
(encoder=encoder at entry=0x7fffdc003800, prop_id=1, value=<optimized out>,
value at entry=0x0) at gstvaapiencoder.c:824
#20 0x00007ffff4d0e63e in gst_vaapi_encoder_init_properties
(encoder=0x7fffdc003800) at gstvaapiencoder.c:1033
#21 0x00007ffff4d0e63e in gst_vaapi_encoder_init (display=<optimized out>,
encoder=0x7fffdc003800) at gstvaapiencoder.c:1080
#22 0x00007ffff4d0e63e in gst_vaapi_encoder_new (klass=<optimized out>,
display=<optimized out>) at gstvaapiencoder.c:1131
#23 0x00007ffff4ce1643 in ensure_encoder (encode=encode at entry=0x85dde0) at
gstvaapiencode.c:407
#24 0x00007ffff4ce1d7f in gst_vaapiencode_set_format (venc=0x85dde0,
state=0x836a80) at gstvaapiencode.c:476
#25 0x00007ffff58e6356 in gst_video_encoder_setcaps (caps=0x8315e0,
encoder=0x85dde0) at gstvideoencoder.c:611
#26 0x00007ffff58e6356 in gst_video_encoder_sink_event_default
(encoder=0x85dde0, event=0x7fffd0005090) at gstvideoencoder.c:963
#27 0x00007ffff4ce1097 in gst_vaapiencode_sink_event (venc=0x85dde0,
event=0x7fffd0005090) at gstvaapiencode.c:626
#28 0x00007ffff7b1a357 in gst_pad_send_event_unchecked (pad=pad at entry=0x7f2dd0,
event=event at entry=0x7fffd0005090, type=<optimized out>,
type at entry=GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) at gstpad.c:5608
#29 0x00007ffff7b1a7ee in gst_pad_push_event_unchecked (pad=pad at entry=0x7f2b90,
event=0x7fffd0005090, type=type at entry=GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) at
gstpad.c:5264
#30 0x00007ffff7b1abf0 in push_sticky (pad=pad at entry=0x7f2b90,
ev=ev at entry=0x7fffed12ed90, user_data=user_data at entry=0x7fffed12edf0) at
gstpad.c:3807
#31 0x00007ffff7b188e7 in events_foreach (pad=pad at entry=0x7f2b90,
func=func at entry=0x7ffff7b1aaa0 <push_sticky>,
user_data=user_data at entry=0x7fffed12edf0) at gstpad.c:603
#32 0x00007ffff7b24941 in check_sticky (event=0x7fffd0005090, pad=0x7f2b90) at
gstpad.c:3864
#33 0x00007ffff7b24941 in gst_pad_push_event (pad=0x7f2b90,
event=event at entry=0x7fffd0005090) at gstpad.c:5395
#34 0x00007ffff5fcc0d7 in gst_queue_push_one (queue=0x8380a0) at
gstqueue.c:1429
#35 0x00007ffff5fcc0d7 in gst_queue_loop (pad=<optimized out>) at
gstqueue.c:1506
#36 0x00007ffff7b4e511 in gst_task_func (task=0x7fc5f0) at gsttask.c:334
#37 0x00007ffff70aface in  () at /usr/lib/libglib-2.0.so.0
#38 0x00007ffff70af0d5 in  () at /usr/lib/libglib-2.0.so.0
#39 0x00007ffff6a1b454 in start_thread () at /usr/lib/libpthread.so.0
#40 0x00007ffff675e7df in clone () at /usr/lib/libc.so.6

-- 
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