Bug #996

Tvheadend crash on 2.99.16.g0e3bb

Added by Tom Warren almost 5 years ago. Updated almost 5 years ago.

Status:FixedStart date:2012-05-13
Priority:NormalDue date:
Assignee:Hein Rigolo% Done:

100%

Category:HTSP
Target version:-
Found in version:2.99.16.g0e3bb Affected Versions:

Description

Still seeing crashes on XBMC (Eden) unsubscribe on 2.99.16.g0e3bb :


May 12 20:08:52 videobox tvheadend[1857]: htsp: Got connection from 192.168.1.103
May 12 20:08:52 videobox tvheadend[1857]: htsp: 192.168.1.103: Welcomed client software: XBMC Media Center
May 12 20:08:59 videobox tvheadend[1857]: htsp: 192.168.1.103 [ XBMC Media Center ]: Disconnected
May 12 20:08:59 videobox tvheadend[1857]: subscription: "192.168.1.103 [ XBMC Media Center ]" unsubscribing from "SPRT-Astro"
May 12 20:08:59 videobox tvheadend[1857]: CRASH: Signal: 11 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /
May 12 20:08:59 videobox tvheadend[1857]: CRASH: Fault address 0xd0 (Address not mapped)
May 12 20:08:59 videobox tvheadend[1857]: CRASH: Loaded libraries: /lib/librt.so.1 /lib/libdl.so.2 /usr/lib/libavahi-common.so.3 /usr/lib/libavahi-client.so.3 /lib/libssl.so.0.9.8 /lib/libcrypto.so.0.9.8 /lib/libpthread.so.0 /lib/libm.so.6 /lib/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/libdbus-1.so.3 /lib/libz.so.1 /lib/libnss_compat.so.2 /lib/libnsl.so.1 /lib/libnss_nis.so.2 /lib/libnss_files.so.2
May 12 20:08:59 videobox tvheadend[1857]: CRASH: Register dump [23]: 00007fa21c032cb0 0000000000002475 0000000000000000 0000000000000206 00007fa2221fbe30 00007fa2221fbe30 00007fa2221fbe38 000000007fffffff 0000000000000000 00007fa2221fbe38 00000000000000c0 0000000000000006 000000000000feff 0000000000000000 0000000000000000 00007fa2221fbdc0 000000000041d970 0000000000010206 0000000000000033 0000000000000004 000000000000000e fffffffe7ffbfa17 00000000000000d0
May 12 20:08:59 videobox tvheadend[1857]: CRASH: STACKTRACE
May 12 20:08:59 videobox tvheadend[1857]: CRASH: /home/videobox/tvheadend/src/trap.c:139 0x4217cb
May 12 20:08:59 videobox tvheadend[1857]: CRASH: ??:0 0x7fa248277b40
May 12 20:08:59 videobox tvheadend[1857]: CRASH: /home/videobox/tvheadend/src/htsmsg_binary.c:147 0x41d970
May 12 20:08:59 videobox tvheadend[1857]: CRASH: /home/videobox/tvheadend/src/htsmsg_binary.c:267 0x41dc03
May 12 20:08:59 videobox tvheadend[1857]: CRASH: /home/videobox/tvheadend/src/htsp.c:1276 0x41c101
May 12 20:08:59 videobox tvheadend[1857]: CRASH: ??:0 0x7fa24826f971
May 12 20:08:59 videobox tvheadend[1857]: CRASH: clone+0x6d (/lib/libc.so.6)
May 12 20:08:59 videobox kernel: [42773.302504] tvheadend[9333]: segfault at d0 ip 000000000041d970 sp 00007fa2221fbdc0 erro
r 4 in tvheadend[400000+8e000]

Associated revisions

Revision 79c1b490
Added by Andreas Öman almost 5 years ago

htsp: Add missing lock when flushing HTSP output queue

Fixes #996

History

#1 Updated by Zdenek Janda almost 5 years ago

I can confirm this issue as well, same symptoms (xbmc eden). Investigating and trying to get coredump:

May 19 00:50:10 fsiptv tvheadend[732]: subscription: "172.30.108.100 [ XBMC Media Center ]" unsubscribing from "Prima Cool" 
May 19 00:50:10 fsiptv tvheadend[732]: subscription: "172.30.108.100 [ XBMC Media Center ]" subscribing on "Barrandov TV", weight: 150, adapter: "eth0", network: "<N/A>", mux: "224.0.6.3", provider: "<N/A>", service: "<N/A>", quality: 100
May 19 00:50:10 fsiptv tvheadend[732]: Service: eth0/224.0.6.3: Status changed to [Hardware input] 
May 19 00:50:10 fsiptv tvheadend[732]: Service: eth0/224.0.6.3: Status changed to [Hardware input] [Input on service] 
May 19 00:50:10 fsiptv tvheadend[732]: Service: eth0/224.0.6.3: Status changed to [Hardware input] [Input on service] [Demuxed packets] 
May 19 00:50:10 fsiptv tvheadend[732]: Service: eth0/224.0.6.3: Status changed to [Hardware input] [Input on service] [Demuxed packets] [Reassembled packets] 
May 19 00:50:16 fsiptv tvheadend[732]: subscription: "172.30.108.100 [ XBMC Media Center ]" unsubscribing from "Barrandov TV" 
May 19 00:50:16 fsiptv tvheadend[732]: subscription: "172.30.108.100 [ XBMC Media Center ]" subscribing on "Nova", weight: 150, adapter: "eth0", network: "<N/A>", mux: "224.0.6.2", provider: "<N/A>", service: "<N/A>", quality: 100
May 19 00:50:17 fsiptv tvheadend[732]: subscription: "172.30.108.100 [ XBMC Media Center ]" unsubscribing from "Nova" 
May 19 00:50:17 fsiptv tvheadend[732]: subscription: "172.30.108.100 [ XBMC Media Center ]" subscribing on "Nova Cinema", weight: 150, adapter: "eth0", network: "<N/A>", mux: "224.0.6.1", provider: "<N/A>", service: "<N/A>", quality: 100
May 19 00:50:17 fsiptv tvheadend[732]: CRASH: Signal: 6 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [e5874b006f75c498ec05080ea0abaf5c71e37584] CWD: /  
May 19 00:50:17 fsiptv tvheadend[732]: CRASH: Fault address 0x6a000002dc (N/A)
May 19 00:50:17 fsiptv tvheadend[732]: CRASH: Loaded libraries: /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libdl.so.2 /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/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libz.so.1 /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-gnu/libnss_files.so.2  
May 19 00:50:17 fsiptv tvheadend[732]: CRASH: Register dump [23]: 0000000000000000 0000000000000008 0000000000000008 0000000000000202 00007f9d10102be4 0000000000000004 0000000000000000 0000000000000000 00000000000002dc 0000000000000656 000000000153bbb0 0000000001722e90 0000000000000006 0000000000000000 ffffffffffffffff 00007f9cf6074ca8 00007f9d2f8753a5 0000000000000202 0000000000000033 0000000000000000 0000000000000000 fffffffe7ffbfa17 0000000000000000 
May 19 00:50:17 fsiptv tvheadend[732]: CRASH: STACKTRACE
May 19 00:50:17 fsiptv tvheadend[732]: CRASH: /usr/src/tvheadend/src/trap.c:139 0x4209fb
May 19 00:50:17 fsiptv tvheadend[732]: CRASH: ??:0 0x7f9d2fbee060
May 19 00:50:17 fsiptv tvheadend[732]: CRASH: gsignal+0x35  (/lib/x86_64-linux-gnu/libc.so.6)
May 19 00:50:17 fsiptv tvheadend[732]: CRASH: abort+0x17b  (/lib/x86_64-linux-gnu/libc.so.6)
May 19 00:50:17 fsiptv tvheadend[732]: CRASH: /usr/src/tvheadend/src/htsmsg_binary.c:217 0x41d185
May 19 00:50:17 fsiptv tvheadend[732]: CRASH: /usr/src/tvheadend/src/htsmsg_binary.c:278 0x41d5e5
May 19 00:50:17 fsiptv tvheadend[732]: CRASH: /usr/src/tvheadend/src/htsp.c:1276 0x41af6f
May 19 00:50:18 fsiptv tvheadend[732]: CRASH: ??:0 0x7f9d2fbe5efc
May 19 00:50:18 fsiptv tvheadend[732]: CRASH: clone+0x6d  (/lib/x86_64-linux-gnu/libc.so.6)
May 19 00:50:18 fsiptv kernel: [54113.595798] init: tvheadend main process (732) killed by ABRT signal
May 19 00:50:18 fsiptv kernel: [54113.595887] init: tvheadend main process ended, respawning

#2 Updated by Zdenek Janda almost 5 years ago

Crash happens after some hours again. Was not able to get coredump, investigating why.

