Actions
Bug #5550
closedModify IPTV threads during streaming makes tvheadend deadlock
Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-02-17
Due date:
% Done:
100%
Estimated time:
Found in version:
4.3-1763
Affected Versions:
Description
The process to reproduce this crash is to be playing a channel on an IPTV thread that will not be available later (example: we are using thread 6, and we limit threads to 1). At the time of closing the connection of the channel, since that thread is not configured tvheadend enters deadlock.
REASON: deadlock (src/tvh_thread.c:512) mutex 0x556fef04f840 locked in: src/webui/webui.c:1170 (thread 6170) mutex 0x556fef04f840 waiting in: src/http.c:296 (thread 6147) mutex 0x556fef04f840 waiting in: src/webui/webui.c:1170 (thread 6169) mutex 0x556fef04f840 waiting in: src/input/mpegts/mpegts_input.c:1807 (thread 5964) mutex 0x556fef04f840 waiting in: src/satip/rtsp.c:1886 (thread 5939)
2019-02-17 11:02:34.806 [ ALERT] CRASH: Signal: 6 in PRG: tvheadend (4.3-1763~g39db47829-dirty) [6470dab3eac76dbb42a53cdfeba45bf04e7d347c ] CWD: /home/trujulu 2019-02-17 11:02:34.806 [ ALERT] CRASH: Fault address 0x6f00001733 (N/A) 2019-02-17 11:02:34.806 [ ALERT] CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/x86_64-linux-gnu/libdvbcsa.so.1 /usr/lib/x86_64-linux- gnu/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libpcre.so.3 /usr/lib/x 86_64-linux-gnu/liburiparser.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /lib/x86_6 4-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libm.so.6 /lib/x86 _64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libsystemd.so.0 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-lin ux-gnu/liblzma.so.5 /usr/lib/x86_64-linux-gnu/liblz4.so.1 /lib/x86_64-linux-gnu/libgcrypt.so.20 /lib/x86_64-linux-gnu/libgpg-error.so.0 /l ib/x86_64-linux-gnu/libnss_compat.so.2 /lib/x86_64-linux-gnu/libnss_nis.so.2 /lib/x86_64-linux-gnu/libnsl.so.1 /lib/x86_64-linux-gnu/libns s_files.so.2 /lib/x86_64-linux-gnu/libnss_systemd.so.2 2019-02-17 11:02:34.806 [ ALERT] CRASH: Register dump [23]: 000000000000000000007f8d7888c850000000000000000800000000000002460000000000000 19200000000000000020000556fef04f8400000556fef04f840000000000000000200007f8d7888c85000007f8d7888caa8000000000000000000000000000000000000000 00000000000007f8d794c2e9700007f8d7888c85000007f8d794c2e970000000000000246002b0000000000330000000000000000000000000000000000000000000000000 000000000000000 2019-02-17 11:02:34.806 [ ALERT] CRASH: STACKTRACE 2019-02-17 11:02:34.848 [ ALERT] CRASH: /root/tvheadend/src/trap.c:176 0x556feeb77fdd 0x556fee9da000 2019-02-17 11:02:34.886 [ ALERT] CRASH: ??:0 0x7f8d79e2d890 0x7f8d79e1b000 2019-02-17 11:02:34.886 [ ALERT] CRASH: gsignal+0xc7 (/lib/x86_64-linux-gnu/libc.so.6) 2019-02-17 11:02:34.886 [ ALERT] CRASH: abort+0x141 (/lib/x86_64-linux-gnu/libc.so.6) 2019-02-17 11:02:34.921 [ ALERT] CRASH: /root/tvheadend/src/tvh_thread.c:492 0x556feeb3863e 0x556fee9da000 2019-02-17 11:02:34.956 [ ALERT] CRASH: /root/tvheadend/src/tvh_thread.c:512 0x556feeb38e11 0x556fee9da000 2019-02-17 11:02:34.990 [ ALERT] CRASH: /root/tvheadend/src/tvh_thread.c:91 0x556feeb38438 0x556fee9da000
Actions