Project

General

Profile

Bug #4888

TVH crashes when playing encrypted channels

Added by Thomas xyz about 2 years ago. Updated over 1 year ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Crashes
Target version:
-
Start date:
2018-01-24
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1001~g3ff1f4dac
Affected Versions:

Description

When I try in TVH an encrypted digital channels such as Pro7HD play TVH crashes, non-encrypted channels work fine

In the log is only this
2018-01-22 21:12:54.000 [ INFO]:xmltv: /usr/bin/tv_grab_file: grab /usr/bin/tv_grab_file
2018-01-22 21:12:54.013 [ INFO]:spawn: Executing "/usr/bin/tv_grab_file"
2018-01-22 21:12:54.061 [ ERROR]:xmltv: /usr/bin/tv_grab_file: no output detected
2018-01-22 21:12:54.061 [WARNING]:xmltv: /usr/bin/tv_grab_file: grab returned no data
2018-01-22 21:13:05.143 [ INFO]:mpegts: 130MHz in DVB-C Netzwerk - tuning on Silicon Labs Si2168 #0 : DVB-C #0
2018-01-22 21:13:05.145 [ INFO]:subscription: 0001: "192.168.188.25 [ Thomas | Kodi Media Center ]" subscribing on channel "ProSieben HD", weight: 100, adapter: "Silicon Labs Si2168 #0 : DVB-C #$
2018-01-22 21:13:05.194 [WARNING]:linuxdvb: Unable to provide BER value.
2018-01-22 21:13:05.194 [WARNING]:linuxdvb: Unhandled ERROR_BLOCK_COUNT scale: 0
2018-01-22 21:13:05.194 [WARNING]:linuxdvb: Unable to provide UNC value.
2018-01-22 21:13:05.347 [ INFO]:cwc: localhost:24241: Disconnected
2018-01-22 21:13:05.347 [ INFO]:cwc: localhost:24241: Automatic connection attempt in 2 seconds


Files

gdb.txt (34.2 KB) gdb.txt Thomas xyz, 2018-01-26 06:38
gdb.txt (35.7 KB) gdb.txt Thomas xyz, 2018-01-27 15:47
gdb.txt (36.7 KB) gdb.txt Thomas xyz, 2018-01-28 17:07
gdb.txt (523 Bytes) gdb.txt Thomas xyz, 2018-01-28 17:12
gdb.short.txt (6.52 KB) gdb.short.txt da h4xX0rz1sT, 2018-10-12 11:47
tvhtrace.log (11.3 KB) tvhtrace.log da h4xX0rz1sT, 2018-10-12 11:47
dump.txt (111 KB) dump.txt running with and without valgrind Klara Jansen, 2018-10-13 10:23

Associated revisions

Revision 3f74523d (diff)
Added by Jaroslav Kysela over 1 year ago

cwc: fix the wrong memory access in cwc_send_msg()/des, fixes #4888

History

#1

Updated by QingChuan Lee about 2 years ago

I met the same problem.

#3

Updated by Thomas xyz about 2 years ago