May 19 22:10:06 fsiptv tvheadend[662]: subscription: "172.30.108.148 [ XBMC Media Center ]" unsubscribing from "E4 UK" 
May 19 22:10:06 fsiptv tvheadend[662]: subscription: "172.30.108.148 [ XBMC Media Center ]" subscribing on "E4 +1", weight: 150, adapter: "eth0", network: "<N/A>", mux: "224.0.1.1", provider: "<N/A>", service: "<N/A>", quality: 100
May 19 22:10:06 fsiptv tvheadend[662]: Service: eth0/224.0.1.1: Status changed to [Hardware input] 
May 19 22:10:06 fsiptv tvheadend[662]: Service: eth0/224.0.1.1: Status changed to [Hardware input] [Input on service] 
May 19 22:10:06 fsiptv tvheadend[662]: Service: eth0/224.0.1.1: Status changed to [Hardware input] [Input on service] [Demuxed packets] 
May 19 22:10:06 fsiptv tvheadend[662]: Service: eth0/224.0.1.1: Status changed to [Hardware input] [Input on service] [Demuxed packets] [Reassembled packets] 
May 19 22:10:09 fsiptv tvheadend[662]: subscription: "172.30.108.148 [ XBMC Media Center ]" unsubscribing from "E4 +1" 
May 19 22:10:09 fsiptv tvheadend[662]: subscription: "172.30.108.148 [ XBMC Media Center ]" subscribing on "E4 UK", weight: 150, adapter: "eth0", network: "<N/A>", mux: "224.0.1.2", provider: "<N/A>", service: "<N/A>", quality: 100
May 19 22:10:10 fsiptv tvheadend[662]: htsp: 217.28.90.53 [ XBMC Media Center ]: Disconnected
May 19 22:10:11 fsiptv tvheadend[662]: TS: eth0/224.0.0.6: MPEG2VIDEO @ #3348: Continuity counter error
May 19 22:10:11 fsiptv tvheadend[662]: TS: eth0/224.0.0.1: MPEG2AUDIO @ #3330: Continuity counter error
May 19 22:10:11 fsiptv tvheadend[662]: TS: eth0/224.0.0.1: MPEG2AUDIO @ #3329: Continuity counter error
May 19 22:10:11 fsiptv tvheadend[662]: TS: eth0/224.0.0.6: MPEG2AUDIO @ #3349: Continuity counter error
May 19 22:10:11 fsiptv tvheadend[662]: TS: eth0/224.0.0.6: TELETEXT @ #2349: Continuity counter error
May 19 22:10:11 fsiptv tvheadend[662]: TS: eth0/224.0.0.1: TELETEXT @ #2326: Continuity counter error
May 19 22:10:11 fsiptv tvheadend[662]: Service: eth0/224.0.0.6: Status changed to [Hardware input] [Input on service] [Demuxed packets] [Reassembled packets] [No available descrambler] 
May 19 22:10:11 fsiptv tvheadend[662]: subscription: "172.30.108.148 [ XBMC Media Center ]" unsubscribing from "E4 UK" 
May 19 22:10:11 fsiptv tvheadend[662]: CRASH: Signal: 11 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [e5874b006f75c498ec05080ea0abaf5c71e37584] CWD: /  
May 19 22:10:11 fsiptv tvheadend[662]: CRASH: Fault address (nil) (Address not mapped)
May 19 22:10:11 fsiptv tvheadend[662]: CRASH: Loaded libraries: /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libdl.so.2 /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/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libz.so.1 /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-gnu/libnss_files.so.2  
May 19 22:10:11 fsiptv tvheadend[662]: CRASH: Register dump [23]: 00007fa0f67fbce0 00000000000005d6 0000000000000000 0000000000000000 00007fa0f67fbce0 00007fa0f67fbcd0 00007fa0f67fbd08 0000000000000003 0000000000000002 0000000000000000 0000000000000000 00007fa0f67fbc70 0000000000000000 000000000163b138 00007fa127ddb04c 00007fa0f5ffae50 000000000041affd 0000000000010202 0000000000000033 0000000000000004 000000000000000e fffffffe7ffbfa17 0000000000000000 
May 19 22:10:11 fsiptv tvheadend[662]: CRASH: STACKTRACE
May 19 22:10:11 fsiptv tvheadend[662]: CRASH: /usr/src/tvheadend/src/trap.c:139 0x4209fb
May 19 22:10:11 fsiptv tvheadend[662]: CRASH: ??:0 0x7fa127ddf060
May 19 22:10:11 fsiptv tvheadend[662]: CRASH: /usr/src/tvheadend/src/htsp.c:1259 0x41affd
May 19 22:10:11 fsiptv tvheadend[662]: CRASH: ??:0 0x7fa127dd6efc
May 19 22:10:11 fsiptv tvheadend[662]: CRASH: clone+0x6d  (/lib/x86_64-linux-gnu/libc.so.6)
May 19 22:10:11 fsiptv kernel: [49953.632185] tvheadend[1494]: segfault at 0 ip 000000000041affd sp 00007fa0f5ffae50 error 4 in tvheadend[400000+8f000]
May 19 22:10:11 fsiptv kernel: [49953.656236] init: tvheadend main process (662) killed by SEGV signal
May 19 22:10:11 fsiptv kernel: [49953.656327] init: tvheadend main process ended, respawning

Putting reward EUR 100 on fixing this issue.

#3 Updated by Tom Warren almost 5 years ago

May 13 14:57:58 videobox tvheadend[1758]: htsp: 192.168.1.103 [ XBMC Media Center ]: Disconnected
May 13 14:57:58 videobox tvheadend[1758]: subscription: "192.168.1.103 [ XBMC Media Center ]" unsubscribing from "1 - TSE-PPC" 
May 13 14:57:58 videobox tvheadend[1758]: CRASH: Signal: 6 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /  
May 13 14:57:58 videobox tvheadend[1758]: CRASH: Fault address 0x67000006de (N/A)
May 13 14:57:58 videobox tvheadend[1758]: CRASH: Loaded libraries: /lib/librt.so.1 /lib/libdl.so.2 /usr/lib/libavahi-common.so.3 /usr/lib/libavahi-client.so.3 /lib/libssl.so.0.9.8 /lib/libcrypto.so.0.9.8 /lib/libpthread.so.0 /lib/libm.so.6 /lib/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/libdbus-1.so.3 /lib/libz.so.1 /lib/libnss_compat.so.2 /lib/libnsl.so.1 /lib/libnss_nis.so.2 /lib/libnss_files.so.2  
May 13 14:57:58 videobox tvheadend[1758]: CRASH: Register dump [23]: 00007f8cc0bc0cc0 0000000000004609 0000000000000008 0000000000000206 0000000001312fe5 0000000001312fe4 0000000000000000 0000000001312fe0 00000000000006de 0000000000004609 00007f8cc01bfe38 00000000012de050 0000000000000006 0000000000000000 ffffffffffffffff 00007f8cc01bfc78 00007f8ce1d4cba5 0000000000000206 0000000000000033 0000000000000000 0000000000000000 fffffffe7ffbfa17 0000000000000000 
May 13 14:57:58 videobox tvheadend[1758]: CRASH: STACKTRACE
May 13 14:57:58 videobox tvheadend[1758]: CRASH: /home/videobox/tvheadend/src/trap.c:139 0x4217cb
May 13 14:57:58 videobox tvheadend[1758]: CRASH: ??:0 0x7f8ce232eb40
May 13 14:57:58 videobox tvheadend[1758]: CRASH: gsignal+0x35  (/lib/libc.so.6)
May 13 14:57:58 videobox tvheadend[1758]: CRASH: abort+0x180  (/lib/libc.so.6)
May 13 14:57:58 videobox tvheadend[1758]: CRASH: /home/videobox/tvheadend/src/htsmsg_binary.c:217 0x41da68
May 13 14:57:58 videobox tvheadend[1758]: CRASH: /home/videobox/tvheadend/src/htsmsg_binary.c:278 0x41dc52
May 13 14:57:58 videobox tvheadend[1758]: CRASH: /home/videobox/tvheadend/src/htsp.c:1276 0x41c101
May 13 14:57:58 videobox tvheadend[1758]: CRASH: ??:0 0x7f8ce2326971
May 13 14:57:58 videobox tvheadend[1758]: CRASH: clone+0x6d  (/lib/libc.so.6)

#4 Updated by Tom Warren almost 5 years ago

