Sometimes segmentation fault while playing video on aarch64
===== Os && Arch =====
Ubuntu bionic aarch64
===== Version =====
1.14.1
===== Call trace =====
#0 0x0000ffffbf1684d8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x0000ffffbf1698b4 in __GI_abort () at abort.c:79
#2 0x0000ffffbf1a265c in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0xffffbf263b88 "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3 0x0000ffffbf1a89c4 in malloc_printerr (str=str@entry=0xffffbf25fdb8 "realloc(): invalid next size") at malloc.c:5350
#4 0x0000ffffbf1acbc4 in _int_realloc (av=av@entry=0xffffb0000020, oldp=oldp@entry=0xffffb008cea0, oldsize=oldsize@entry=32, nb=nb@entry=48) at malloc.c:4534
#5 0x0000ffffbf1adc48 in __GI___libc_realloc (oldmem=0xffffb008ceb0, bytes=34) at malloc.c:3230
#6 0x0000ffffbf2e45c4 in g_realloc () at /usr/lib/aarch64-linux-gnu/libglib-2.0.so.0
#7 0x0000ffffbf4e2ad0 in __gst_vasnprintf (resultbuf=resultbuf@entry=0x0, lengthp=lengthp@entry=0xffffbe47f3b0, format=<optimized out>, args=Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x22:
#8 0x0000ffffbf4e2df4 in __gst_vasprintf (result=result@entry=0xffffbe47f588, format=<optimized out>, args=Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x0:
#9 0x0000ffffbf46b230 in gst_debug_message_get (message=0xffffbe47f588) at gstinfo.c:585
#10 0x0000ffffbf46c484 in gst_debug_log_default (category=0xffffb0036d80, level=GST_LEVEL_INFO, file=0xffffbd156c10 "gstglcontext.c", function=0xffffb00452d0 "x\204\022\275\377\377", line=1046, object=0xffffb0097070, message=<optimized out>, user_data=<optimized 1
#11 0x0000ffffbf46b8f8 in gst_debug_log_valist (category=0xffffb0036d80, level=level@entry=GST_LEVEL_INFO, file=file@entry=0xffffbd156c10 "gstglcontext.c", function=function@entry=0xffffbd156928 <__PRETTY_FUNCTION__.32971> "gst_gl_context_create", line=line@entry
#12 0x0000ffffbf46ba6c in gst_debug_log (category=<optimized out>, level=level@entry=GST_LEVEL_INFO, file=file@entry=0xffffbd156c10 "gstglcontext.c", function=function@entry=0xffffbd156928 <__PRETTY_FUNCTION__.32971> "gst_gl_context_create", line=line@entry=1046,5
#13 0x0000ffffbd1276a4 in gst_gl_context_create (context=0xffffb0097070, other_context=other_context@entry=0x0, error=error@entry=0xffffbe47f7c0) at gstglcontext.c:1046
#14 0x0000ffffbd1255dc in gst_gl_display_create_context (display=0xffffb8030be0, other_context=other_context@entry=0x0, p_context=p_context@entry=0xffffb008a478, error=error@entry=0xffffbe47f7c0) at gstgldisplay.c:536
#15 0x0000ffffbd18d038 in _ensure_gl_setup (gl_sink=gl_sink@entry=0xffffb008a030) at gstglimagesink.c:949
#16 0x0000ffffbd18e124 in gst_glimage_sink_change_state (element=0xffffb008a030, transition=GST_STATE_CHANGE_NULL_TO_READY) at gstglimagesink.c:1158
#17 0x0000ffffbf45edb0 in gst_element_change_state (element=element@entry=0xffffb008a030, transition=transition@entry=GST_STATE_CHANGE_NULL_TO_READY) at gstelement.c:2952
#18 0x0000ffffbf45f504 in gst_element_set_state_func (element=0xffffb008a030, state=<optimized out>) at gstelement.c:2906
#19 0x0000ffffbf4389f4 in gst_bin_element_set_state (next=GST_STATE_READY, current=1074791425, start_time=281473874131840, base_time=281473884318672, element=0xffffb008a030, bin=0xffffb006a020) at gstbin.c:2602
#20 0x0000ffffbf4389f4 in gst_bin_change_state_func (element=0xffffb006a020, transition=3209850880) at gstbin.c:2944
#21 0x0000ffffbf45edb0 in gst_element_change_state (element=element@entry=0xffffb006a020, transition=transition@entry=GST_STATE_CHANGE_NULL_TO_READY) at gstelement.c:2952
#22 0x0000ffffbf45f504 in gst_element_set_state_func (element=0xffffb006a020, state=<optimized out>) at gstelement.c:2906
#23 0x0000ffffbee36bd0 in activate_sink (playbin=0xaaaaaad09f00, sink=0xffffb006a020, activated=0x0) at gstplaybin2.c:4427
#24 0x0000ffffbee377e4 in autoplug_select_cb (decodebin=<optimized out>, pad=<optimized out>, caps=<optimized out>, factory=0xaaaaaabf5b10, group=0xaaaaaad0a388) at gstplaybin2.c:4658
#25 0x0000ffffbeef6d28 in ffi_call_SYSV () at /usr/lib/aarch64-linux-gnu/libffi.so.6
#26 0x0000ffffbeef7698 in ffi_call () at /usr/lib/aarch64-linux-gnu/libffi.so.6
#27 0x0000ffffbf3b01d0 in g_cclosure_marshal_generic () at /usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0
#28 0x0000ffffbf3af8a8 in g_closure_invoke () at /usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0
(gdb) info thread
Id Target Id Frame
1 Thread 0xffffbf6f50a0 (LWP 3845) "gst-play-1.0" syscall () at ../sysdeps/unix/sysv/linux/aarch64/syscall.S:38
2 Thread 0xffffbed8d1f0 (LWP 3846) "typefind:sink" syscall () at ../sysdeps/unix/sysv/linux/aarch64/syscall.S:38
* 3 Thread 0xffffbe4841f0 (LWP 3847) "qtdemux0:sink" __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
4 Thread 0xffffbdc831f0 (LWP 3848) "multiqueue0:src" syscall () at ../sysdeps/unix/sysv/linux/aarch64/syscall.S:38
5 Thread 0xffffbcd721f0 (LWP 3849) "gldisplay-event" 0x0000ffffbf1fd048 in __GI___poll (fds=0xffffa80013e0, nfds=281473889202608, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:41
7 Thread 0xffffaf7fe1f0 (LWP 3851) "gldisplay-event" 0x0000ffffbf1fd048 in __GI___poll (fds=0xffff9c0013e0, nfds=281473889202608, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:41
8 Thread 0xffffae7be1f0 (LWP 3852) "gstglcontext" ioctl () at ../sysdeps/unix/sysv/linux/aarch64/ioctl.S:25
9 Thread 0xffffadfbd1f0 (LWP 3853) "gstglcontext" ioctl () at ../sysdeps/unix/sysv/linux/aarch64/ioctl.S:25
Looks like the segment fault is caused by print message in gstinfo.c.
BTW, I have tried manual compile 1.15.2 ver(unstable) and not able to reproduce that issue.
Anyway, do we have plan or already released package patch to fixing that issue for ubuntu bionic?