Hi, here is the trace log like this https://tvheadend.org/projects/tvheadend/wiki/Traces
2018-01-25 19:51:23.606 [ ERROR]:config: unkown subsystem 'pat'
2018-01-25 19:51:23.606 [ ERROR]:config: unkown subsystem 'pmt'
2018-01-25 19:51:23.606 [ ERROR]:config: unkown subsystem 'bat'
2018-01-25 19:53:03.942 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C362_271F_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:03.944 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C362_271F_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:03.945 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C35F_271D_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:03.947 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C35F_271D_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:03.957 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_C362_271F_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:03.958 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_C35F_271D_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:03.964 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D161_2710_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:03.965 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_2A_4_85_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:03.966 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D161_2710_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:03.967 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_2A_4_85_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:03.968 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_2A_4_85_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:03.968 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_D161_2710_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.007 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C359_271E_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.007 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D163_2713_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.009 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C359_271E_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.009 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D163_2713_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.011 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_D163_2713_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.011 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_C359_271E_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.025 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D04F_2714_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.025 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D162_2713_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.027 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D162_2713_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.031 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D04F_2714_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.031 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_D162_2713_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.033 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_D04F_2714_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.855 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C39A_2724_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.857 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C39A_2724_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.860 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_C39A_2724_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.869 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D0A5_2718_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.871 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D0A5_2718_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.873 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_D0A5_2718_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.899 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_B_2_85_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.901 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_B_2_85_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.903 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_B_2_85_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.982 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C362_271F_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.983 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D161_2710_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.984 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C362_271F_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.990 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D161_2710_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.992 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_C362_271F_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:04.992 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_D161_2710_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:05.550 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C35F_271D_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:05.553 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C35F_271D_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:05.557 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_C35F_271D_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.536 [ TRACE]:htsp: 192.168.188.25 [ Thomas | Kodi Media Center ] - method subscriptionChangeWeight
2018-01-25 19:53:06.537 [ TRACE]:htsp: 192.168.188.25 [ Thomas | Kodi Media Center ] - method subscribe
2018-01-25 19:53:06.538 [ DEBUG]:htsp: 192.168.188.25 [ Thomas | Kodi Media Center ] - subscribe to ProSieben HD using profile htsp
2018-01-25 19:53:06.538 [ DEBUG]:service: 3: ProSieben HD si 0x1a5a6e8 Silicon Labs Si2168 #0 : DVB-C #0 weight 30 prio 10 error 0
2018-01-25 19:53:06.538 [ INFO]:mpegts: 130MHz in DVB-C Netzwerk - tuning on Silicon Labs Si2168 #0 : DVB-C #0
2018-01-25 19:53:06.538 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - stopping mux (forced)
2018-01-25 19:53:06.538 [ DEBUG]:linuxdvb: Silicon Labs Si2168 #0 : DVB-C #0 - stopping 122MHz in DVB-C Netzwerk
2018-01-25 19:53:06.611 [ DEBUG]:linuxdvb: Silicon Labs Si2168 #0 : DVB-C #0 - stopped dvr thread
2018-01-25 19:53:06.612 [ DEBUG]:htsp: 192.168.188.25 [ Thomas | Kodi Media Center ] - subscription stop
2018-01-25 19:53:06.612 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 0065 (101) [8/0x10e2988]
2018-01-25 19:53:06.612 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 0579 (1401) [8/0x10e2988]
2018-01-25 19:53:06.612 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 0578 (1400) [8/0x10e2988]
2018-01-25 19:53:06.612 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 057A (1402) [8/0x10e2988]
2018-01-25 19:53:06.612 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 057B (1403) [8/0x10e2988]
2018-01-25 19:53:06.612 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 057C (1404) [8/0x10e2988]
2018-01-25 19:53:06.612 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 0000 (0) [20/0x2b436f0]
2018-01-25 19:53:06.612 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 0001 (1) [16/0x2b44b20]
2018-01-25 19:53:06.612 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 0010 (16) [16/0x2c96a50]
2018-01-25 19:53:06.612 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 0011 (17) [16/0x2c992b0]
2018-01-25 19:53:06.612 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 0011 (17) [20/0x2c97e80]
2018-01-25 19:53:06.613 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 0012 (18) [20/0x29db558]
2018-01-25 19:53:06.613 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 0065 (101) [16/0x2b422c0]
2018-01-25 19:53:06.613 [ DEBUG]:mpegts: 122MHz in DVB-C Netzwerk - close PID 1FFB (8187) [20/0x29dc988]
2018-01-25 19:53:06.613 [ DEBUG]:linuxdvb: Silicon Labs Si2168 #0 : DVB-C #0 - starting 130MHz in DVB-C Netzwerk
2018-01-25 19:53:06.613 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - started
2018-01-25 19:53:06.613 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 1FFB (8187) [20/0x29dae70]
2018-01-25 19:53:06.613 [ DEBUG]:tbl-eit: mgt: installed table handlers
2018-01-25 19:53:06.613 [ DEBUG]:psip: psip: grab started
2018-01-25 19:53:06.613 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 0012 (18) [20/0x29dc2a0]
2018-01-25 19:53:06.613 [ DEBUG]:tbl-eit: eit: installed table handlers
2018-01-25 19:53:06.613 [ DEBUG]:tbl-eit: eit: grab started
2018-01-25 19:53:06.613 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 0069 (105) [8/0x12d5088]
2018-01-25 19:53:06.613 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 1AB9 (6841) [8/0x12d5088]
2018-01-25 19:53:06.613 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 1ABA (6842) [8/0x12d5088]
2018-01-25 19:53:06.613 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 1ABC (6844) [8/0x12d5088]
2018-01-25 19:53:06.613 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 0069 (105) [16/0x2b422c0]
2018-01-25 19:53:06.613 [ DEBUG]:cwc: localhost:24241: DVB-C Netzwerk/130MHz/ProSieben HD reusing CWC localhost:24241
2018-01-25 19:53:06.613 [ DEBUG]:htsp: 192.168.188.25 [ Thomas | Kodi Media Center ] - subscription grace 5 seconds
2018-01-25 19:53:06.614 [ INFO]:subscription: 0021: "192.168.188.25 [ Thomas | Kodi Media Center ]" subscribing on channel "ProSieben HD", weight: 100, adapter: "Silicon Labs Si2168 #0 : DVB-C #0", network: "DVB-C Netzwerk", mux: "130MHz", provider: "Digital Free", service: "ProSieben HD", profile="htsp", hostname="192.168.188.25", username="Thomas", client="Kodi Media Center"
2018-01-25 19:53:06.614 [ DEBUG]:service: 3: RTL si 0x2c959e0 Silicon Labs Si2168 #0 : DVB-C #0 weight 100 prio 10 error 0
2018-01-25 19:53:06.638 [ TRACE]:htsp: 192.168.188.25 [ Thomas | Kodi Media Center ] - method unsubscribe
2018-01-25 19:53:06.638 [ INFO]:subscription: 001F: "192.168.188.25 [ Thomas | Kodi Media Center ]" unsubscribing from "RTL", hostname="192.168.188.25", username="Thomas", client="Kodi Media Center"
2018-01-25 19:53:06.653 [ TRACE]:htsp: 192.168.188.25 [ Thomas | Kodi Media Center ] - method subscribe
2018-01-25 19:53:06.653 [ DEBUG]:htsp: 192.168.188.25 [ Thomas | Kodi Media Center ] - subscribe to SAT.1 HD using profile htsp
2018-01-25 19:53:06.653 [ DEBUG]:service: 3: SAT.1 HD si 0x2cab998 Silicon Labs Si2168 #0 : DVB-C #0 weight 100 prio 10 error 0
2018-01-25 19:53:06.734 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C35F_271D_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.734 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C362_271F_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.735 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C35F_271D_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.736 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C362_271F_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.737 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D161_2710_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.737 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_C35F_271D_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.738 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_C362_271F_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.740 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D161_2710_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.744 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_2A_4_85_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.744 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C359_271E_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.745 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_2A_4_85_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.745 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_C359_271E_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.747 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_D161_2710_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.747 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_2A_4_85_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.748 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_C359_271E_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.754 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D163_2713_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.755 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D04F_2714_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.755 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D162_2713_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.756 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D04F_2714_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.757 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D163_2713_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.757 [ INFO]:http: 192.168.188.25: HTTP/1.1 HEAD /home/hts/.hts/tvheadend/picons/1_0_1_D162_2713_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.758 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_D162_2713_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.758 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_D163_2713_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.759 [ INFO]:http: 192.168.188.25: HTTP/1.1 GET /home/hts/.hts/tvheadend/picons/1_0_1_D04F_2714_F001_FFFF0000_0_0_0.png -- 1
2018-01-25 19:53:06.779 [ DEBUG]:linuxdvb: Silicon Labs Si2168 #0 : DVB-C #0 - status GOOD (SIGNAL | CARRIER | VITERBI | SYNC | LOCK)
2018-01-25 19:53:06.779 [ DEBUG]:linuxdvb: Silicon Labs Si2168 #0 : DVB-C #0 - locked
2018-01-25 19:53:06.780 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 0000 (0) [20/0x2c97e80]
2018-01-25 19:53:06.780 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 0001 (1) [16/0x2c992b0]
2018-01-25 19:53:06.780 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 0010 (16) [16/0x2cabe60]
2018-01-25 19:53:06.780 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 0011 (17) [20/0x2cad290]
2018-01-25 19:53:06.780 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 0011 (17) [16/0x2cae6c0]
2018-01-25 19:53:06.790 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 1AC0 (6848) [16/0x2c96a50]
2018-01-25 19:53:06.790 [ DEBUG]:service: DVB-C Netzwerk/130MHz/ProSieben HD: Status changed to [Hardware input]
2018-01-25 19:53:06.790 [ DEBUG]:service: DVB-C Netzwerk/130MHz/ProSieben HD: Status changed to [Hardware input] [Input on service]
2018-01-25 19:53:06.790 [ DEBUG]:service: DVB-C Netzwerk/130MHz/ProSieben HD: Status changed to [Hardware input] [Input on service] [No access]
2018-01-25 19:53:06.790 [ DEBUG]:service: DVB-C Netzwerk/130MHz/ProSieben HD: Status changed to [Hardware input] [Input on service] [Demuxed packets] [No access]
2018-01-25 19:53:06.839 [ DEBUG]:tbl-base: sdt: onid F001 (61441) tsid 271D (10013)
2018-01-25 19:53:06.839 [ DEBUG]:tbl-base: sdt: mux 130MHz in DVB-C Netzwerk
2018-01-25 19:53:06.839 [ DEBUG]:tbl-base: sdt: sid C351 (50001) running 4 free_ca 1
2018-01-25 19:53:06.839 [ DEBUG]:tbl-base: sdt: sid C352 (50002) running 4 free_ca 1
2018-01-25 19:53:06.839 [ DEBUG]:tbl-base: sdt: sid C353 (50003) running 4 free_ca 1
2018-01-25 19:53:06.839 [ DEBUG]:tbl-base: sdt: sid C354 (50004) running 4 free_ca 1
2018-01-25 19:53:06.839 [ DEBUG]:tbl-base: sdt: sid C35D (50013) running 4 free_ca 1
2018-01-25 19:53:06.839 [ DEBUG]:tbl-base: sdt: sid C35F (50015) running 4 free_ca 1
2018-01-25 19:53:06.839 [ DEBUG]:tbl-base: sdt: sid C389 (50057) running 4 free_ca 1
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: sid C35F (50015)
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: pcr_pid 1AB9
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: caid 09C7 (NDS) provider 00000000 pid 1AC1
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: caid 1861 (NagraVision) provider 00000000 pid 1ABD
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: caid 1834 (NagraVision) provider 00000000 pid 1AC0
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: caid 09FD (NDS) provider 00000000 pid 1ABF
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: pid 160E estype 5
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: pid 1AB9 estype 27
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: type H264 position 0
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: pid 1ABA estype 6
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: type AC3 position 0
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: language ger
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: pid 1ABC estype 6
2018-01-25 19:53:06.863 [ DEBUG]:tbl-base: pmt: type TELETEXT position 0
2018-01-25 19:53:06.882 [ DEBUG]:tbl-base: pat: 0x12a6a48: tsid 271D (10013)
2018-01-25 19:53:06.883 [ DEBUG]:tbl-base: pat: nit on pid 0010 (16)
2018-01-25 19:53:06.883 [ DEBUG]:tbl-base: pat: sid C351 (50001) on pid 0065 (101)
2018-01-25 19:53:06.883 [ DEBUG]:tbl-base: pat: sid C352 (50002) on pid 0066 (102)
2018-01-25 19:53:06.883 [ DEBUG]:tbl-base: pat: sid C353 (50003) on pid 0067 (103)
2018-01-25 19:53:06.883 [ DEBUG]:tbl-base: pat: sid C354 (50004) on pid 0068 (104)
2018-01-25 19:53:06.883 [ DEBUG]:tbl-base: pat: sid C35D (50013) on pid 006A (106)
2018-01-25 19:53:06.883 [ DEBUG]:tbl-base: pat: sid C35F (50015) on pid 0069 (105)
2018-01-25 19:53:06.883 [ DEBUG]:tbl-base: pat: sid C389 (50057) on pid 006B (107)
2018-01-25 19:53:06.942 [ DEBUG]:tbl-base: sdt: completed pid 17 table 00000040 / 000000f8
2018-01-25 19:53:06.968 [ DEBUG]:cwc: localhost:24241: ECM state INIT
2018-01-25 19:53:06.968 [ DEBUG]:cwc: localhost:24241: Insert preferred ECM (PID 6848) for service "ProSieben HD"
2018-01-25 19:53:06.969 [ DEBUG]:cwc: localhost:24241: Sending ECM (PID 6848) section=0/0 for service "ProSieben HD" (seqno: 14)
2018-01-25 19:53:06.982 [ DEBUG]:tbl-base: cat: caid 09C7 (2503) pid 1509 (5385)
2018-01-25 19:53:06.982 [ DEBUG]:tbl-base: cat: caid 1861 (6241) pid 1507 (5383)
2018-01-25 19:53:06.983 [ DEBUG]:tbl-base: cat: caid 1834 (6196) pid 1505 (5381)
2018-01-25 19:53:07.006 [ DEBUG]:mpegts: 130MHz in DVB-C Netzwerk - open PID 1505 (5381) [16/0xb6315370]
2018-01-25 19:53:07.025 [ DEBUG]:tbl-base: bat: bouquet FF00 (65280) [Kabel Deutschland SSU Bouquet]
2018-01-25 19:53:07.071 [ DEBUG]:tbl-base: pmt: completed pid 105 table 00000002 / 000000ff
2018-01-25 19:53:07.086 [ DEBUG]:tbl-base: pat: completed pid 0 table 00000000 / 00000000
2018-01-25 19:53:07.174 [ DEBUG]:tbl-base: cat: completed pid 1 table 00000001 / 000000ff
2018-01-25 19:53:07.353 [ DEBUG]:cwc: localhost:24241: Sending ECM (PID 6848) section=0/0 for service "ProSieben HD" (seqno: 16)