May 13 16:17:04 videobox tvheadend[1705]: htsp: 192.168.1.108 [ XBMC Media Center ]: Disconnected
May 13 16:17:04 videobox tvheadend[1705]: subscription: "192.168.1.108 [ XBMC Media Center ]" unsubscribing from "1 - TSE-PPC" 
May 13 16:17:04 videobox tvheadend[1705]: CRASH: Signal: 11 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /  
May 13 16:17:04 videobox tvheadend[1705]: CRASH: Fault address 0x37 (Address not mapped)
May 13 16:17:04 videobox tvheadend[1705]: CRASH: Loaded libraries: /lib/librt.so.1 /lib/libdl.so.2 /usr/lib/libavahi-common.so.3 /usr/lib/libavahi-client.so.3 /lib/libssl.so.0.9.8 /lib/libcrypto.so.0.9.8 /lib/libpthread.so.0 /lib/libm.so.6 /lib/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/libdbus-1.so.3 /lib/libz.so.1 /lib/libnss_compat.so.2 /lib/libnsl.so.1 /lib/libnss_nis.so.2 /lib/libnss_files.so.2  
May 13 16:17:04 videobox tvheadend[1705]: CRASH: Register dump [23]: 00007f4f61fc4cc0 0000000000001c08 0000000000000000 0000000000000206 00007f4f615c3e30 00007f4f615c3e30 00007f4f615c3e38 000000007fffffff 0000000000000000 00007f4f615c3e38 0000000000000027 0000000000000006 00007f4f615c3e30 0000000000000000 000000007fffffff 00007f4f615c3dc0 000000000041d970 0000000000010206 0000000000000033 0000000000000004 000000000000000e fffffffe7ffbfa17 0000000000000037 
May 13 16:17:04 videobox tvheadend[1705]: CRASH: STACKTRACE
May 13 16:17:04 videobox tvheadend[1705]: CRASH: /home/videobox/tvheadend/src/trap.c:139 0x4217cb
May 13 16:17:04 videobox tvheadend[1705]: CRASH: ??:0 0x7f4f85654b40
May 13 16:17:04 videobox tvheadend[1705]: CRASH: /home/videobox/tvheadend/src/htsmsg_binary.c:147 0x41d970
May 13 16:17:04 videobox tvheadend[1705]: CRASH: /home/videobox/tvheadend/src/htsmsg_binary.c:267 0x41dc03
May 13 16:17:04 videobox tvheadend[1705]: CRASH: /home/videobox/tvheadend/src/htsp.c:1276 0x41c101
May 13 16:17:04 videobox tvheadend[1705]: CRASH: ??:0 0x7f4f8564c971
May 13 16:17:04 videobox tvheadend[1705]: CRASH: clone+0x6d  (/lib/libc.so.6)
May 13 16:17:04 videobox kernel: [ 2756.460074] tvheadend[7176]: segfault at 37 ip 000000000041d970 sp 00007f4f615c3dc0 error 4 in tvheadend[400000+8e000]

#5 Updated by Tom Warren almost 5 years ago

May 13 22:02:40 videobox tvheadend[22959]: htsp: 192.168.1.104 [ XBMC Media Center ]: Disconnected
May 13 22:02:40 videobox tvheadend[22959]: subscription: "192.168.1.104 [ XBMC Media Center ]" unsubscribing from "1 - TSE-PPC" 
May 13 22:02:44 videobox tvheadend[22959]: htsp: Got connection from 192.168.1.104
May 13 22:02:44 videobox tvheadend[22959]: htsp: 192.168.1.104: Welcomed client software: XBMC Media Center
May 13 22:02:49 videobox tvheadend[22959]: htsp: Got connection from 192.168.1.104
May 13 22:02:49 videobox tvheadend[22959]: htsp: 192.168.1.104: Welcomed client software: XBMC Media Center
May 13 22:02:49 videobox tvheadend[22959]: subscription: "192.168.1.104 [ XBMC Media Center ]" subscribing on "1-ESPN-CCTV", weight: 150, adapter: "11 Analogue CCTV", network: "<N/A>", mux: "62250000 Hz", provider: "<N/A>", service: "<N/A>", quality: 100
May 13 22:02:49 videobox tvheadend[22959]: CRASH: Signal: 11 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /  
May 13 22:02:49 videobox tvheadend[22959]: CRASH: Fault address 0x48 (Address not mapped)
May 13 22:02:49 videobox tvheadend[22959]: CRASH: Loaded libraries: /lib/librt.so.1 /lib/libdl.so.2 /usr/lib/libavahi-common.so.3 /usr/lib/libavahi-client.so.3 /lib/libssl.so.0.9.8 /lib/libcrypto.so.0.9.8 /lib/libpthread.so.0 /lib/libm.so.6 /lib/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/libdbus-1.so.3 /lib/libz.so.1 /lib/libnss_compat.so.2 /lib/libnsl.so.1 /lib/libnss_nis.so.2 /lib/libnss_files.so.2  
May 13 22:02:49 videobox tvheadend[22959]: CRASH: Register dump [23]: 00007f9172bfcce8 0000000000000d38 0000000000000000 00000000000007e8 0000000001904410 00007f9172bfccc0 000000000196cd92 00000000fffffffc 00007f9172bfccc0 00007f917bbb9cd0 00000000018f3980 00000000017fdbd0 00007f9160040d00 0000000000000000 0000000000000002 00007f917bbb9ca0 000000000041ad65 0000000000010202 0000000000000033 0000000000000004 000000000000000e fffffffe7ffbfa17 0000000000000048 
May 13 22:02:49 videobox tvheadend[22959]: CRASH: STACKTRACE
May 13 22:02:49 videobox tvheadend[22959]: CRASH: /home/videobox/tvheadend/src/trap.c:139 0x4217cb
May 13 22:02:49 videobox tvheadend[22959]: CRASH: ??:0 0x7f919b972b40
May 13 22:02:49 videobox tvheadend[22959]: CRASH: /home/videobox/tvheadend/src/htsp.c:1616 0x41ad65
May 13 22:02:49 videobox tvheadend[22959]: CRASH: /home/videobox/tvheadend/src/streaming.c:288 0x40db41
May 13 22:02:49 videobox tvheadend[22959]: CRASH: /home/videobox/tvheadend/src/parsers.c:1350 0x4166d7
May 13 22:02:49 videobox tvheadend[22959]: CRASH: /home/videobox/tvheadend/src/parsers.c:1092 0x417012
May 13 22:02:49 videobox tvheadend[22959]: CRASH: /home/videobox/tvheadend/src/parsers.c:332 0x416c80
May 13 22:02:49 videobox tvheadend[22959]: CRASH: /home/videobox/tvheadend/src/v4l.c:106 0x445ca4
May 13 22:02:49 videobox tvheadend[22959]: CRASH: /home/videobox/tvheadend/src/v4l.c:159 0x445d14
May 13 22:02:49 videobox tvheadend[22959]: CRASH: ??:0 0x7f919b96a971
May 13 22:02:49 videobox tvheadend[22959]: CRASH: clone+0x6d  (/lib/libc.so.6)
May 13 22:02:49 videobox kernel: [23485.646206] tvheadend[3384]: segfault at 48 ip 000000000041ad65 sp 00007f917bbb9ca0 error 4 in tvheadend[400000+8e000]
[email protected]:~$ 

#6 Updated by Tom Warren almost 5 years ago

Have plenty more like above but here are the most recent; crashed a second time after being restarted:

May 20 20:22:27 videobox tvheadend[1819]: htsp: 192.168.1.102 [ XBMC Media Center ]: Disconnected
May 20 20:22:27 videobox tvheadend[1819]: subscription: "192.168.1.102 [ XBMC Media Center ]" unsubscribing from "AV-IN" 
May 20 20:22:27 videobox tvheadend[1819]: CRASH: Signal: 11 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /  
May 20 20:22:27 videobox tvheadend[1819]: CRASH: Fault address (nil) (Address not mapped)
May 20 20:22:27 videobox tvheadend[1819]: CRASH: Loaded libraries: /lib/librt.so.1 /lib/libdl.so.2 /usr/lib/libavahi-common.so.3 /usr/lib/libavahi-client.so.3 /lib/libssl.so.0.9.8 /lib/libcrypto.so.0.9.8 /lib/libpthread.so.0 /lib/libm.so.6 /lib/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/libdbus-1.so.3 /lib/libz.so.1 /lib/libnss_compat.so.2 /lib/libnsl.so.1 /lib/libnss_nis.so.2 /lib/libnss_files.so.2  
May 20 20:22:27 videobox tvheadend[1819]: CRASH: Register dump [23]: 00007f7d4e1fbcc0 0000000000005080 0000000000000000 0000000000000000 00007f7d4e1fbcc0 00007f7d557bae30 00007f7d557bae38 00007f7d4e1fbcb0 0000000000000002 0000000000000000 0000000000000000 00007f7d4e1fbc50 0000000000000000 00007f7d50070c28 00007f7d72e3ba9c 00007f7d557bae20 000000000041c176 0000000000010206 0000000000000033 0000000000000004 000000000000000e fffffffe7ffbfa17 0000000000000000 
May 20 20:22:27 videobox tvheadend[1819]: CRASH: STACKTRACE
May 20 20:22:27 videobox tvheadend[1819]: CRASH: /home/videobox/tvheadend/src/trap.c:139 0x4217cb
May 20 20:22:27 videobox tvheadend[1819]: CRASH: ??:0 0x7f7d72e3fb40
May 20 20:22:27 videobox tvheadend[1819]: CRASH: /home/videobox/tvheadend/src/htsp.c:1259 0x41c176
May 20 20:22:27 videobox tvheadend[1819]: CRASH: ??:0 0x7f7d72e37971
May 20 20:22:27 videobox tvheadend[1819]: CRASH: clone+0x6d  (/lib/libc.so.6)
May 20 20:22:27 videobox kernel: [42495.411348] tvheadend[20608]: segfault at 0 ip 000000000041c176 sp 00007f7d557bae20 error 4 in tvheadend[400000+8e000]
May 20 20:22:44 videobox logger: /usr/local/bin/watchdog-videobox-ppctv.sh - tvheadend was not running and was restarted on Sun May 20 20:22:44 ICT 2012

