Dear colleagues,
I had to track this issue by building Kodi 18.8 with address sanitizer (asan)
and it appears that the root cause is very likely a data race
introduced by libsrt_gnutls.so.1, which in turn became an ffmpeg dependency
since 4.3.0:
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007f5392767537 in __GI_abort () at abort.c:79
#2 0x00007f53927c0828 in __libc_message (action=action@entry=do_abort,
fmt=fmt@entry=0x7f53928cee31 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3 0x00007f53927c7b1a in malloc_printerr (str=str@entry=0x7f53928cd041
"corrupted double-linked list") at malloc.c:5347
#4 0x00007f53927c884c in unlink_chunk (p=p@entry=0x557cb9422af0,
av=0x7f5392900b80 <main_arena>) at malloc.c:1460
#5 0x00007f53927c89b7 in malloc_consolidate (av=av@entry=0x7f5392900b80
<main_arena>) at malloc.c:4502
#6 0x00007f53927c9180 in _int_free (av=0x7f5392900b80 <main_arena>,
p=0x557cb939ca90, have_lock=<optimized out>) at malloc.c:4400
#7 0x00007f538bff364b in CUDTUnited::~CUDTUnited() () at
/usr/lib/x86_64-linux-gnu/libsrt-gnutls.so.1
#8 0x00007f5392780b96 in __cxa_finalize (d=0x7f538c069000) at cxa_finalize.c:83
#9 0x00007f538bff09e3 in () at /usr/lib/x86_64-linux-gnu/libsrt-gnutls.so.1
#10 0x00007ffc4c1a0980 in ()
#11 0x00007f5396594343 in _dl_fini () at dl-fini.c:138
Disabling the parallelism during test runs works for me at least on amd64, so I
will do it as a workaround to get 18.8 built properly for all architectures.
Building 19.0 with current ffmpeg and libsrt-gnutls works fine for me at least
on buster-bpo/amd64. I will test sid/amd64 before I upload 19.0 Alpha1 to
experimental.
--
Vasyl Gello
==================================================
Certified SolidWorks Expert
Mob.:+380 (98) 465 66 77
E-Mail: [email protected]
Skype: vasek.gello
==================================================
호랑이는 죽어서 가죽을 남기고 사람은 죽어서 이름을 남긴다