and here the Debugging like this https://tvheadend.org/projects/tvheadend/wiki/Debugging#Correct-crash-reports

@gdb tvheadend 4756
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/&gt;.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/&gt;.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from tvheadend...(no debugging symbols found)...done.
Attaching to program: /usr/bin/tvheadend, process 4756
[New LWP 4757]
[New LWP 4759]
[New LWP 4760]
[New LWP 4761]
[New LWP 4763]
[New LWP 4764]
[New LWP 4765]
[New LWP 4766]
[New LWP 4767]
[New LWP 4770]
[New LWP 4771]
[New LWP 4775]
[New LWP 4778]
[New LWP 4779]
[New LWP 4780]
[New LWP 4781]
[New LWP 4782]
[New LWP 4783]
[New LWP 4785]
[New LWP 4786]
[New LWP 4787]
[New LWP 4788]
[New LWP 4820]
[New LWP 4821]
[New LWP 4822]
[New LWP 4825]
[New LWP 4826]
[New LWP 4827]
[New LWP 4828]
[New LWP 4829]
[New LWP 4830]
[New LWP 4832]
[New LWP 4836]
[New LWP 4837]
[New LWP 4838]
[New LWP 4839]
[New LWP 4840]
[New LWP 4841]
[New LWP 4847]
[New LWP 4848]
[New LWP 4849]
[New LWP 5071]
[New LWP 5072]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
0xb6c01344 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
(gdb) continue
Continuing.
[New Thread 0xaecff190 (LWP 5124)]
[New Thread 0xb16ff190 (LWP 5134)]
[New Thread 0xb02ff190 (LWP 5135)]
[New Thread 0xae8ff190 (LWP 5136)]
[New Thread 0xae0ff190 (LWP 5137)]
[Thread 0xaecff190 (LWP 5124) exited]
[New Thread 0xaecff190 (LWP 5144)]
[Thread 0xb04ff190 (LWP 5072) exited]
[Thread 0xb02ff190 (LWP 5135) exited]
[Thread 0xae0ff190 (LWP 5137) exited]
[Thread 0xb16ff190 (LWP 5134) exited]
[Thread 0xae8ff190 (LWP 5136) exited]
[Thread 0xaecff190 (LWP 5144) exited]
[New Thread 0xaecff190 (LWP 5245)]

Thread 12 "tvh:cc-newcamd" received signal SIGABRT, Aborted.
[Switching to Thread 0xb48ff190 (LWP 4771)]
0xb6a8d6f6 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
@

Need you a core dump?

#4

Updated by Jaroslav Kysela about 2 years ago

Please, do the gdb cmds again plus one important 'backtrace'. I need the backtrace output.

#5

Updated by Thomas xyz about 2 years ago

hello, what do you mean exactly? i should repeat the gdb tvheadend pid and what backtrace issue do you need exactly?

#6

Updated by Mark Clarkstone about 2 years ago

Thomas xyz wrote:

hello, what do you mean exactly? i should repeat the gdb tvheadend pid and what backtrace issue do you need exactly?

I think he wants the gdb backtrace.

thread apply all bt full
#7

Updated by Thomas xyz about 2 years ago

i hope this is wat you mean

#8

Updated by Jaroslav Kysela about 2 years ago

Use the debug version of tvh's binary (you should not see the missing symbols) and the simple 'backtrace' gdb command after such type crash is really enough. I don't need the backtrace for all threads. Thanks.

#9

Updated by Mark Clarkstone about 2 years ago

Jaroslav Kysela wrote:

Use the debug version of tvh's binary (you should not see the missing symbols) and the simple 'backtrace' gdb command after such type crash is really enough. I don't need the backtrace for all threads. Thanks.

Sorry that was my fault. I'll make a note of it in future, and will only provide the thread traces when asked :).

#10

Updated by Thomas xyz about 2 years ago