After retsarting it crashes again immediately:

May 20 20:22:48 videobox tvheadend[32730]: START: HTS Tvheadend version 2.99.16.g0e3bb started, running as PID:32730 UID:103 GID:44, settings located in '/home/hts/.hts/tvheadend', dataroot: /usr/local/share/tvheadend
May 20 20:22:49 videobox tvheadend[32730]: AVAHI: Service 'Tvheadend' successfully established.
May 20 20:22:55 videobox tvheadend[32730]: htsp: Got connection from 192.168.1.103
May 20 20:22:55 videobox tvheadend[32730]: htsp: 192.168.1.103: Welcomed client software: XBMC Media Center
May 20 20:22:55 videobox tvheadend[32730]: subscription: "192.168.1.103 [ XBMC Media Center ]" subscribing on "ESPN-Astro", weight: 150, adapter: "3 Astro 91.4E No. 1", network: "MEASAT Malaysia", mux: "MEASAT Malaysia: 11,102,000 kHz Vertical (Default (Port 0, Universal LNB))", provider: "Astro", service: "ESPN", quality: 100
May 20 20:22:55 videobox tvheadend[32730]: htsp: Got connection from 192.168.1.108
May 20 20:22:55 videobox tvheadend[32730]: htsp: 192.168.1.108: Welcomed client software: XBMC Media Center
May 20 20:22:55 videobox tvheadend[32730]: subscription: "192.168.1.108 [ XBMC Media Center ]" subscribing on "1 - TSP4-PPC", weight: 150, adapter: "0 PPCTV Digital", network: "PPCTV", mux: "PPCTV: 646,000 kHz", provider: "PPCTV", service: "TS 4", quality: 100
May 20 20:22:55 videobox tvheadend[32730]: cwc: Obtained key for service "ESPN" in 91 ms, from 127.0.0.1:10006
May 20 20:22:55 videobox tvheadend[32730]: htsp: Got connection from 192.168.1.109
May 20 20:22:55 videobox tvheadend[32730]: htsp: 192.168.1.109: Welcomed client software: XBMC Media Center
May 20 20:22:55 videobox tvheadend[32730]: subscription: "192.168.1.109 [ XBMC Media Center ]" subscribing on "AV-IN", weight: 150, adapter: "eth2", network: "<N/A>", mux: "239.255.12.15", provider: "<N/A>", service: "<N/A>", quality: 100
May 20 20:22:56 videobox tvheadend[32730]: cwc: Obtained key for service "TS 4" in 151 ms, from 127.0.0.1:10001
May 20 20:22:57 videobox tvheadend[32730]: htsp: Got connection from 192.168.1.106
May 20 20:22:57 videobox tvheadend[32730]: htsp: 192.168.1.106: Welcomed client software: XBMC Media Center
May 20 20:22:57 videobox tvheadend[32730]: subscription: "192.168.1.106 [ XBMC Media Center ]" subscribing on "AV-IN", weight: 150, adapter: "eth2", network: "<N/A>", mux: "239.255.12.15", provider: "<N/A>", service: "<N/A>", quality: 100
May 20 20:22:57 videobox tvheadend[32730]: CRASH: Signal: 11 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /  
May 20 20:22:57 videobox tvheadend[32730]: CRASH: Fault address 0x48 (Address not mapped)
May 20 20:22:57 videobox tvheadend[32730]: CRASH: Loaded libraries: /lib/librt.so.1 /lib/libdl.so.2 /usr/lib/libavahi-common.so.3 /usr/lib/libavahi-client.so.3 /lib/libssl.so.0.9.8 /lib/libcrypto.so.0.9.8 /lib/libpthread.so.0 /lib/libm.so.6 /lib/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/libdbus-1.so.3 /lib/libz.so.1 /lib/libnss_compat.so.2 /lib/libnsl.so.1 /lib/libnss_nis.so.2 /lib/libnss_files.so.2  
May 20 20:22:57 videobox tvheadend[32730]: CRASH: Register dump [23]: 00007f49a6fc2ce8 000000000000028b 00007f49cb811e40 0000000000000206 0000000000b7d6a0 00007f49a6fc2cc0 0000000000000540 8000000000000000 00007f49a6fc2cc0 00007f49a79b3ae0 00007f49bc057ca0 0000000000b7fb50 0000000000b80020 0000000000000000 0000000000000002 00007f49a79b3ab0 000000000041ad65 0000000000010202 0000000000000033 0000000000000004 000000000000000e fffffffe7ffbfa17 0000000000000048 
May 20 20:22:57 videobox tvheadend[32730]: CRASH: STACKTRACE
May 20 20:22:57 videobox tvheadend[32730]: CRASH: /home/videobox/tvheadend/src/trap.c:139 0x4217cb
May 20 20:22:57 videobox tvheadend[32730]: CRASH: ??:0 0x7f49cbaa8b40
May 20 20:22:57 videobox tvheadend[32730]: CRASH: /home/videobox/tvheadend/src/htsp.c:1616 0x41ad65
May 20 20:22:57 videobox tvheadend[32730]: CRASH: /home/videobox/tvheadend/src/streaming.c:288 0x40db41
May 20 20:22:57 videobox tvheadend[32730]: CRASH: /home/videobox/tvheadend/src/parsers.c:1350 0x4166d7
May 20 20:22:57 videobox tvheadend[32730]: CRASH: /home/videobox/tvheadend/src/parsers.c:431 0x416786
May 20 20:22:57 videobox tvheadend[32730]: CRASH: /home/videobox/tvheadend/src/parsers.c:560 0x416928
May 20 20:22:57 videobox tvheadend[32730]: CRASH: /home/videobox/tvheadend/src/parsers.c:332 0x416c80
May 20 20:22:57 videobox tvheadend[32730]: CRASH: /home/videobox/tvheadend/src/tsdemux.c:122 0x4192d1
May 20 20:22:57 videobox tvheadend[32730]: CRASH: /home/videobox/tvheadend/src/tsdemux.c:256 0x41976e
May 20 20:22:57 videobox tvheadend[32730]: CRASH: /home/videobox/tvheadend/src/iptv_input.c:116 0x422e5d
May 20 20:22:57 videobox tvheadend[32730]: CRASH: ??:0 0x7f49cbaa0971
May 20 20:22:57 videobox tvheadend[32730]: CRASH: clone+0x6d  (/lib/libc.so.6)
May 20 20:22:57 videobox kernel: [42525.167353] tvheadend[651]: segfault at 48 ip 000000000041ad65 sp 00007f49a79b3ab0 error 4 in tvheadend[400000+8e000]

#7 Updated by Hein Rigolo almost 5 years ago

could you please try to add an gdb dump as described here:
http://www.lonelycoder.com/redmine/projects/tvheadend/wiki/Tvheadendcrash

That might help in determining what is causing these crashes.

#8 Updated by Tom Warren almost 5 years ago

Hello Hein,

Thanks for your attention. I need to keep tvh running all the time. I use a watchdog script to restart after a crash.

I start tvh from the watchdog script when the sever boots. Is there any way I could automate the dump from within my script?

Thanks,

Tom

#9 Updated by Hein Rigolo almost 5 years ago

not sure ... but if it crashes as frequently as you mention in this bug, then it might be good to start tvheadend manually for one crash and then enter the commands for the gdb dumps.

Hein

#10 Updated by Sébastien Aubry almost 5 years ago

Same bug here on XBMCbuntu Eden with Tvheadend 2.12.99~pulse-6:

