Hi,
I hope someone can help fix what I think is a bug in TVHeadend.
I have this crash several times per month. Sometimes when it crashes, it repeatedly crashes in a loop for maybe 30 minutes. Most times it recovers first time round.
I would sincerely appreciate any support fixing this.
It happens on any version, I am built using a very new version right now. This crash has been happening for 2 years.
I have completly rebuilt my TVHeadend setup numerous times and its presently running of a completely different server.
I see this in DMESG:
[Fri Sep 6 11:20:52 2024] tvh:tcp-start[2247021]: segfault at 3ed468e ip 00005613fc208cc9 sp 00007f7bab5f93b0 error 4 in tvheadend[5613fc16c000+f0a000]
[Fri Sep 6 11:20:52 2024] Code: f6 ff b8 ea ff ff ff e9 62 fe ff ff 0f 1f 44 00 00 48 85 d2 74 3b 55 48 89 e5 41 57 41 56 41 55 41 54 49 89 d4 53 48 83 ec 28 <80> 3a 00 74 0a 48 85 c9 74 05 80 39 00 75 20 48 8d 65 d8 5b 41 5c
Then this trace in the TVHeadend log file:
2024-09-06 11:20:58.540 [ DEBUG]:timeshift: remote ts status start 0 end 420 current 0
2024-09-06 11:20:58.943 [ INFO]:iptv: rtsp: set speed: 0
2024-09-06 11:20:58.946 [ ALERT]:CRASH: Signal: 11 in PRG: /applications/tvheadend.19082024.4.3-2354/build.linux/tvheadend (4.3-2354~gadef81b8d) [c115c7266aa7bbc1580679115c2de75d3d3a8c74] CWD: /tmp
2024-09-06 11:20:58.946 [ ALERT]:CRASH: Fault address 0x3ed468e (Address not mapped)
2024-09-06 11:20:58.946 [ ALERT]:CRASH: Loaded libraries: linux-vdso.so.1 /lib/x86_64-linux-gnu/libdvbcsa.so.1 /lib/x86_64-linux-gnu/libssl.so.1.1 /lib/x86_64-linux-gnu/libcrypto.so.1.1 /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libpcre2-8.so.0 /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/libmvec.so.1 /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/librt.so.1 /lib/x86_64-linux-gnu/liblzma.so.5 /lib/x86_64-linux-gnu/libzstd.so.1 /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_files.so.2
2024-09-06 11:20:58.946 [ ALERT]:CRASH: Register dump [23]: 00000000000000000000000000000000000000000000000000000000000002460000000003ed468e00005613ff4fe35000007f7bab5f941000007f7bab5f942000005613ff4fe350000000000000000000007f7bab5f940000005613ff575cd00000000003ed468e00007f7bab5f94b0000000000000000200007f7bab5f93b000005613fc208cc90000000000010202002b0000000000330000000000000004000000000000000efffffffe7ffbba130000000003ed468e
2024-09-06 11:20:58.946 [ ALERT]:CRASH: STACKTRACE
2024-09-06 11:20:59.198 [ ALERT]:CRASH: /applications/tvheadend/src/trap.c:176 0x5613fc1f493a 0x5613fbfb8000
2024-09-06 11:20:59.391 [ ALERT]:CRASH: ??:0 0x7f800ddad140 0x7f800dd9a000
2024-09-06 11:20:59.540 [ DEBUG]:timeshift: remote ts status start 0 end 421 current 0
2024-09-06 11:20:59.555 [ ALERT]:CRASH: /applications/tvheadend/src/httpc.c:1225 (discriminator 1) 0x5613fc208cc9 0x5613fbfb8000
2024-09-06 11:20:59.741 [ ALERT]:CRASH: /applications/tvheadend/src/rtsp.c:62 0x5613fc20b3c8 0x5613fbfb8000
2024-09-06 11:20:59.913 [ ALERT]:CRASH: /applications/tvheadend/src/http.h:492 0x5613fc2c2f48 0x5613fbfb8000
2024-09-06 11:21:00.098 [ ALERT]:CRASH: /applications/tvheadend/src/streaming.h:462 0x5613fc1db47d 0x5613fbfb8000
2024-09-06 11:21:00.285 [ ALERT]:CRASH: /applications/tvheadend/src/htsp_server.c:2836 (discriminator 3) 0x5613fc1e38b2 0x5613fbfb8000
2024-09-06 11:21:00.469 [ ALERT]:CRASH: /applications/tvheadend/src/htsp_server.c:3423 0x5613fc1e56cb 0x5613fbfb8000
2024-09-06 11:21:00.540 [ DEBUG]:timeshift: remote ts status start 0 end 422 current 0
2024-09-06 11:21:00.631 [ ALERT]:CRASH: /applications/tvheadend/src/tcp.c:724 0x5613fc1b77df 0x5613fbfb8000
2024-09-06 11:21:00.818 [ ALERT]:CRASH: /applications/tvheadend/src/tvh_thread.c:91 (discriminator 3) 0x5613fc1b2b5a 0x5613fbfb8000
2024-09-06 11:21:01.002 [ ALERT]:CRASH: ??:0 0x7f800dda1ea7 0x7f800dd9a000
2024-09-06 11:21:01.002 [ ALERT]:CRASH: clone+0x3f (/lib/x86_64-linux-gnu/libc.so.6)
From my limited knowledge it may be a null pointer reference relating to HTSP?