Ok, i hope this is right
gdb tvheadend 8289
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from tvheadend...(no debugging symbols found)...done.
Attaching to program: /usr/bin/tvheadend, process 8289
[New LWP 8290]
[New LWP 8291]
[New LWP 8292]
[New LWP 8293]
[New LWP 8294]
[New LWP 8295]
[New LWP 8296]
[New LWP 8297]
[New LWP 8298]
[New LWP 8299]
[New LWP 8300]
[New LWP 8302]
[New LWP 8305]
[New LWP 8306]
[New LWP 8308]
[New LWP 8309]
[New LWP 8310]
[New LWP 8311]
[New LWP 8313]
[New LWP 8314]
[New LWP 8315]
[New LWP 8316]
[New LWP 8321]
[New LWP 8322]
[New LWP 8323]
[New LWP 8324]
[New LWP 8325]
[New LWP 8326]
[New LWP 8327]
[New LWP 8328]
[New LWP 8329]
[New LWP 8337]
[New LWP 8338]
[New LWP 8339]
[New LWP 8340]
[New LWP 8341]
[New LWP 8342]
[New LWP 8391]
[New LWP 8392]
[New LWP 2641]
[New LWP 2642]
[New LWP 2658]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
0xb6c74344 in __libc_do_syscall ()
from /lib/arm-linux-gnueabihf/libpthread.so.0
(gdb) set logging on
Copying output to gdb.txt.
(gdb) set pagination off
(gdb) bt full
#0 0xb6c74344 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
No symbol table info available.
#1 0xb6c6ff42 in pthread_cond_timedwait
@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
No symbol table info available.
#2 0x0049e118 in main ()
No symbol table info available.
(gdb) continue
Continuing.
[Thread 0xb0cff190 (LWP 2641) exited]
[New Thread 0xaeeff190 (LWP 2825)]
[Thread 0xaeeff190 (LWP 2825) exited]
[New Thread 0xaf8ff190 (LWP 2826)]
[New Thread 0xb0cff190 (LWP 2827)]
[Thread 0xaf8ff190 (LWP 2826) exited]
[New Thread 0xaf8ff190 (LWP 2828)]
[Thread 0xb0cff190 (LWP 2827) exited]
[New Thread 0xb0cff190 (LWP 2829)]
[Thread 0xb0cff190 (LWP 2829) exited]
[New Thread 0xb0cff190 (LWP 2830)]
[Thread 0xb0cff190 (LWP 2830) exited]
[New Thread 0xb0cff190 (LWP 2831)]
[Thread 0xaf8ff190 (LWP 2828) exited]
[New Thread 0xaf8ff190 (LWP 2832)]
[Thread 0xb0cff190 (LWP 2831) exited]
[New Thread 0xb0cff190 (LWP 2833)]
[New Thread 0xaeeff190 (LWP 2834)]
[New Thread 0xaf6ff190 (LWP 2835)]
[New Thread 0xaf2ff190 (LWP 2836)]
[New Thread 0xaecff190 (LWP 2837)]
[New Thread 0xafaff190 (LWP 2860)]
[Thread 0xaf0ff190 (LWP 2658) exited]
[New Thread 0xaf0ff190 (LWP 2867)]
[Thread 0xaf0ff190 (LWP 2867) exited]
[New Thread 0xaf0ff190 (LWP 2886)]
[Thread 0xaf0ff190 (LWP 2886) exited]
[New Thread 0xaf0ff190 (LWP 2928)]

Thread 12 "tvh:cc-newcamd" received signal SIGABRT, Aborted.
[Switching to Thread 0xb48ff190 (LWP 8300)]
0xb6b006f6 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
(gdb) quit
A debugging session is active.

Inferior 1 [process 8289] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/bin/tvheadend, process 8289
@

#11

Updated by Jaroslav Kysela about 2 years ago

Unfortuately, the 'bt full' should be entered after 'SIGABRT' messsage and your tvh binary does not have debugging symbols (No symbol table info available).

#12

Updated by Mark Clarkstone about 2 years ago

You need to install tvheadend-dbg.

#13

Updated by Thomas xyz about 2 years ago

I installed tvheadend-dbg, and gdb shows me
Reading symbols from tvheadend...Reading symbols from /usr/lib/debug//usr/bin/tv headend...done.

but the outpud says No symbol table info available.
whats wrong?

And the bt after 'SIGABRT'

#14

Updated by Thomas xyz about 2 years ago

#15

Updated by Rob Castermans about 2 years ago

when i upgrade from 4.3-734 to for example 4.3-1006 (tried with 4 different builds)

got the same error when starting tvheadend.

tvheadend.service: Main process exited, code=killed, status=6/ABRT

looks like when i disabled my CA client newcamd, TVheadend starts.
but after reenabling of made a new CA client. TVheadend immideatly fails with tvheadend.service: Main process exited, code=killed, status=6/ABRT

how to solve this?

#16

Updated by QingChuan Lee about 2 years ago

