Bug #5110
Descrambler crash every 2 days
0%
Description
More and more frequently I receive a crash every 2 days in the latest version.
May 10 21:52:11 Dell tvheadend[12922]: CRASH: Signal: 6 in PRG: /usr/bin/tvheadend (4.3-1251~gf4ebe33) [73fbb9035158b13c5aa5b6c9953b6708027b5324] CWD: / May 10 21:52:11 Dell tvheadend[12922]: CRASH: Fault address 0x6f0000327a (N/A) May 10 21:52:11 Dell tvheadend[12922]: CRASH: Loaded libraries: /usr/lib/x86_64-linux-gnu/libdvbcsa.so.1 /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 /usr/lib/x86_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_64-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 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /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-linux-gnu/libgcc_s.so.1 /lib/x86_64-linux-gnu/libselinux.so.1 /lib/x86_64-linux-gnu/liblzma.so.5 /lib/x86_64-linux-gnu/libgcrypt.so.20 /lib/x86_64-linux-gnu/libpcre.so.3 /lib/x86_64-linux-gnu/libgpg-error.so.0 /lib/x86_64-linux-gnu/libnss_compat.so.2 /lib/x86_64-linux-gnu/libnsl.so.1 /lib/x86_64-linux-gnu/libnss_nis.so.2 /lib/x86_64-linux-g May 10 21:52:11 Dell tvheadend[12922]: CRASH: Register dump [23]: 0000000000000095000000000000000000000000000000080000000000000202000000000000005b00007f9d5dfedb5800007f9d5dfedb580000000000000002000000000000327a000000000000614f00007f9d5dfedd40000000000000005b0000000000000006000000000000000000007f9de64de42800007f9d5dfed9a800007f9de64de4280000000000000202643100000000003300000000000000000000000000000000fffffffe7ffbba130000000000000000 May 10 21:52:11 Dell tvheadend[12922]: CRASH: STACKTRACE May 10 21:52:11 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/trap.c:148 0x55bb1b9dc99d 0x55bb1b7cf000 May 10 21:52:11 Dell tvheadend[12922]: CRASH: ??:0 0x7f9de7117390 0x7f9de7106000 May 10 21:52:11 Dell tvheadend[12922]: CRASH: gsignal+0x38 (/lib/x86_64-linux-gnu/libc.so.6) May 10 21:52:11 Dell tvheadend[12922]: CRASH: abort+0x16a (/lib/x86_64-linux-gnu/libc.so.6) May 10 21:52:11 Dell tvheadend[12922]: CRASH: ??:0 0x7f9de65207ea 0x7f9de64a9000 May 10 21:52:11 Dell tvheadend[12922]: CRASH: ??:0 0x7f9de652937a 0x7f9de64a9000 May 10 21:52:11 Dell tvheadend[12922]: CRASH: cfree+0x4c (/lib/x86_64-linux-gnu/libc.so.6) May 10 21:52:12 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/descrambler/tvhcsa.c:279 0x55bb1bab642a 0x55bb1b7cf000 May 10 21:52:12 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/descrambler/descrambler.c:447 0x55bb1ba4db94 0x55bb1b7cf000 May 10 21:52:12 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/service.c:276 0x55bb1b9c5dfd 0x55bb1b7cf000 May 10 21:52:12 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/subscriptions.c:179 0x55bb1b9c28ed 0x55bb1b7cf000 May 10 21:52:12 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/subscriptions.c:749 0x55bb1b9c3e05 0x55bb1b7cf000 May 10 21:52:12 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/webui/webui.c:1223 0x55bb1ba32978 0x55bb1b7cf000 May 10 21:52:13 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/webui/webui.c:1288 0x55bb1ba33aba 0x55bb1b7cf000 May 10 21:52:13 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/http.c:1186 0x55bb1b9ac0a3 0x55bb1b7cf000 May 10 21:52:13 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/http.c:1261 0x55bb1b9ad2da 0x55bb1b7cf000 May 10 21:52:13 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/http.c:1343 0x55bb1b9ad50d 0x55bb1b7cf000 May 10 21:52:13 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/http.c:1478 0x55bb1b9ac5f3 0x55bb1b7cf000 May 10 21:52:14 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/http.c:1965 0x55bb1b9ad88b 0x55bb1b7cf000 May 10 21:52:14 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/http.c:2016 0x55bb1b9adb78 0x55bb1b7cf000 May 10 21:52:14 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/tcp.c:714 0x55bb1b9a473d 0x55bb1b7cf000 May 10 21:52:14 Dell tvheadend[12922]: CRASH: /project/repo/checkout/src/wrappers.c:181 0x55bb1b99f905 0x55bb1b7cf000
History
Updated by Pablo R. over 6 years ago
I have solved crashes with the following, I am not at all sure if it is the correct way to solve it, but I have been working like this for several days without a single crash.
index f6ea0fe..159b91d --- a/src/descrambler/descrambler.c +++ b/src/descrambler/descrambler.c @@ -444,7 +444,9 @@ descrambler_service_stop ( service_t *t ) if (dr) { for (i = 0; i < DESCRAMBLER_MAX_KEYS; i++) { tk = &dr->dr_keys[i]; + pthread_mutex_lock(&t->s_stream_mutex); tvhcsa_destroy(&tk->key_csa); + pthread_mutex_unlock(&t->s_stream_mutex); if (!dr->dr_key_multipid) break; } while ((dd = TAILQ_FIRST(&dr->dr_queue)) != NULL)
Updated by Pablo R. over 6 years ago
Pablo R. wrote:
I have solved crashes with the following, I am not at all sure if it is the correct way to solve it, but I have been working like this for several days without a single crash.
[...]
This patch solves the error partially. Well after a few days I see symptoms of continuity errors have been committed without stopping every minute or so on encrypted channels.
I hope you can publish an official solution as soon as possible.
Updated by Petar Ivanov over 6 years ago
Pablo R. wrote:
Pablo R. wrote:
I have solved crashes with the following, I am not at all sure if it is the correct way to solve it, but I have been working like this for several days without a single crash.
[...]
This patch solves the error partially. Well after a few days I see symptoms of continuity errors have been committed without stopping every minute or so on encrypted channels.
I hope you can publish an official solution as soon as possible.
For me your patch not help for problem with low signal and dropping package and crash from this thread: http://tvheadend.org/issues/5092#change-26785