Project

General

Profile

Bug #5691

Crash when starting recording or streaming

Added by Allan Lee 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-07-25
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1802~g6be300c43
Affected Versions:

Description

July 25 21:29:30 rec-pc tvheadend23591: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.3-1802~g6be300c43) [921a17bbb26f4ae358b76c511e7122722ccce354] CWD: /
July 25 21:29:30 rec-pc tvheadend23591: CRASH: Fault address (nil) (N/A)
July 25 21:29:30 rec-pc tvheadend23591: 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 /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 /lib/x86_64-linux-gnu/libmvec.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/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 /lib/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
July 25 21:29:30 rec-pc tvheadend23591: CRASH: Register dump [23]: 0000000000000000000000000000000007e0f2000000000000007fc42aa50ec000007fc4001a2d5000007fc3f33b854000000000000009db00007fc40004df1074634f282039319a0000000000000000000000000000010000007fc3e001103000007fc4001a2d5074634f2820393032000000000000006500007fc3f33b841800007fc42b7e7fa00000000000010246002b0000000000330000000000000000000000000000000dfffffffe7ffbba130000000000000000
July 25 21:29:30 rec-pc tvheadend23591: CRASH: STACKTRACE
July 25 21:29:31 rec-pc tvheadend23591: CRASH: ??:0 0x562e4a44153d 0x562e4a22c000
July 25 21:29:31 rec-pc tvheadend23591: CRASH: ??:0 0x7fc42b7f0890 0x7fc42b7de000
July 25 21:29:31 rec-pc tvheadend23591: CRASH: pthread_mutex_lock+0x0 (/lib/x86_64-linux-gnu/libpthread.so.0)
July 25 21:29:31 rec-pc tvheadend23591: CRASH: ??:0 0x562e4a52db25 0x562e4a22c000
July 25 21:29:31 rec-pc tvheadend23591: CRASH: ??:0 0x562e4a4bb341 0x562e4a22c000
July 25 21:29:31 rec-pc tvheadend23591: CRASH: ??:0 0x562e4a4d3a03 0x562e4a22c000
July 25 21:29:31 rec-pc tvheadend23591: CRASH: ??:0 0x562e4a4c9dd2 0x562e4a22c000
July 25 21:29:31 rec-pc tvheadend23591: CRASH: ??:0 0x562e4a4ca237 0x562e4a22c000
July 25 21:29:31 rec-pc tvheadend23591: CRASH: ??:0 0x562e4a4c29fb 0x562e4a22c000
July 25 21:29:31 rec-pc tvheadend23591: CRASH: ??:0 0x562e4a4c5fac 0x562e4a22c000
July 25 21:29:31 rec-pc tvheadend23591: CRASH: ??:0 0x562e4a401988 0x562e4a22c000
July 25 21:29:31 rec-pc tvheadend23591: CRASH: ??:0 0x7fc42b7e56db 0x7fc42b7de000
July 25 21:29:31 rec-pc tvheadend23591: CRASH: clone+0x3f (/lib/x86_64-linux-gnu/libc.so.6)


Files

tvh_log.7z (53.7 KB) tvh_log.7z Allan Lee, 2019-07-26 11:52
tvh-dbg_log1.7z (59 KB) tvh-dbg_log1.7z Allan Lee, 2019-07-26 12:02

History

#1

Updated by Pablo R. 3 months ago

See #5659 (from note 16)

#2

Updated by Flole Systems 3 months ago

And you are missing debug infos aswell as a description of what you did when this happened. This bug report and stacktrace is useless like this (check out the wiki, it contains instructions on how this is done properly).

#3

Updated by Allan Lee 3 months ago

a description of what you did when this happened
--
Crash occurs randomly when a new recording or streaming request starts.
Crash would almost 100% occur, when doing a scan in another tvheadend (after importing the /playlist/channels.m3u to another tvheadend as Automated IPTV network).

Hardware: ASUS B365 Plus, Intel G5400T, TBS 6209 x1, TechnoTrend TT-budget CT2-4500 x2 (no CAM used)
Environment: Ubuntu 18.04 Desktop 64-bit, kernel 4.18.0-25-generic. CA: newcamd NDS2 (oscam)