2018-02-01 07:18:38.284 [ INFO] subscription: 0062: "HTTP" subscribing on channel "", weight: 100, adapter: "TurboSight TBS 5520SE DVB-T/T2/C/C2/ISDB-T #0 : master for #0", network: "catv", mux: "147MHz", provider: "hncatv", service: "", profile="pass", hostname="192.168.2.196", client="VLC/2.2.6 LibVLC/2.2.6"
  • Error in `./build.linux/tvheadend': corrupted size vs. prev_size: 0xafc8aa30 *** ======= Backtrace: =========
    /lib/i386-linux-gnu/libc.so.6(+0x6737a)[0xb6fca37a]
    /lib/i386-linux-gnu/libc.so.6(+0x6dfb7)[0xb6fd0fb7]
    /lib/i386-linux-gnu/libc.so.6(+0x6f072)[0xb6fd2072]
    ./build.linux/tvheadend(+0x204638)[0x6eb638]
    ./build.linux/tvheadend(+0xe645c)[0x5cd45c]
    /lib/i386-linux-gnu/libpthread.so.0(+0x627a)[0xb72f927a]
    /lib/i386-linux-gnu/libc.so.6(clone+0x66)[0xb704ab56] ======= Memory map: ========
    004e7000-01519000 r-xp 00000000 08:01 176440 /home/qingtian/tvheadend/build.linux/tvheadend
    0151a000-01573000 r-xp 01032000 08:01 176440 /home/qingtian/tvheadend/build.linux/tvheadend
    01573000-015b5000 rwxp 0108b000 08:01 176440 /home/qingtian/tvheadend/build.linux/tvheadend
    015b5000-017c3000 rwxp 00000000 00:00 0
    01f55000-02077000 rwxp 00000000 00:00 0 [heap]
    af800000-af8e4000 rwxp 00000000 00:00 0
    af8e4000-af900000 ---p 00000000 00:00 0
    afa00000-afb00000 rwxp 00000000 00:00 0
    afc00000-afcfb000 rwxp 00000000 00:00 0
    afcfb000-afd00000 ---p 00000000 00:00 0
    afe00000-aff00000 rwxp 00000000 00:00 0
    b0000000-b0100000 rwxp 00000000 00:00 0
    b0200000-b0300000 rwxp 00000000 00:00 0
    b03dc000-b03dd000 ---p 00000000 00:00 0
    b03dd000-b05dd000 rwxp 00000000 00:00 0
    b05dd000-b05de000 ---p 00000000 00:00 0
    b05de000-b07de000 rwxp 00000000 00:00 0
    b07de000-b07df000 ---p 00000000 00:00 0
    b07df000-b09df000 rwxp 00000000 00:00 0
    b09df000-b09e0000 ---p 00000000 00:00 0
    b09e0000-b0be0000 rwxp 00000000 00:00 0
    b0be0000-b0be1000 ---p 00000000 00:00 0
    b0be1000-b0de1000 rwxp 00000000 00:00 0
    b0de1000-b0de2000 ---p 00000000 00:00 0
    b0de2000-b0fe2000 rwxp 00000000 00:00 0
    b0fe2000-b0fe3000 ---p 00000000 00:00 0
    b0fe3000-b11e3000 rwxp 00000000 00:00 0
    b11e3000-b11e4000 ---p 00000000 00:00 0
    b11e4000-b13e4000 rwxp 00000000 00:00 0
    b13e4000-b13e5000 ---p 00000000 00:00 0
    b13e5000-b15e5000 rwxp 00000000 00:00 0
    b15e5000-b15e6000 ---p 00000000 00:00 0
    b15e6000-b17e6000 rwxp 00000000 00:00 0
    b17e6000-b17e7000 ---p 00000000 00:00 0
    b17e7000-b19e7000 rwxp 00000000 00:00 0
    b19e7000-b19e8000 ---p 00000000 00:00 0
    b19e8000-b1be8000 rwxp 00000000 00:00 0
    b1be8000-b1be9000 ---p 00000000 00:00 0
    b1be9000-b1de9000 rwxp 00000000 00:00 0
    b1de9000-b1dea000 ---p 00000000 00:00 0
    b1dea000-b1fea000 rwxp 00000000 00:00 0
    b1fea000-b1feb000 ---p 00000000 00:00 0
    b1feb000-b21eb000 rwxp 00000000 00:00 0
    b21eb000-b21ec000 ---p 00000000 00:00 0
    b21ec000-b23ec000 rwxp 00000000 00:00 0
    b23ec000-b23ed000 ---p 00000000 00:00 0
    b23ed000-b25ed000 rwxp 00000000 00:00 0
    b25ed000-b25ee000 ---p 00000000 00:00 0
    b25ee000-b27ee000 rwxp 00000000 00:00 0
    b27ee000-b27ef000 ---p 00000000 00:00 0
    b27ef000-b29ef000 rwxp 00000000 00:00 0
    b29ef000-b29f0000 ---p 00000000 00:00 0
    b29f0000-b2bf0000 rwxp 00000000 00:00 0
    b2bf0000-b2bf1000 ---p 00000000 00:00 0
    b2bf1000-b2df1000 rwxp 00000000 00:00 0
    b2df1000-b2df2000 ---p 00000000 00:00 0
    b2df2000-b2ff2000 rwxp 00000000 00:00 0
    b2ff2000-b2ff3000 ---p 00000000 00:00 0
    b2ff3000-b31f3000 rwxp 00000000 00:00 0
    b31f3000-b31f4000 ---p 00000000 00:00 0
    b31f4000-b33f4000 rwxp 00000000 00:00 0
    b33f4000-b33f5000 ---p 00000000 00:00 0
    b33f5000-b35f5000 rwxp 00000000 00:00 0
    b35f5000-b35f6000 ---p 00000000 00:00 0
    b35f6000-b37f6000 rwxp 00000000 00:00 0
    b37f6000-b37f7000 ---p 00000000 00:00 0
    b37f7000-b39f7000 rwxp 00000000 00:00 0
    b39f7000-b39f8000 ---p 00000000 00:00 0
    b39f8000-b3bf8000 rwxp 00000000 00:00 0
    b3bf8000-b3bf9000 ---p 00000000 00:00 0
    b3bf9000-b3df9000 rwxp 00000000 00:00 0
    b3df9000-b3dfa000 ---p 00000000 00:00 0
    b3dfa000-b3ffa000 rwxp 00000000 00:00 0
    b3ffa000-b3ffb000 ---p 00000000 00:00 0
    b3ffb000-b41fb000 rwxp 00000000 00:00 0
    b41fb000-b41fc000 ---p 00000000 00:00 0
    b41fc000-b49fc000 rwxp 00000000 00:00 0
    b49fc000-b49fd000 ---p 00000000 00:00 0
    b49fd000-b4bfd000 rwxp 00000000 00:00 0
    b4bfd000-b4bfe000 ---p 00000000 00:00 0
    b4bfe000-b4dfe000 rwxp 00000000 00:00 0
    b4dfe000-b4dff000 ---p 00000000 00:00 0
    b4dff000-b4fff000 rwxp 00000000 00:00 0
    b4fff000-b5000000 ---p 00000000 00:00 0
    b5000000-b5200000 rwxp 00000000 00:00 0
    b5200000-b5300000 rwxp 00000000 00:00 0
    b53fd000-b53fe000 ---p 00000000 00:00 0
    b53fe000-b55fe000 rwxp 00000000 00:00 0
    b55fe000-b55ff000 ---p 00000000 00:00 0
    b55ff000-b57ff000 rwxp 00000000 00:00 0
    b57ff000-b5800000 ---p 00000000 00:00 0
    b5800000-b5a00000 rwxp 00000000 00:00 0
    b5a00000-b5ad0000 rwxp 00000000 00:00 0
    b5ad0000-b5b00000 ---p 00000000 00:00 0
    b5bfd000-b5bfe000 ---p 00000000 00:00 0
    b5bfe000-b5dfe000 rwxp 00000000 00:00 0
    b5dfe000-b5dff000 ---p 00000000 00:00 0
    b5dff000-b65ff000 rwxp 00000000 00:00 0
    b65ff000-b6600000 ---p 00000000 00:00 0
    b6600000-b6800000 rwxp 00000000 00:00 0
    b6800000-b68f9000 rwxp 00000000 00:00 0
    b68f9000-b6900000 ---p 00000000 00:00 0
    b69a5000-b69a6000 rwxp 00000000 00:00 0
    b69a6000-b69b6000 r-xp 00000000 08:01 2477 /usr/lib/i386-linux-gnu/gconv/libGB.so
    b69b6000-b69b7000 r-xp 0000f000 08:01 2477 /usr/lib/i386-linux-gnu/gconv/libGB.so
    b69b7000-b69b8000 rwxp 00010000 08:01 2477 /usr/lib/i386-linux-gnu/gconv/libGB.so
    b69b8000-b69bf000 r-xs 00000000 08:01 2475 /usr/lib/i386-linux-gnu/gconv/gconv-modules.cache
    b69bf000-b69c0000 ---p 00000000 00:00 0
    b69c0000-b6bc0000 rwxp 00000000 00:00 0
    b6bc0000-b6d5b000 r-xp 00000000 08:01 12 /usr/lib/locale/locale-archive
    b6d5b000-b6d5f000 rwxp 00000000 00:00 0
    b6d5f000-b6d73000 r-xp 00000000 08:01 962 /lib/i386-linux-gnu/libgpg-error.so.0.21.0
    b6d73000-b6d74000 ---p 00014000 08:01 962 /lib/i386-linux-gnu/libgpg-error.so.0.21.0
    b6d74000-b6d75000 r-xp 00014000 08:01 962 /lib/i386-linux-gnu/libgpg-error.so.0.21.0
    b6d75000-b6d76000 rwxp 00015000 08:01 962 /lib/i386-linux-gnu/libgpg-error.so.0.21.0
    b6d76000-b6e40000 r-xp 00000000 08:01 993 /lib/i386-linux-gnu/libgcrypt.so.20.1.6
    b6e40000-b6e41000 ---p 000ca000 08:01 993 /lib/i386-linux-gnu/libgcrypt.so.20.1.6
    b6e41000-b6e42000 r-xp 000ca000 08:01 993 /lib/i386-linux-gnu/libgcrypt.so.20.1.6
    b6e42000-b6e45000 rwxp 000cb000 08:01 993 /lib/i386-linux-gnu/libgcrypt.so.20.1.6
    b6e45000-b6e56000 r-xp 00000000 08:01 1008 /usr/lib/i386-linux-gnu/liblz4.so.1.7.1
    b6e56000-b6e57000 r-xp 00010000 08:01 1008 /usr/lib/i386-linux-gnu/liblz4.so.1.7.1
    b6e57000-b6e58000 rwxp 00011000 08:01 1008 /usr/lib/i386-linux-gnu/liblz4.so.1.7.1
    b6e58000-b6e5a000 rwxp 00000000 00:00 0
    b6e5a000-b6e84000 r-xp 00000000 08:01 433 /lib/i386-linux-gnu/liblzma.so.5.2.2
    b6e84000-b6e85000 r-xp 00029000 08:01 433 /lib/i386-linux-gnu/liblzma.so.5.2.2
    b6e85000-b6e86000 rwxp 0002a000 08:01 433 /lib/i386-linux-gnu/liblzma.so.5.2.2
    b6e86000-b6eb0000 r-xp 00000000 08:01 1757 /lib/i386-linux-gnu/libselinux.so.1
    b6eb0000-b6eb1000 r-xp 00029000 08:01 1757 /lib/i386-linux-gnu/libselinux.so.1
    b6eb1000-b6eb2000 rwxp 0002a000 08:01 1757 /lib/i386-linux-gnu/libselinux.so.1
    b6eb2000-b6eb3000 rwxp 00000000 00:00 0
    b6eb3000-b6ecf000 r-xp 00000000 08:01 23 /lib/i386-linux-gnu/libgcc_s.so.1
    b6ecf000-b6ed0000 r-xp 0001b000 08:01 23 /lib/i386-linux-gnu/libgcc_s.so.1
    b6ed0000-b6ed1000 rwxp 0001c000 08:01 23 /lib/i386-linux-gnu/libgcc_s.so.1
    b6ed1000-b6f60000 r-xp 00000000 08:01 70 /lib/i386-linux-gnu/libsystemd.so.0.17.0
    b6f60000-b6f62000 r-xp 0008e000 08:01 70 /lib/i386-linux-gnu/libsystemd.so.0.17.0
    b6f62000-b6f63000 rwxp 00090000 08:01 70 /lib/i386-linux-gnu/libsystemd.so.0.17.0
    b6f63000-b7114000 r-xp 00000000 08:01 715 /lib/i386-linux-gnu/libc-2.24.so
    b7114000-b7115000 ---p 001b1000 08:01 715 /lib/i386-linux-gnu/libc-2.24.so
    b7115000-b7117000 r-xp 001b1000 08:01 715 /lib/i386-linux-gnu/libc-2.24.so
    b7117000-b7118000 rwxp 001b3000 08:01 715 /lib/i386-linux-gnu/libc-2.24.so
    b7118000-b711b000 rwxp 00000000 00:00 0
    b711b000-b728b000 r-xp 00000000 08:01 7442 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.22
    b728b000-b7291000 r-xp 0016f000 08:01 7442 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.22
    b7291000-b7292000 rwxp 00175000 08:01 7442 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.22
    b7292000-b7295000 rwxp 00000000 00:00 0
    b7295000-b729c000 r-xp 00000000 08:01 739 /lib/i386-linux-gnu/librt-2.24.so
    b729c000-b729d000 r-xp 00006000 08:01 739 /lib/i386-linux-gnu/librt-2.24.so
    b729d000-b729e000 rwxp 00007000 08:01 739 /lib/i386-linux-gnu/librt-2.24.so
    b729e000-b72f1000 r-xp 00000000 08:01 723 /lib/i386-linux-gnu/libm-2.24.so
    b72f1000-b72f2000 r-xp 00052000 08:01 723 /lib/i386-linux-gnu/libm-2.24.so
    b72f2000-b72f3000 rwxp 00053000 08:01 723 /lib/i386-linux-gnu/libm-2.24.so
    b72f3000-b730c000 r-xp 00000000 08:01 737 /lib/i386-linux-gnu/libpthread-2.24.so
    b730c000-b730d000 r-xp 00018000 08:01 737 /lib/i386-linux-gnu/libpthread-2.24.so
    b730d000-b730e000 rwxp 00019000 08:01 737 /lib/i386-linux-gnu/libpthread-2.24.so
    b730e000-b7310000 rwxp 00000000 00:00 0
    b7310000-b7313000 r-xp 00000000 08:01 720 /lib/i386-linux-gnu/libdl-2.24.so
    b7313000-b7314000 r-xp 00002000 08:01 720 /lib/i386-linux-gnu/libdl-2.24.so
    b7314000-b7315000 rwxp 00003000 08:01 720 /lib/i386-linux-gnu/libdl-2.24.so
    b7315000-b7317000 rwxp 00000000 00:00 0
    b7317000-b7370000 r-xp 00000000 08:01 8981 /lib/i386-linux-gnu/libdbus-1.so.3.14.14
    b7370000-b7371000 ---p 00059000 08:01 8981 /lib/i386-linux-gnu/libdbus-1.so.3.14.14
    b7371000-b7372000 r-xp 00059000 08:01 8981 /lib/i386-linux-gnu/libdbus-1.so.3.14.14
    b7372000-b7373000 rwxp 0005a000 08:01 8981 /lib/i386-linux-gnu/libdbus-1.so.3.14.14
    b7373000-b7385000 r-xp 00000000 08:01 20439 /usr/lib/i386-linux-gnu/libavahi-client.so.3.2.9
    b7385000-b7386000 r-xp 00011000 08:01 20439 /usr/lib/i386-linux-gnu/libavahi-client.so.3.2.9
    b7386000-b7387000 rwxp 00012000 08:01 20439 /usr/lib/i386-linux-gnu/libavahi-client.so.3.2.9
    b7387000-b7394000 r-xp 00000000 08:01 20437 /usr/lib/i386-linux-gnu/libavahi-common.so.3.5.3
    b7394000-b7395000 r-xp 0000c000 08:01 20437 /usr/lib/i386-linux-gnu/libavahi-common.so.3.5.3
    b7395000-b7396000 rwxp 0000d000 08:01 20437 /usr/lib/i386-linux-gnu/libavahi-common.so.3.5.3
    b7396000-b73b3000 r-xp 00000000 08:01 23675 /usr/lib/i386-linux-gnu/liburiparser.so.1.0.20
    b73b3000-b73b4000 r-xp 0001c000 08:01 23675 /usr/lib/i386-linux-gnu/liburiparser.so.1.0.20
    b73b4000-b73b5000 rwxp 0001d000 08:01 23675 /usr/lib/i386-linux-gnu/liburiparser.so.1.0.20
    b73b5000-b742c000 r-xp 00000000 08:01 440 /lib/i386-linux-gnu/libpcre.so.3.13.3
    b742c000-b742d000 r-xp 00076000 08:01 440 /lib/i386-linux-gnu/libpcre.so.3.13.3
    b742d000-b742e000 rwxp 00077000 08:01 440 /lib/i386-linux-gnu/libpcre.so.3.13.3
    b742e000-b7447000 r-xp 00000000 08:01 1763 /lib/i386-linux-gnu/libz.so.1.2.8
    b7447000-b7448000 r-xp 00018000 08:01 1763 /lib/i386-linux-gnu/libz.so.1.2.8
    b7448000-b7449000 rwxp 00019000 08:01 1763 /lib/i386-linux-gnu/libz.so.1.2.8
    b7449000-b7694000 r-xp 00000000 08:01 7794 /usr/lib/i386-linux-gnu/libcrypto.so.1.1
    b7694000-b7695000 ---p 0024b000 08:01 7794 /usr/lib/i386-linux-gnu/libcrypto.so.1.1
    b7695000-b76a6000 r-xp 0024b000 08:01 7794 /usr/lib/i386-linux-gnu/libcrypto.so.1.1
    b76a6000-b76ad000 rwxp 0025c000 08:01 7794 /usr/lib/i386-linux-gnu/libcrypto.so.1.1
    b76ad000-b76b0000 rwxp 00000000 00:00 0
    b76b0000-b7717000 r-xp 00000000 08:01 7796 /usr/lib/i386-linux-gnu/libssl.so.1.1
    b7717000-b771a000 r-xp 00066000 08:01 7796 /usr/lib/i386-linux-gnu/libssl.so.1.1
    b771a000-b771e000 rwxp 00069000 08:01 7796 /usr/lib/i386-linux-gnu/libssl.so.1.1
    b771e000-b7722000 r-xp 00000000 08:01 796 /usr/lib/i386-linux-gnu/gconv/EUC-CN.so
    b7722000-b7723000 r-xp 00003000 08:01 796 /usr/lib/i386-linux-gnu/gconv/EUC-CN.so
    b7723000-b7724000 rwxp 00004000 08:01 796 /usr/lib/i386-linux-gnu/gconv/EUC-CN.so
    b7724000-b7727000 rwxp 00000000 00:00 0
    b7727000-b7729000 r--p 00000000 00:00 0 [vvar]
    b7729000-b772b000 r-xp 00000000 00:00 0 [vdso]
    b772b000-b774e000 r-xp 00000000 08:01 25 /lib/i386-linux-gnu/ld-2.24.so
    b774e000-b774f000 r-xp 00022000 08:01 25 /lib/i386-linux-gnu/ld-2.24.so
    b774f000-b7750000 rwxp 00023000 08:01 25 /lib/i386-linux-gnu/ld-2.24.so
    bfb4d000-bfb6e000 rwxp 00000000 00:00 0 [stack]
    2018-02-01 07:18:38.472 [ ALERT] CRASH: Signal: 6 in PRG: ./build.linux/tvheadend (4.3-1013~gd86d26b0e) [19c1467ae79a1ff89e798b7b80c3444d19a35090] CWD: /home/qingtian/tvheadend
    2018-02-01 07:18:38.474 [ ALERT] CRASH: Fault address 0x6805 (N/A)
    2018-02-01 07:18:38.478 [ ALERT] CRASH: Loaded libraries: linux-gate.so.1 /usr/lib/i386-linux-gnu/libssl.so.1.1 /usr/lib/i386-linux-gnu/libcrypto.so.1.1 /lib/i386-linux-gnu/libz.so.1 /lib/i386-linux-gnu/libpcre.so.3 /usr/lib/i386-linux-gnu/liburiparser.so.1 /usr/lib/i386-linux-gnu/libavahi-common.so.3 /usr/lib/i386-linux-gnu/libavahi-client.so.3 /lib/i386-linux-gnu/libdbus-1.so.3 /lib/i386-linux-gnu/libdl.so.2 /lib/i386-linux-gnu/libpthread.so.0 /lib/i386-linux-gnu/libm.so.6 /lib/i386-linux-gnu/librt.so.1 /usr/lib/i386-linux-gnu/libstdc++.so.6 /lib/i386-linux-gnu/libc.so.6 /lib/i386-linux-gnu/libsystemd.so.0 /lib/ld-linux.so.2 /lib/i386-linux-gnu/libgcc_s.so.1 /lib/i386-linux-gnu/libselinux.so.1 /lib/i386-linux-gnu/liblzma.so.5 /usr/lib/i386-linux-gnu/liblz4.so.1 /lib/i386-linux-gnu/libgcrypt.so.20 /lib/i386-linux-gnu/libgpg-error.so.0
    2018-02-01 07:18:38.478 [ ALERT] CRASH: Register dump [19]: 0000000c000000330000000c000000000000000c0000007b0000000c0000007b0000000c000000000000000c000000080000000cb07dc6600000000cb07dc6500000000c000000020000000c000000000000000cb07dc6600000000c000000000000000c000000000000000c000000000000000cb7729cf90000000c000000730000000c000002460000000cb07dc6500000000c0000007b
    2018-02-01 07:18:38.478 [ ALERT] CRASH: STACKTRACE
#17

Updated by Thomas xyz about 2 years ago

The Problem is still the same, also with 4.3-1166~g2e9a18678 on a Cubietruck

#18

Updated by Thomas xyz about 2 years ago

Here is the trace and debug log

Trace
https://pastebin.com/USti0auL

Debug
No stack.
The program is not being run.
Starting program: /usr/bin/sudo service tvheadend start
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[Inferior 1 (process 8320) exited normally]
Undefined command: "et". Try "help".
Already logging to gdb.txt.
No stack.
No stack.
Quit
#0 0xb6b146f6 in ?? ()
No symbol table info available.
#1 0xb6b223cc in ?? ()
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Quit

I have no idee why "No symbol table......" comes, the Debug Symbol are installed
@sudo apt search tvheadend
Sorting... Done
Full Text Search... Done
kodi-pvr-hts/stable 3.4.13-1 armhf
Kodi PVR Addon TvHeadend Hts

tvheadend/raspbianstretch,now 4.3-1166~g2e9a18678~raspbianstretch armhf [installed]
Tvheadend

tvheadend-dbg/raspbianstretch,now 4.3-1166~g2e9a18678~raspbianstretch armhf [installed]
Debug symbols for Tvheadend

xbmc-pvr-tvheadend-hts/stable 13.0+git20140512+g91cc731+dfsg1-3 armhf
transitional dummy package
@

#19

Updated by Jaroslav Kysela about 2 years ago

Run the program directly in gdb (not through a shell/any script). Like 'gdb --args /usr/bin/tvheadend /tvheadend_arguments_without_-f/' . Also, check if you installed package with -dbg suffix.

#20

Updated by Thomas xyz about 2 years ago

In my repsotory are no -dbg packages, where can i get one?
@ sudo apt search tvheadend
Sorting... Done
Full Text Search... Done
kodi-pvr-hts/stable 3.4.13-1 armhf
Kodi PVR Addon TvHeadend Hts

tvheadend/raspbianstretch 4.3-1173~g6311cf77d~raspbianstretch armhf [upgradable from: 4.3-1166~g2e9a18678~raspbianstretch]
Tvheadend

tvheadend-dbg/raspbianstretch 4.3-1173~g6311cf77d~raspbianstretch armhf [upgrada ble from: 4.3-1166~g2e9a18678~raspbianstretch]
Debug symbols for Tvheadend

xbmc-pvr-tvheadend-hts/stable 13.0+git20140512+g91cc731+dfsg1-3 armhf
transitional dummy package
@

#21

Updated by Chess Player over 1 year ago

Rob Castermans wrote:

when i upgrade from 4.3-734 to for example 4.3-1006 (tried with 4 different builds)

got the same error when starting tvheadend.

tvheadend.service: Main process exited, code=killed, status=6/ABRT

looks like when i disabled my CA client newcamd, TVheadend starts.
but after reenabling of made a new CA client. TVheadend immideatly fails with tvheadend.service: Main process exited, code=killed, status=6/ABRT

how to solve this?

Hi,

I would like to bring this up again, since the problem seems to persist. I have a working system using version 4.3-632~gebe99da, but on the latest Armbian after installing 4.3-1288~g66d6161c5 from the unstable respiantretch repo, I ran into the same issues that have been reported here. So, while I am not unhappy with the stable 4.2.6-15~g88ae07789, which works fine, I would just like to point out that it would be nice if this problem could be addressed at some point (while keeping up the good work - thanks for that!)

Cheers,

chessplayer

#22

Updated by Chess Player over 1 year ago

So, in order to hopefully help pinpoint the problem, after a conversation with Mark Clarkson on https://github.com/mpmc/tvheadend/issues/89, I took it upon myself to try to find the latest working version of tvheadend by installing quite a few versions of TVH 4.3-X from https://doozer.io/tvheadend/tvheadend/builds for xenial_armhf

Management Summary: The latest version to actually work I found to be 861. Also, it seems that the issue has gradually become more serious over time and is really bad now. Thus, I believe it is time to take care of the problem, as it is really getting a bit out of hand.

But, let's look at this step-by-step.

So, I am running Armbian xenial:

uname -a: Linux cubietruck 4.14.18-sunxi #24 SMP Fri Feb 9 16:24:32 CET 2018 armv7l armv7l armv7l GNU/Linux

My CAM is a CWC (newcamd).

I started out with version 734 with a clean config, which Rob Castermans reported working. I can confirm that now. Also, versions 811, 831, 843 and 846 turned out to work.

After that, things got a little sketchy: in 848, 851, and 857, the encrypted channels stuttered, i.e., they played for two seconds, then halted for a second and played again, but there were no crashes of TVH.

Interestingly, 861 also worked (and that turned out to be the highest working version I tried)

Then, in 884, 888, 909, 952 and 1054, things got worse. Some encrypted channels worked, while others resulted in TVH crashing. Sometimes, TVH even crashed without me doing anything, but came back up again afterwards.

Finally, 1273 (the highest version I was able to find on Doozer) immediately crashes after startup. When I disable the CWC in the corresponding file in the caclient subfolder of /home/hts/.hts/tvheadend, everything works. This is also the case for version 1288 I can get from Mark Clarksons bintray repo for raspbianstretch.

To sum up, somewhere starting with 884 (which comes right after 861 on Doozer), decryption started to deteriorate (at least for CWC) and has meanwhile become a real problem. It would be nice if this was taken care of.

Cheers,

chessplayer

#23

Updated by Klara Jansen over 1 year ago

Same issue here on Raspbian Stretch... Any news on progress?

#24

Updated by Jaroslav Kysela over 1 year ago

No, I know that it's boring when the sw does not do thing what you like, but I cannot run/test all combinations myself. The unanswered hint is in comment #2 (and this is comment #24!). I need at least the full backtrace with debug symbols to have an idea where the code crashes.

#25

Updated by da h4xX0rz1sT over 1 year ago

OK, so I try to jump in here, since it seems to be the same problem I'm experiencing, as described in #5211.

For me, it's a blocker I can't switch to master and further investigate on #5210 #5211 and others.

My findings so far:
This issue
  • does not happen with 4.2.x
  • does not happen with master on x86_64 (Gentoo)
  • does happen with master on armhf 32bit (Debian Stretch, was the same on Jessy)

So I guess it might be an armhf-specific or debian-specific issue.

Trace log and gdb backtrace attached. Full gdb backtrace (all threads) is available, also a core file, in case you need it.

HTH,
/HXZ

#26

Updated by Jaroslav Kysela over 1 year ago

It's a clear memory corruption. Any chance to run valgrind on top? https://tvheadend.org/projects/tvheadend/wiki/Debugging#Memory-leaks-or-corruption

#27

Updated by Klara Jansen over 1 year ago

Jaroslav Kysela wrote:

It's a clear memory corruption. Any chance to run valgrind on top? https://tvheadend.org/projects/tvheadend/wiki/Debugging#Memory-leaks-or-corruption

I tried running with valgrind, tvheadend did not crash...
Ran straight after without valgrind and tvheadend crashed straight away!

The enclosed dump contains running tvheadend with and without valgrind.

#28

Updated by Klara Jansen over 1 year ago

In addition: last lines from syslog before tvheadend crashes:

Oct 13 10:17:50 meter tvheadend[17817]: subscription: 0001: "epggrab" subscribing to mux "498MHz", weight: 4, adapter: "DRXK DVB-C DVB-T : DVB-C #0", network: "Ziggo", service: "Raw PID Subscription" 
Oct 13 10:17:51 meter tvheadend[17817]: linuxdvb: Unhandled ERROR_BIT_COUNT scale: 0
Oct 13 10:17:51 meter tvheadend[17817]: linuxdvb: Unable to provide BER value.
Oct 13 10:17:51 meter tvheadend[17817]: linuxdvb: Unhandled ERROR_BLOCK_COUNT scale: 0

#29

Updated by Pablo R. over 1 year ago

da h4xX0rz1sT wrote:

OK, so I try to jump in here, since it seems to be the same problem I'm experiencing, as described in #5211.

For me, it's a blocker I can't switch to master and further investigate on #5210 #5211 and others.

My findings so far:
This issue
  • does not happen with 4.2.x
  • does not happen with master on x86_64 (Gentoo)
  • does happen with master on armhf 32bit (Debian Stretch, was the same on Jessy)

So I guess it might be an armhf-specific or debian-specific issue.

Trace log and gdb backtrace attached. Full gdb backtrace (all threads) is available, also a core file, in case you need it.

HTH,
/HXZ

I just received same crash lines as you with gdb:

Thread 85 "tvh:tcp-start" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb19ff270 (LWP 20253)]
0xb67cf574 in htsbuf_data_free (hq=0xb19feafc, hd=0xb42667e0) at src/htsbuf.c:71
71      src/htsbuf.c: No such file or directory.

I am gonna try to use valgrind also.

#30

Updated by Pablo R. over 1 year ago

Don't worry, I'm waiting for my valgrind integrated into libreelec (building).

Thread 84 "tvh:cc-newcamd" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xaacff270 (LWP 20544)]
0xb611eb4c in _int_free (av=0xb61e67a4 <main_arena>, p=0xb77d62d0, have_lock=0) at malloc.c:4049
4049    malloc.c: No such file or directory.
#31

Updated by da h4xX0rz1sT over 1 year ago

Here, unfortunately, valgrind just bails out without delivering any useful results. Sorry.

#32

Updated by Jaroslav Kysela over 1 year ago

The Klara Jensen's comment # 28 seems to be really useful. It shows the wrong memory access. I will analyze it. Thanks for it.

#33

Updated by Jaroslav Kysela over 1 year ago

Could you test this?

diff --git a/src/descrambler/cwc.c b/src/descrambler/cwc.c
index 6d9a99b19..0ff705348 100644
--- a/src/descrambler/cwc.c
+++ b/src/descrambler/cwc.c
@@ -225,8 +225,8 @@ cwc_send_msg(void *cc, const uint8_t *msg, size_t len,
   if (len < 3)
     return -1;

-  /* note: the last 10 bytes is pad/checksum for des_encrypt() */
-  cm = malloc(sizeof(cc_message_t) + 12 + len + 10);
+  /* note: the last 16 bytes is pad/checksum for des_encrypt() */
+  cm = malloc(sizeof(cc_message_t) + 12 + len + 16);

   if (cm == NULL)
     return -1;

Anyway, there are really many errors for malloc():

==15191== Thread 1:
==15191== Invalid read of size 8
==15191==    at 0x4865FC4: ??? (in /usr/lib/arm-linux-gnueabihf/libarmmem.so)
==15191==  Address 0x7192204 is 3,364 bytes inside a block of size 3,369 alloc'd
==15191==    at 0x4847568: malloc (vg_replace_malloc.c:299)

They might be probably caused with the cwc.c bug, but let me know if they persist after the suggested fix. The right developers should be probably notified.

#34

Updated by Klara Jansen over 1 year ago

First quick test with the patch above: tvheadend is NOT crashing anymore straight away!
Do you need valgrind dump again?

#35

Updated by Jaroslav Kysela over 1 year ago

  • Status changed from New to Fixed

Fixed in v4.3-1468-g3f74523d2 . I need the valgrind log only when there are wrong memory access (invalid read or write errors like in my previous comment).

#36

Updated by da h4xX0rz1sT over 1 year ago

Yeah, it works, first time master runs on my Odroid HC1 armhf :)

Thank you Jaroslav, Klara, Pablo and all the others helping!

Will look into the other issues I reported, if they still apply for master branch.

/HXZ

Also available in: Atom PDF