May 20 21:19:57 pchc tvheadend[1205]: TS: DiBcom 3000MC/P #2/F: 746,000 kHz/France Ô: MPEG2VIDEO @ #520: Continuity counter error
May 20 21:19:57 pchc tvheadend[1205]: TS: DiBcom 3000MC/P #2/F: 746,000 kHz/France Ô: MPEG2AUDIO @ #530: Continuity counter error
May 20 21:35:00 pchc tvheadend[1519]: subscription: "DVR: Magasins de sport, à fond la concurrence" unsubscribing from "France 5" 
May 20 21:35:00 pchc tvheadend[1519]: dvr: "Magasins de sport, à fond la concurrence" on "France 5": End of program: OK
May 20 21:35:00 pchc tvheadend[1513]: subscription: "DVR: Magasins de sport, à fond la concurrence" unsubscribing from "France 5" 
May 20 21:35:00 pchc tvheadend[1513]: dvr: "Magasins de sport, à fond la concurrence" on "France 5": End of program: OK
May 20 21:35:01 pchc tvheadend[1205]: subscription: "DVR: Magasins de sport, à fond la concurrence" unsubscribing from "France 5" 
May 20 21:35:01 pchc tvheadend[1205]: dvr: Recording completed: "Magasins de sport, à fond la concurrence" 
May 20 21:35:01 pchc tvheadend[1205]: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (2.12.99~pulse-6) [08b1816f3f6240045cdf74135e93ae97160c88ad] CWD: /  
May 20 21:35:01 pchc tvheadend[1205]: CRASH: Fault address (nil) (Address not mapped)
May 20 21:35:01 pchc tvheadend[1205]: CRASH: Loaded libraries: /lib/i386-linux-gnu/librt.so.1 /lib/i386-linux-gnu/libdl.so.2 /usr/lib/i386-linux-gnu/libavahi-common.so.3 /usr/lib/i386-linux-gnu/libavahi-client.so.3 /lib/i386-linux-gnu/libcrypto.so.1.0.0 /lib/i386-linux-gnu/libpthread.so.0 /lib/i386-linux-gnu/libc.so.6 /lib/ld-linux.so.2 /lib/i386-linux-gnu/libdbus-1.so.3 /lib/i386-linux-gnu/libz.so.1 /lib/i386-linux-gnu/libnss_compat.so.2 /lib/i386-linux-gnu/libnsl.so.1 /lib/i386-linux-gnu/libnss_nis.so.2 /lib/i386-linux-gnu/libnss_files.so.2  
May 20 21:35:01 pchc tvheadend[1205]: CRASH: Register dump [19]: 00000033 00000000 0000007b 0000007b b2b6de7c 00000000 b2b6e2b8 b2b6de20 b75bdff4 00000000 b75bf400 00000000 0000000e 00000004 b74bb6a1 00000073 00210246 b2b6de20 0000007b 
May 20 21:35:01 pchc tvheadend[1205]: CRASH: STACKTRACE
May 20 21:35:01 pchc tvheadend[1205]: CRASH: ??:0 0x8068022
May 20 21:35:01 pchc tvheadend[1205]: CRASH: __kernel_rt_sigreturn+0x0  ()
May 20 21:35:01 pchc tvheadend[1205]: CRASH: ??:0 0xb74bb6a1
May 20 21:35:01 pchc tvheadend[1205]: CRASH: __strdup+0x26  (/lib/i386-linux-gnu/libc.so.6)
May 20 21:35:01 pchc tvheadend[1205]: CRASH: ??:0 0x806e504
May 20 21:35:01 pchc tvheadend[1205]: CRASH: ??:0 0x806e7c2
May 20 21:35:01 pchc tvheadend[1205]: CRASH: ??:0 0xb75c8d31
May 20 21:35:01 pchc tvheadend[1205]: CRASH: clone+0x5e  (/lib/i386-linux-gnu/libc.so.6)
May 20 21:35:01 pchc kernel: [ 1558.702590] tvheadend[1511]: segfault at 0 ip b74bb6a1 sp b2b6de20 error 4 in libc-2.13.so[b7444000+178000]

But it looks from the above log like I have several instances of tvheadend running at the same time. I cannot understand why. Under XBMCbuntu, can anyone tell me which process runs Tvheadend and why I could have several instances at the same time?
Thanks.

#11 Updated by Tom Warren almost 5 years ago

We managed to crash tch within 10 mins by changing channels continuously:

(What do I install to get libc symbols?)

(gdb) 
rax            0x1    1
rbx            0x7    7
rcx            0x0    0
rdx            0xfefe    65278
rsi            0x7fffd7ffee38    140736817262136
rdi            0x0    0
rbp            0xd0    0xd0
rsp            0x7fffd7ffedc0    0x7fffd7ffedc0
r8             0x7ffff0634b20    140737226427168
r9             0x3f2b    16171
r10            0x0    0
r11            0x206    518
r12            0x7fffd7ffee30    140736817262128
r13            0x7fffd7ffee30    140736817262128
r14            0x7fffd7ffee38    140736817262136
r15            0x7fffffff    2147483647
rip            0x41d970    0x41d970 <htsmsg_binary_count+16>
eflags         0x10202    [ IF RF ]
cs             0x33    51
ss             0x2b    43
ds             0x0    0
es             0x0    0
fs             0x0    0
gs             0x0    0
(gdb) disassemble $pc-32,$pc+32
Dump of assembler code from 0x41d950 to 0x41d990:
   0x000000000041d950 <htsmsg_copy+64>:    callq  0x41d480 <htsmsg_create_list>
   0x000000000041d955 <htsmsg_copy+69>:    mov    %rax,%rbx
   0x000000000041d958 <htsmsg_copy+72>:    jmp    0x41d930 <htsmsg_copy+32>
   0x000000000041d95a:    nop
   0x000000000041d95b:    nop
   0x000000000041d95c:    nop
   0x000000000041d95d:    nop
   0x000000000041d95e:    nop
   0x000000000041d95f:    nop
   0x000000000041d960 <htsmsg_binary_count+0>:    push   %rbp
   0x000000000041d961 <htsmsg_binary_count+1>:    push   %rbx
   0x000000000041d962 <htsmsg_binary_count+2>:    xor    %ebx,%ebx
   0x000000000041d964 <htsmsg_binary_count+4>:    sub    $0x8,%rsp
   0x000000000041d968 <htsmsg_binary_count+8>:    mov    (%rdi),%rbp
   0x000000000041d96b <htsmsg_binary_count+11>:    test   %rbp,%rbp
   0x000000000041d96e <htsmsg_binary_count+14>:    je     0x41d9b5 <htsmsg_binary_count+85>
=> 0x000000000041d970 <htsmsg_binary_count+16>:    mov    0x10(%rbp),%rdi
   0x000000000041d974 <htsmsg_binary_count+20>:    xor    %eax,%eax
   0x000000000041d976 <htsmsg_binary_count+22>:    test   %rdi,%rdi
   0x000000000041d979 <htsmsg_binary_count+25>:    je     0x41d980 <htsmsg_binary_count+32>
   0x000000000041d97b <htsmsg_binary_count+27>:    callq  0x403830 <[email protected]>
   0x000000000041d980 <htsmsg_binary_count+32>:    cmpb   $0x5,0x18(%rbp)
   0x000000000041d984 <htsmsg_binary_count+36>:    lea    0x6(%rbx,%rax,1),%rbx
   0x000000000041d989 <htsmsg_binary_count+41>:    ja     0x41d9ac <htsmsg_binary_count+76>
   0x000000000041d98b <htsmsg_binary_count+43>:    movzbl 0x18(%rbp),%eax
   0x000000000041d98f <htsmsg_binary_count+47>:    jmpq   *0x4518f0(,%rax,8)
End of assembler dump.
(gdb) bt full
#0  htsmsg_binary_count (msg=0x0) at /home/videobox/tvheadend/src/htsmsg_binary.c:150
        f = 0xd0
        len = 7
        u64 = 1
#1  0x000000000041dc03 in htsmsg_binary_serialize (msg=0x0, datap=0x7fffd7ffee38, lenp=0xfefe, maxlen=0)
    at /home/videobox/tvheadend/src/htsmsg_binary.c:267
        len = <value optimized out>
#2  0x000000000041c101 in htsp_write_scheduler (aux=<value optimized out>) at /home/videobox/tvheadend/src/htsp.c:1276
        htsp = 0x7fffdcfb3c50
        hmq = <value optimized out>
        hm = 0x7ffff06b7dc0
        dptr = 0x7fffd8011800
        dlen = 808
#3  0x00007ffff6dc0971 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4  0x00007ffff689992d in clone () from /lib/libc.so.6
No symbol table info available.
#5  0x0000000000000000 in ?? ()
No symbol table info available.

#12 Updated by Prof Yaffle almost 5 years ago

Sorry to hijack, I'm not sure if this is the same issue or not - but it looks dangerously similar! Crash on startup, it seems to be related to ~/.hts/tvheadend/epgdata - remove this file and tvheadend will then start properly and run.

Similar problem reported here: http://forum.xbmc.org/showthread.php?tid=129631.

Relevant chunk of /var/log/syslog (I don't know if there's a better logfile elsewhere):