Trace: (subsystems: subscription,descrambler
If I provided the wrong debug info, or did not choose the correct subsystems, kindly let me know.

2019-07-26 17:17:13.872 [ ALERT]:CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.3-1802~g6be300c43~bionic) [436a7f3090aa06a1603e52e2d3b4cbed7f1a3bf1] CWD: /
2019-07-26 17:17:13.872 [ ALERT]:CRASH: Fault address 0xb0 (Address not mapped)
2019-07-26 17:17:13.872 [ ALERT]:CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4 /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 /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 /usr/lib/x86_64-linux-gnu/libavfilter.so.6 /usr/lib/x86_64-linux-gnu/libavformat.so.57 /usr/lib/x86_64-linux-gnu/libavcodec.so.57 /usr/lib/x86_64-linux-gnu/libavutil.so.55 /usr/lib/x86_64-linux-gnu/libva.so.2 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libsystemd.so.0 /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 /usr/lib/x86_64-linux-gnu/libavresample.so.3 /usr/lib/x86_64-linux-gnu/libswscale.so.4 /usr/lib/x86_64-linux-gnu/libpostproc.so.54 /usr/lib/x86_64-lin
2019-07-26 17:17:13.872 [ ALERT]:CRASH: Register dump [23]: 00005559893a5b000000000000000000ffffffffffffffff4a0b0100005e708100000000000000a000007fa7145e0d8000000000000009e300007fa71004082000000000000000010000000000000000000000000000010000007fa6b4013e8000000000000000000000000000000000000000000000000000007fa7145e0c600000555988724d710000000000010206002b0000000000330000000000000004000000000000000efffffffe7ffbba1300000000000000b0
2019-07-26 17:17:13.872 [ ALERT]:CRASH: STACKTRACE
2019-07-26 17:17:13.943 [ ALERT]:CRASH: ??:0 0x5559886366dd 0x555988491000
2019-07-26 17:17:13.969 [ ALERT]:CRASH: ??:0 0x7fa75aa8a890 0x7fa75aa78000
2019-07-26 17:17:13.988 [ ALERT]:CRASH: ??:? 0x555988724d71 0x555988491000
2019-07-26 17:17:14.008 [ ALERT]:CRASH: ??:? 0x5559886b04e1 0x555988491000
2019-07-26 17:17:14.026 [ ALERT]:CRASH: ??:? 0x5559886c8ba3 0x555988491000
2019-07-26 17:17:14.044 [ ALERT]:CRASH: ??:? 0x5559886bef72 0x555988491000
2019-07-26 17:17:14.062 [ ALERT]:CRASH: ??:? 0x5559886bf3d7 0x555988491000
2019-07-26 17:17:14.080 [ ALERT]:CRASH: ??:? 0x5559886b7b9b 0x555988491000
2019-07-26 17:17:14.098 [ ALERT]:CRASH: ??:? 0x5559886bb14c 0x555988491000
2019-07-26 17:17:14.117 [ ALERT]:CRASH: ??:0 0x5559885f6708 0x555988491000
2019-07-26 17:17:14.135 [ ALERT]:CRASH: ??:0 0x7fa75aa7f6db 0x7fa75aa78000
2019-07-26 17:17:14.135 [ ALERT]:CRASH: clone+0x3f (/lib/x86_64-linux-gnu/libc.so.6)

#4

Updated by Pablo R. 3 months ago

You have to install tvheadend debug package. tvheadend-dbg_4.3-1802~g6be300c43~bionic_amd64.deb

#5

Updated by Allan Lee 3 months ago

I started tvheadend manually with:
tvheadend -l /home/hts/tvh_log.txt -s --debug +all
The full log file attached here

#6

Updated by Allan Lee 3 months ago

Pablo R. wrote:

You have to install tvheadend debug package. tvheadend-dbg_4.3-1802~g6be300c43~bionic_amd64.deb

OK, I'll do it now.

#7

Updated by Allan Lee 3 months ago

Pablo R. wrote:

You have to install tvheadend debug package. tvheadend-dbg_4.3-1802~g6be300c43~bionic_amd64.deb

2019-07-26 17:59:20.941 [ ALERT]:CRASH: Signal: 11 in PRG: tvheadend (4.3-1802~g6be300c43~bionic) [436a7f3090aa06a1603e52e2d3b4cbed7f1a3bf1] CWD: /home/hts
2019-07-26 17:59:20.941 [ ALERT]:CRASH: Fault address 0x178 (Address not mapped)
2019-07-26 17:59:20.941 [ ALERT]:CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4 /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 /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 /usr/lib/x86_64-linux-gnu/libavfilter.so.6 /usr/lib/x86_64-linux-gnu/libavformat.so.57 /usr/lib/x86_64-linux-gnu/libavcodec.so.57 /usr/lib/x86_64-linux-gnu/libavutil.so.55 /usr/lib/x86_64-linux-gnu/libva.so.2 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libsystemd.so.0 /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 /usr/lib/x86_64-linux-gnu/libavresample.so.3 /usr/lib/x86_64-linux-gnu/libswscale.so.4 /usr/lib/x86_64-linux-gnu/libpostproc.so.54 /usr/lib/x86_64-lin
2019-07-26 17:59:20.941 [ ALERT]:CRASH: Register dump [23]: 00000000000000000000000000000000ffffffffffffffff00007fdb7f3edec000007fdb380f78d000007fdb37dfcd8000000000000009df00007fdb380d97d000000000000001680000000000000000000000000000010000007fdb0401e44000007fdb380f78d00000000000000000000000000000006100007fdb37dfcc5800007fdb7fbd1fa00000000000010246002b0000000000330000000000000004000000000000000efffffffe7ffbba130000000000000178
2019-07-26 17:59:20.941 [ ALERT]:CRASH: STACKTRACE
2019-07-26 17:59:21.021 [ ALERT]:CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/trap.c:176 0x55dd51e4b6dd 0x55dd51ca6000
2019-07-26 17:59:21.078 [ ALERT]:CRASH: ??:0 0x7fdb7fbda890 0x7fdb7fbc8000
2019-07-26 17:59:21.078 [ ALERT]:CRASH: pthread_mutex_lock+0x0 (/lib/x86_64-linux-gnu/libpthread.so.0)
2019-07-26 17:59:21.134 [ ALERT]:CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/descrambler/cclient.c:866 (discriminator 1) 0x55dd51f39e15 0x55dd51ca6000
2019-07-26 17:59:21.189 [ ALERT]:CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/descrambler/descrambler.c:1346 0x55dd51ec54e1 0x55dd51ca6000
2019-07-26 17:59:21.245 [ ALERT]:CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/input/mpegts/mpegts_table.c:101 0x55dd51eddba3 0x55dd51ca6000
2019-07-26 17:59:21.301 [ ALERT]:CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/input/mpegts/dvb_psi_lib.c:135 (discriminator 4) 0x55dd51ed3f72 0x55dd51ca6000
2019-07-26 17:59:21.357 [ ALERT]:CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/input/mpegts/dvb_psi_lib.c:185 0x55dd51ed43d7 0x55dd51ca6000
2019-07-26 17:59:21.414 [ ALERT]:CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/input/mpegts/mpegts_input.c:1338 (discriminator 3) 0x55dd51eccb9b 0x55dd51ca6000
2019-07-26 17:59:21.471 [ ALERT]:CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/input/mpegts/mpegts_input.c:1544 0x55dd51ed014c 0x55dd51ca6000
2019-07-26 17:59:21.525 [ ALERT]:CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/tvh_thread.c:91 0x55dd51e0b708 0x55dd51ca6000