May 21 21:09:34 XBMCLive tvheadend[23810]: dvb: Found adapter /dev/dvb/adapter0 (DiBcom 7000PC) via USB (480 Mbit/s)
May 21 21:09:34 XBMCLive tvheadend[23810]: dvb: Found adapter /dev/dvb/adapter1 (Conexant CX24116/CX24118) via USB (480 Mbit/s)
May 21 21:09:35 XBMCLive kernel: [1557158.066633] tbsqboxs2: tbsqboxs2_set_voltage 0
May 21 21:09:40 XBMCLive tvheadend[23810]: EPG: Injected 50644 event from disk database
May 21 21:09:40 XBMCLive tvheadend[23810]: dvr: Creating new configuration ''
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (2.12.99~pulse-6) [Commit:07f24a2] CWD: /
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: Fault address (nil) (Address not mapped)
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: Loaded libraries: /lib/tls/i686/cmov/librt.so.1 /lib/tls/i686/cmov/libdl.so.2 /usr/lib/libavahi-common.so.3 /usr/lib/libavahi-client.so.3 /lib/i686/cmov/libssl.so.0.9.8 /lib/i686/cmov/libcrypto.so.0.9.8 /lib/tls/i686/cmov/libpthread.so.0 /lib/tls/i686/cmov/libm.so.6 /lib/tls/i686/cmov/libc.so.6 /lib/ld-linux.so.2 /lib/libdbus-1.so.3 /lib/libz.so.1 /lib/tls/i686/cmov/libnss_compat.so.2 /lib/tls/i686/cmov/libnsl.so.1 /lib/tls/i686/cmov/libnss_nis.so.2 /lib/tls/i686/cmov/libnss_files.so.2
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: Register dump [19]: 00000033 c0100000 ffff007b 0000007b b624a4f0 4fbba9f0 bfef2ca8 bfef2bcc b09a5948 b09a5130 b0992900 00000000 0000000e 00000004 00241228 00000073 00210286 bfef2bcc 0000007b
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: STACKTRACE
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: ??:0 0x80692ba
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: __kernel_rt_sigreturn+0x0  ()
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: ??:0 0x806e883
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: ??:0 0x806e90a
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: ??:0 0x807049c
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: ??:0 0x8070d8a
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: ??:0 0x804db77
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: ??:0 0x8070713
May 21 21:09:40 XBMCLive tvheadend[23810]: CRASH: ??:0 0x806e003
May 21 21:09:41 XBMCLive tvheadend[23810]: CRASH: ??:0 0x804c06f
May 21 21:09:41 XBMCLive tvheadend[23810]: CRASH: __libc_start_main+0xe6  (/lib/tls/i686/cmov/libc.so.6)
May 21 21:09:41 XBMCLive tvheadend[23810]: CRASH: ??:0 0x804b411
May 21 21:09:41 XBMCLive kernel: [1557163.478858] tvheadend[23810]: segfault at 0 ip 00241228 sp bfef2bcc error 4 in libc-2.11.1.so[129000+153000]

#13 Updated by Zdenek Janda almost 5 years ago

Hello Hein,
here is latest update.

[49953.632185] tvheadend[1494]: segfault at 0 ip 000000000041affd sp 00007fa0f5ffae50 error 4 in tvheadend[400000+8f000]
[49953.656236] init: tvheadend main process (662) killed by SEGV signal
[49953.656327] init: tvheadend main process ended, respawning
[109411.929142] tvheadend[1510]: segfault at 48 ip 000000000041a22d sp 00007f3038dcbb10 error 4 in tvheadend[400000+8f000]
[109411.946116] init: tvheadend main process (1500) killed by SEGV signal
[109411.946209] init: tvheadend main process ended, respawning
[211499.101910] tvheadend[2100]: segfault at 48 ip 000000000041a22d sp 00007f730a7ebb10 error 4 in tvheadend[400000+8f000]
[211499.129321] init: tvheadend main process (2090) killed by SEGV signal
[211499.129411] init: tvheadend main process ended, respawning
[312208.443914] tvheadend[2913]: segfault at 48 ip 000000000041a22d sp 00007f07e37ed2f0 error 4 in tvheadend[400000+8f000]
[312208.495583] init: tvheadend main process (2903) killed by SEGV signal
[312208.495670] init: tvheadend main process ended, respawning
[377607.810593] tvheadend[3795]: segfault at 48 ip 000000000041a22d sp 00007f77aafecb10 error 4 in tvheadend[400000+8f000]
[377607.830230] init: tvheadend main process (3785) killed by SEGV signal
[377607.830318] init: tvheadend main process ended, respawning

Here how the crash seems in debug log:

May 23 17:11:05 fsiptv tvheadend[3785]: subscription: "172.30.108.146 [ XBMC Media Center ]" unsubscribing from "ITV1 Anglia E" 
May 23 17:11:05 fsiptv tvheadend[3785]: Service: eth0/224.0.0.8: Status changed to [Hardware input] 
May 23 17:11:05 fsiptv tvheadend[3785]: Service: eth0/224.0.0.8: Status changed to [Hardware input] [Input on service] 
May 23 17:11:05 fsiptv tvheadend[3785]: Service: eth0/224.0.0.8: Status changed to [Hardware input] [Input on service] [Demuxed packets] 
May 23 17:11:05 fsiptv tvheadend[3785]: Service: eth0/224.0.0.8: Status changed to [Hardware input] [Input on service] [Demuxed packets] [Reassembled packets] 
May 23 17:11:05 fsiptv tvheadend[3785]: CRASH: Signal: 11 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [e5874b006f75c498ec05080ea0abaf5c71e37584] CWD: /  
May 23 17:11:05 fsiptv tvheadend[3785]: CRASH: Fault address 0x48 (Address not mapped)
May 23 17:11:05 fsiptv tvheadend[3785]: CRASH: Loaded libraries: /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libdl.so.2 /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/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libz.so.1 /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-gnu/libnss_files.so.2  
May 23 17:11:05 fsiptv tvheadend[3785]: CRASH: Register dump [23]: 00007f77aa7fbd08 0000000000000ed3 0000000000000001 0000000000000003 00007f779c04e350 00007f779c0825a0 00007f77aa7fbce0 00007f77ac5237c8 00007f77aa7fbce0 00007f77aafecb30 00007f77a41109b0 00007f779c07eb50 00007f77aa7fbce0 0000000000000000 0000000000217bf3 00007f77aafecb10 000000000041a22d 0000000000010202 0000000000000033 0000000000000004 000000000000000e fffffffe7ffbfa17 0000000000000048 
May 23 17:11:05 fsiptv tvheadend[3785]: CRASH: STACKTRACE
May 23 17:11:05 fsiptv tvheadend[3785]: CRASH: /usr/src/tvheadend/src/trap.c:139 0x4209fb
May 23 17:11:05 fsiptv tvheadend[3785]: CRASH: ??:0 0x7f77b52ee060
May 23 17:11:06 fsiptv tvheadend[3785]: CRASH: /usr/src/tvheadend/src/htsp.c:1616 0x41a22d
May 23 17:11:06 fsiptv tvheadend[3785]: CRASH: /usr/src/tvheadend/src/streaming.c:288 0x40d5ae
May 23 17:11:06 fsiptv tvheadend[3785]: CRASH: /usr/src/tvheadend/src/parsers.c:1350 0x41639d
May 23 17:11:06 fsiptv tvheadend[3785]: CRASH: /usr/src/tvheadend/src/parsers.c:1092 0x417825
May 23 17:11:06 fsiptv tvheadend[3785]: CRASH: /usr/src/tvheadend/src/parsers.c:332 0x416151
May 23 17:11:06 fsiptv tvheadend[3785]: CRASH: /usr/src/tvheadend/src/tsdemux.c:122 0x418bcc
May 23 17:11:06 fsiptv tvheadend[3785]: CRASH: /usr/src/tvheadend/src/tsdemux.c:256 0x41900e
May 23 17:11:06 fsiptv tvheadend[3785]: CRASH: /usr/src/tvheadend/src/iptv_input.c:116 0x42223d
May 23 17:11:06 fsiptv tvheadend[3785]: CRASH: ??:0 0x7f77b52e5efc
May 23 17:11:06 fsiptv tvheadend[3785]: CRASH: clone+0x6d  (/lib/x86_64-linux-gnu/libc.so.6)
May 23 17:11:06 fsiptv kernel: [377607.830230] init: tvheadend main process (3785) killed by SEGV signal

I have seen your GDB wiki, quite reasonable. I think i have no other choice than perform this, altough very complicated here, error only appears each day with low propability so i will have to add some more close service watch and alerting as i cant afford to have it down for a long time, thats why the upstart respawns are there. I will try to put a brick on remote to switch channels all the time, lets see if it increases propablity of this coredump to happen again.

And, i dont think this is EPG issue as Ian suggests - i have epg completelly disabled, my tvheadend is runing solely from 300mbps multicast packet

Anyway, EUR 100 prize on beating this bug still stays - i do not really want to waste anybodys time that will be spent with it.

#14 Updated by Lars Op den Kamp - almost 5 years ago

It's probably caused by some PR that has been merged in our build. I'll investigate the issue and post new builds asap.

Lars

#15 Updated by Tom Warren almost 5 years ago

We also see crashes with signals 6 and 7; are these likely caused by the same bug? Or might it be something different? We can try to introduce the condition again to get a dump on one of these if it would help...

[email protected]:~$ zgrep "CRASH: Signal:" /var/log/syslog.5.gz /var/log/syslog.4.gz /var/log/syslog.3.gz /var/log/syslog.2.gz /var/log/syslog.1 /var/log/syslog| grep 2.99.16.g0e3bb |grep -v "Signal: 11" 
/var/log/syslog.5.gz:May  8 08:16:38 videobox tvheadend[1831]: CRASH: Signal: 6 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /  
/var/log/syslog.5.gz:May 10 21:21:07 videobox tvheadend[1810]: CRASH: Signal: 6 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /  
/var/log/syslog.4.gz:May 13 14:57:58 videobox tvheadend[1758]: CRASH: Signal: 6 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /  
/var/log/syslog.2.gz:May 15 20:34:36 videobox tvheadend[1755]: CRASH: Signal: 7 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /  
/var/log/syslog:May 20 01:06:45 videobox tvheadend[7437]: CRASH: Signal: 6 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /  
/var/log/syslog:May 20 04:54:44 videobox tvheadend[9655]: CRASH: Signal: 6 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /  
/var/log/syslog:May 20 05:01:39 videobox tvheadend[16850]: CRASH: Signal: 6 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: / 

#16 Updated by Patric Gustavsson almost 5 years ago

Hi,

I think i am having the same issues, resolved by deleting the epgdb file, but it keeps crashing, and i have to delete the file a couple of times a day.

Som logs :

May 26 17:51:55 mediapc tvheadend1287: EPG: Injected 12648 event from disk database
May 26 17:51:55 mediapc tvheadend1287: dvr: Creating new configuration ''
May 26 17:51:56 mediapc tvheadend1287: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (2.12.99~pulse-6) [34817c47be6dc5fa5e3e0313ca116b92d05614a1] CWD: /
May 26 17:51:56 mediapc tvheadend1287: CRASH: Fault address (nil) (Address not mapped)
May 26 17:51:56 mediapc tvheadend1287: CRASH: Loaded libraries: /lib/i386-linux-gnu/librt.so.1 /lib/i386-linux-gnu/libdl.so.2 /usr/lib/i386-linux-gnu/libavahi-common.so.3 /usr/lib/i386-linux-gnu/libavahi-client.so.3 /lib/i386-linux-gnu/libcrypto.so.1.0.0 /lib/i386-linux-gnu/libpthread.so.0 /lib/i386-linux-gnu/libc.so.6 /lib/ld-linux.so.2 /lib/i386-linux-gnu/libdbus-1.so.3 /lib/i386-linux-gnu/libz.so.1 /lib/i386-linux-gnu/libnss_compat.so.2 /lib/i386-linux-gnu/libnsl.so.1 /lib/i386-linux-gnu/libnss_nis.so.2 /lib/i386-linux-gnu/libnss_files.so.2
May 26 17:51:56 mediapc tvheadend1287: CRASH: Register dump [19]: 00000033 c1520000 ffff007b 0000007b 4fc3bd20 4fc3b618 08d52b60 bfc2ba7c 090fec60 090fec40 090ff318 00000000 0000000e 00000004 0024b6c8 00000073 00010202 bfc2ba7c 0000007b
May 26 17:51:56 mediapc tvheadend1287: CRASH: STACKTRACE
May 26 17:51:56 mediapc tvheadend1287: CRASH: ??:0 0x8068022
May 26 17:51:56 mediapc tvheadend1287: CRASH: __kernel_rt_sigreturn+0x0 ()
May 26 17:51:56 mediapc tvheadend1287: CRASH: ??:0 0x24b6c8
May 26 17:51:56 mediapc tvheadend1287: CRASH: ??:0 0x806cbe4
May 26 17:51:56 mediapc tvheadend1287: CRASH: ??:0 0x806ced2
May 26 17:51:56 mediapc tvheadend1287: CRASH: ??:0 0x806cf81
May 26 17:51:56 mediapc tvheadend1287: CRASH: ??:0 0x806f53a
May 26 17:51:56 mediapc tvheadend1287: CRASH: ??:0 0x806f9d3
May 26 17:51:56 mediapc tvheadend1287: CRASH: ??:0 0x804d60f
May 26 17:51:56 mediapc tvheadend1287: CRASH: ??:0 0x806fad0
May 26 17:51:56 mediapc tvheadend1287: CRASH: ??:0 0x806db51
May 26 17:51:56 mediapc tvheadend1287: CRASH: ??:0 0x804b575
May 26 17:51:56 mediapc tvheadend1287: CRASH: __libc_start_main+0xf3 (/lib/i386-linux-gnu/libc.so.6)
May 26 17:51:56 mediapc tvheadend1287: CRASH: ??:0 0x804b7c5
May 26 17:51:56 mediapc kernel: [ 31.375295] tvheadend1287: segfault at 0 ip 0024b6c8 sp bfc2ba7c error 4 in libc-2.13.so[12b000+178000]
May 26 18:01:41 mediapc tvheadend2398: dvb: Unable to open /dev/dvb/adapter0/frontend0 -- Permission denied

#17 Updated by Claudio Meldini almost 5 years ago

Hello, my opinion:
the problem is related to autorecordings.

Error start after the lines:
EPG: Injected 6525 event from disk database
dvr: Creating new configuration ''
CRASH: Signal: 11 in PRG: tvheadend (2.12.99~pulse-6) [34817c47be6dc5fa5e3e0313ca116b92d05614a1]
and so on...
----i resolved by deleting the epgdb file, but it keeps crashing, and i have to delete the file every reboot (xbmcbuntu xbmc eden) or every tvheadend restart (without reboot).
----i tried to make autorecordings from tab "electronic program guide - create autorec" and tab "digital video recorder - automatic recorder - add entry" without success (tv headend crash, i must delete file epgdb)
----i tried create autorec from channels with only eit (not xmltv) and with only xmltv (no eit) without success (tv headend crash, i must delete file epgdb)
----i tried create autorec with user "*" and user "admin" (both have all permission in tab "configuration - access control") without success (tv headend crash, i must delete file epgdb)
----i tried create a lot of manual rec from tab "electronic program guide" and with xbmc with success!!!!!!!!!!!!!!!!!!!!!!!!!

Maybe the problem is that tvheadend try to load autorec BEFORE epg update (both xmltv and eit or only one makes no difference), and this operation corruptes file "epgdb". Is that possible?

#18 Updated by Sébastien Aubry almost 5 years ago

I have a lot of autorecordings on my setup and they work fine.
In my opinion, these crashes are related to unfinished or corrupted EPG updates, for instance related to reboots, lack of free space, or other crashes making tvheadend run a lot of simultaneous instances of the EPG update.
I hope we will find out the cause of these crashes soon!

#19 Updated by Tom Warren almost 5 years ago

This bug is for 2.99.16.g0e3bb and not 2.12.99~pulse-6 and does not seem related to recordings/EPG updates. Can those using 2.12.99~pulse-6 please open another bug. Cheers.

#20 Updated by Claudio Meldini almost 5 years ago

Tom Warren wrote:

This bug is for 2.99.16.g0e3bb and not 2.12.99~pulse-6 and does not seem related to recordings/EPG updates. Can those using 2.12.99~pulse-6 please open another bug. Cheers.

ok, sorry :-)

#21 Updated by Sébastien Aubry almost 5 years ago

Tom Warren wrote:

This bug is for 2.99.16.g0e3bb and not 2.12.99~pulse-6 and does not seem related to recordings/EPG updates. Can those using 2.12.99~pulse-6 please open another bug. Cheers.

Done in demand #1019

#22 Updated by Tom Warren almost 5 years ago

Lars Op den Kamp - wrote:

It's probably caused by some PR that has been merged in our build. I'll investigate the issue and post new builds asap.

Lars

Is this in regard to our crash on unsubscribe issue? We are anxiously awaiting your update.

#23 Updated by Tom Warren almost 5 years ago

We are still seeing the crash on unsubscribe on almost a daily basis.

May 31 00:15:58 videobox tvheadend[1797]: htsp: 192.168.1.103 [ XBMC Media Center ]: Disconnected
May 31 00:15:58 videobox tvheadend[1797]: subscription: "192.168.1.103 [ XBMC Media Center ]" unsubscribing from "1-TSP4-True" 
May 31 00:15:58 videobox tvheadend[1797]: CRASH: Signal: 11 in PRG: /usr/local/bin/tvheadend (2.99.16.g0e3bb) [bc0700af06b91c404c37ca2328ab781f5e76ab3a] CWD: /  
May 31 00:15:58 videobox tvheadend[1797]: CRASH: Fault address (nil) (Address not mapped)
May 31 00:15:58 videobox tvheadend[1797]: CRASH: Loaded libraries: /lib/librt.so.1 /lib/libdl.so.2 /usr/lib/libavahi-common.so.3 /usr/lib/libavahi-client.so.3 /lib/libssl.so.0.9.8 /lib/libcrypto.so.0.9.8 /lib/libpthread.so.0 /lib/libm.so.6 /lib/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/libdbus-1.so.3 /lib/libz.so.1 /lib/libnss_compat.so.2 /lib/libnsl.so.1 /lib/libnss_nis.so.2 /lib/libnss_files.so.2  
May 31 00:15:58 videobox tvheadend[1797]: CRASH: Register dump [23]: 00007fd994bb6cc0 00000000000021a1 0000000000000000 0000000000000000 00007fd994bb6cc0 00007fd98fffee30 00007fd98fffee38 00007fd994bb6cb0 0000000000000002 0000000000000000 0000000000000000 00007fd994bb6c50 0000000000000000 0000000000ea7318 00007fd9b3fc2a9c 00007fd98fffee20 000000000041c176 0000000000010206 0000000000000033 0000000000000004 000000000000000e fffffffe7ffbfa17 0000000000000000 
May 31 00:15:58 videobox tvheadend[1797]: CRASH: STACKTRACE
May 31 00:15:58 videobox tvheadend[1797]: CRASH: /home/videobox/tvheadend/src/trap.c:139 0x4217cb
May 31 00:15:58 videobox tvheadend[1797]: CRASH: ??:0 0x7fd9b3fc6b40
May 31 00:15:58 videobox tvheadend[1797]: CRASH: /home/videobox/tvheadend/src/htsp.c:1259 0x41c176
May 31 00:15:58 videobox tvheadend[1797]: CRASH: ??:0 0x7fd9b3fbe971
May 31 00:15:58 videobox tvheadend[1797]: CRASH: clone+0x6d  (/lib/libc.so.6)
May 31 00:15:58 videobox kernel: [25197.621383] tvheadend[8609]: segfault at 0 ip 000000000041c176 sp 00007fd98fffee20 error 4 in tvheadend[400000+8e000]