full log attached

#8

Updated by Allan Lee 3 months ago

Just encountered another crash when a recording starting.

July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.3-1802~g6be300c43~bionic) [436a7f3090aa06a1603e52e2d3b4cbed7f1a3bf1] CWD: /
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: Fault address 0x30 (Address not mapped)
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4 /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 /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 /usr/lib/x86_64-linux-gnu/libavfilter.so.6 /usr/lib/x86_64-linux-gnu/libavformat.so.57 /usr/lib/x86_64-linux-gnu/libavcodec.so.57 /usr/lib/x86_64-linux-gnu/libavutil.so.55 /usr/lib/x86_64-linux-gnu/libva.so.2 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libsystemd.so.0 /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 /usr/lib/x86_64-linux-gnu/libavresample.so.3 /usr/lib/x86_64-linux-gnu/libswscale.so.4 /usr/lib/x86_64-linux-gnu/libpostproc.so.54 /usr/lib/x86_64-lin
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: Register dump [23]: 00005598839d1fb00000000000000000ffffffffffffffff4a0b010000627080000000000000002000007f8d06df4d8000000000000009db00007f8d08086ac000000000000000010000000000000000000000000000010000007f8cbc050af000000000000000000000000000000000000000000000000000007f8d06df4c600000559882585d710000000000010202002b0000000000330000000000000004000000000000000efffffffe7ffbba130000000000000030
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: STACKTRACE
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/trap.c:176 0x5598824976dd 0x5598822f2000
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: ??:0 0x7f8d55009890 0x7f8d54ff7000
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/descrambler/cclient.c:883 0x559882585d71 0x5598822f2000
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/descrambler/descrambler.c:1346 0x5598825114e1 0x5598822f2000
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/input/mpegts/mpegts_table.c:101 0x559882529ba3 0x5598822f2000
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/input/mpegts/dvb_psi_lib.c:135 (discriminator 4) 0x55988251ff72 0x5598822f2000
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/input/mpegts/dvb_psi_lib.c:185 0x5598825203d7 0x5598822f2000
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/input/mpegts/mpegts_input.c:1338 (discriminator 3) 0x559882518b9b 0x5598822f2000
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/input/mpegts/mpegts_input.c:1544 0x55988251c14c 0x5598822f2000
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: /build/tvheadend-PKSVIp/tvheadend-4.3/src/tvh_thread.c:91 0x559882457708 0x5598822f2000
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: ??:0 0x7f8d54ffe6db 0x7f8d54ff7000
July 26 21:14:02 rec-hdctv tvheadend23399: CRASH: clone+0x3f (/lib/x86_64-linux-gnu/libc.so.6)

#9

Updated by Allan Lee 3 months ago

Pablo R. wrote:

See #5659 (from note 16)

Just read through your issue posted. Most likely I'm having the same problem here.

Is there anything I can do to help?

#10

Updated by Flole Systems 3 months ago

As you can see I have done some analysis in the other issue, you can read through it and if you don't understand something ask for clarification or if you find a mistake or disagree mention that.

After that it gets more complicated, finding the cause of the issue is not that easy. That requires working with gdb and checking why the destroyed destination is not "deleted from the distribution list".

I am sure your issue is the same as the other one, so we should continue all communication there so the information is not all over the place but at one place.

#11

Updated by Allan Lee 3 months ago

Sure thank you for the suggestion.
I'll try to replicate your practice here on my system. And post under your issue: https://tvheadend.org/issues/5659

Please help to close this topic.

Also available in: Atom PDF