#24 Updated by Andreas Öman almost 5 years ago

  • Status changed from New to Accepted

Looking at it...

#25 Updated by Andreas Öman almost 5 years ago

There is a mutex that's not properly held during unsubscribe. Probably what's causing the trouble.

#26 Updated by Andreas Öman almost 5 years ago

  • Status changed from Accepted to Fixed
  • % Done changed from 0 to 100

#27 Updated by Zdenek Janda almost 5 years ago

Thanks, updated from 0e3bb418699349f7e4f5e9fa32166a7f9d897101 to fc10a54211dec7d20e7e4c031c1e9f297f8d72ed, we will see how it holds in day/two.

#28 Updated by Zdenek Janda almost 5 years ago

Bug seems not to be fixed, see list of coredumps (the one after new patch is on the end):

[649568.527391] tvheadend[7178]: segfault at 48 ip 000000000041a22d sp 00007f0a65feab10 error 4 in tvheadend[400000+8f000]
[649568.554468] init: tvheadend main process (7167) killed by SEGV signal
[649568.554559] init: tvheadend main process ended, respawning
[728016.928484] tvheadend[8174]: segfault at 0 ip 000000000041affd sp 00007f09e47d7e50 error 4 in tvheadend[400000+8f000]
[728016.957310] init: tvheadend main process (7605) killed by SEGV signal
[728016.957392] init: tvheadend main process ended, respawning
[754214.508406] tvheadend[8190]: segfault at 48 ip 000000000041a22d sp 00007fcc24bc8b10 error 4 in tvheadend[400000+8f000]
[754214.543169] init: tvheadend main process (8180) killed by SEGV signal
[754214.543259] init: tvheadend main process ended, respawning
[787501.155465] tvheadend[8339]: segfault at 48 ip 000000000041a22d sp 00007fed2e7ebb10 error 4 in tvheadend[400000+8f000]
[787501.181902] init: tvheadend main process (8329) killed by SEGV signal
[787501.181985] init: tvheadend main process ended, respawning
[926217.397144] tvheadend[8737]: segfault at 48 ip 000000000041a22d sp 00007f2a0efecad0 error 4 in tvheadend[400000+8f000]
[926217.426927] init: tvheadend main process (8727) killed by SEGV signal
[926217.427015] init: tvheadend main process ended, respawning
[1250655.942591] tvheadend[11581]: segfault at 14fc89ef3 ip 000000000041d090 sp 00007f41e0fe8df0 error 4 in tvheadend[400000+8f000]
[1250655.975386] init: tvheadend main process (9406) killed by SEGV signal
[1250655.975463] init: tvheadend main process ended, respawning
[1261353.611481] tvheadend[16367] trap stack segment ip:41d090 sp:7fbe44ff8df0 error:0
[1261353.637126] init: tvheadend main process (11589) killed by BUS signal
[1261353.637199] init: tvheadend main process ended, respawning
[1528414.396599] tvheadend[17663]: segfault at 48 ip 000000000041a26d sp 00007fbeee7ebb10 error 4 in tvheadend[400000+8f000]
[1528414.427933] init: tvheadend main process (17650) killed by SEGV signal
[1528414.428071] init: tvheadend main process ended, respawning

Can other users confirm/deny if the patch worked for them ? It seems not likely for me.

#29 Updated by Zdenek Janda almost 5 years ago

From what i see here (60 users using it), new code is MUCH more stable (it crashed once in 5 days, as opposite from before crashing each day). Lets see for longer time, how much coredumps will arrive. I am still having issues producing coredumps, from whatever reason code wont coredump correctly for later gdb analysis - i dont know what the problem is, as my example C crash test code will coredump nicely so kernel settings are correct i assume. Once i have alerting up, i will run tvheadend in gdb session, but cant afford it right now as its being used by many users and i dont want any unncessary downtime. Anybody else tested and see improvement ?

#30 Updated by Zdenek Janda almost 5 years ago

Here we go with latest. I have added some channels and crashes seems to be more frequent, investigating about issue.

Jun  7 21:55:29 fsiptv tvheadend[21838]: subscription: "172.30.108.119 [ XBMC Media Center ]" unsubscribing from "CNBC Europe" 
Jun  7 21:55:29 fsiptv tvheadend[21838]: subscription: "172.30.108.119 [ XBMC Media Center ]" subscribing on "RTL Nitro", weight: 150, adapter: "eth0", network: "<N/A>", mux: "224.0.9.7", provider: "<N/A>", service: "<N/A>", quality: 100
Jun  7 21:55:29 fsiptv tvheadend[21838]: Service: eth0/224.0.9.7: Status changed to [Hardware input] 
Jun  7 21:55:29 fsiptv tvheadend[21838]: Service: eth0/224.0.9.7: Status changed to [Hardware input] [Input on service] 
Jun  7 21:55:29 fsiptv tvheadend[21838]: Service: eth0/224.0.9.7: Status changed to [Hardware input] [Input on service] [Demuxed packets] 
Jun  7 21:55:29 fsiptv tvheadend[21838]: Service: eth0/224.0.9.7: Status changed to [Hardware input] [Input on service] [Demuxed packets] [Reassembled packets] 
Jun  7 21:55:38 fsiptv tvheadend[21838]: subscription: "172.30.108.119 [ XBMC Media Center ]" unsubscribing from "RTL Nitro" 
Jun  7 21:55:38 fsiptv tvheadend[21838]: subscription: "172.30.108.119 [ XBMC Media Center ]" subscribing on "N-TV", weight: 150, adapter: "eth0", network: "<N/A>", mux: "224.0.9.5", provider: "<N/A>", service: "<N/A>", quality: 100
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: Signal: 11 in PRG: /usr/local/bin/tvheadend (2.99.26.gfc10a) [da89eeee553903800ec294b230c365b42f3da09f] CWD: /  
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: Fault address 0x48 (Address not mapped)
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: Loaded libraries: /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libdl.so.2 /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/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libz.so.1 /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-gnu/libnss_files.so.2  
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: Register dump [23]: 00007f2cc2ffcd08 000000000000555b 0000000000000001 0000000000000206 0000000001ff5e60 0000000001ff5b50 00007f2cc2ffcce0 00007f2cdc0343a8 00007f2cc2ffcce0 00007f2cda7ebb30 00007f2cd4039120 0000000001ff69d0 00007f2cc2ffcce0 0000000000000000 00007f2ce4917d75 00007f2cda7ebb10 000000000041a26d 0000000000010202 0000000000000033 0000000000000004 000000000000000e fffffffe7ffbfa17 0000000000000048 
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: STACKTRACE
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: /usr/src/tvheadend/src/trap.c:139 0x42096b
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: ??:0 0x7f2ce4919060
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: /usr/src/tvheadend/src/htsp.c:1619 0x41a26d
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: /usr/src/tvheadend/src/streaming.c:288 0x40d50e
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: /usr/src/tvheadend/src/parsers.c:1350 0x4162fd
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: /usr/src/tvheadend/src/parsers.c:1092 0x417785
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: /usr/src/tvheadend/src/parsers.c:332 0x4160b1
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: /usr/src/tvheadend/src/tsdemux.c:122 0x418b2c
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: /usr/src/tvheadend/src/tsdemux.c:256 0x418f6e
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: /usr/src/tvheadend/src/iptv_input.c:116 0x4221ad
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: ??:0 0x7f2ce4910efc
Jun  7 21:55:38 fsiptv tvheadend[21838]: CRASH: clone+0x6d  (/lib/x86_64-linux-gnu/libc.so.6)
Jun  7 21:55:38 fsiptv kernel: [1690680.069588] tvheadend[21851]: segfault at 48 ip 000000000041a26d sp 00007f2cda7ebb10 error 4 in tvheadend[400000+8f000]
Jun  7 21:55:38 fsiptv kernel: [1690680.095051] init: tvheadend main process (21838) killed by SEGV signal
Jun  7 21:55:38 fsiptv kernel: [1690680.095161] init: tvheadend main process ended, respawning

#31 Updated by Zdenek Janda almost 5 years ago

It seems, my recent crashes are unrelated to htsp.c, but they root in iptv packet handling. Will wait and create separate issue. Anybody can confirm that the above patch worked for them ?

#32 Updated by Andreas Öman almost 5 years ago

Looks like a different bug.

#33 Updated by Andreas Öman almost 5 years ago

So please open a new issue and we can continue there.

#34 Updated by Tom Warren almost 5 years ago

I can confirm the update has resolved the "crash on unsubscribe" issue. We have not seen a crash in 7 days. Thanks so much!

Also available in: Atom PDF