Project

General

Profile

Bug #4945

Crash on EPG data load

Added by G C almost 4 years ago. Updated almost 4 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-02-16
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1071~gba38add
Affected Versions:

Description

Hello,

I just started to get a crash on EPG load over the past few days. This happens when I first start TVH and then causes a loop as the software keeps restarting.

------------------------
2018-02-16 08:25:57.341 [ TRACE]:epg: added event 67112071 ((null)) on WEDW-1 2018-02-19;03:30:00(-0500) to 2018-02-19;04:00:00(-0500) (grabber /usr/bin/tv_grab_sd_json)
2018-02-16 08:25:57.341 [ TRACE]:epg: eo [0x7f7494e35a30, 67112071, 1] getref 2
2018-02-16 08:25:57.341 [ TRACE]:epg: eo [0x7f7494e35a30, 67112071, 1] putref 1
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e363b0, 67112072, 1] created
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e363b0, 67112072, 1] updated
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e363b0, 67112072, 1] getref 1
2018-02-16 08:25:57.342 [ TRACE]:epg: added event 67112072 ((null)) on WEDW-1
2018-02-19;04:00:00(0500) to 2018-02-19;05:00:00(-0500) (grabber /usr/bin/tv_grab_sd_json)
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e363b0, 67112072, 1] getref 2
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e363b0, 67112072, 1] putref 1
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e37520, 67112073, 1] created
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e37520, 67112073, 1] updated
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e37520, 67112073, 1] getref 1
2018-02-16 08:25:57.342 [ TRACE]:epg: added event 67112073 ((null)) on WEDW-1 2018-02-19;05:00:00(-0500) to 2018-02-19;06:00:00(-0500) (grabber /usr/bin/tv_grab_sd_json)
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e37520, 67112073, 1] getref 2
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e37520, 67112073, 1] putref 1
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494dc26c0, 67112074, 1] created
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494dc26c0, 67112074, 1] updated
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494dc26c0, 67112074, 1] getref 1
2018-02-16 08:25:57.342 [ TRACE]:epg: added event 67112074 ((null)) on WEDW-1
2018-02-19;06:00:00(-0500) to 2018-02-19;06:30:00(-0500) (grabber /usr/bin/tv_grab_sd_json)
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494dc26c0, 67112074, 1] getref 2
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494dc26c0, 67112074, 1] putref 1
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e37a60, 67112075, 1] created
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e37a60, 67112075, 1] updated
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e37a60, 67112075, 1] getref 1
2018-02-16 08:25:57.342 [ TRACE]:epg: added event 67112075 ((null)) on WEDW-1 2018-02-19;06:30:00(-0500) to 2018-02-19;07:00:00(-0500) (grabber /usr/bin/tv_grab_sd_json)
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e37a60, 67112075, 1] getref 2
2018-02-16 08:25:57.342 [ TRACE]:epg: eo [0x7f7494e37a60, 67112075, 1] putref 1
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494e34650, 67112076, 1] created
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494e34650, 67112076, 1] updated
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494e34650, 67112076, 1] getref 1
2018-02-16 08:25:57.343 [ TRACE]:epg: added event 67112076 ((null)) on WEDW-1
2018-02-19;07:00:00(-0500) to 2018-02-19;07:30:00(-0500) (grabber /usr/bin/tv_grab_sd_json)
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494e34650, 67112076, 1] getref 2
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494e34650, 67112076, 1] putref 1
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494e36970, 67112077, 1] created
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494e36970, 67112077, 1] updated
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494e36970, 67112077, 1] getref 1
2018-02-16 08:25:57.343 [ TRACE]:epg: added event 67112077 ((null)) on WEDW-1 2018-02-19;07:30:00(-0500) to 2018-02-19;08:00:00(-0500) (grabber /usr/bin/tv_grab_sd_json)
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494e36970, 67112077, 1] getref 2
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494e36970, 67112077, 1] putref 1
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494d588b0, 67112078, 1] created
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494d588b0, 67112078, 1] updated
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494d588b0, 67112078, 1] getref 1
2018-02-16 08:25:57.343 [ TRACE]:epg: added event 67112078 ((null)) on WEDW-1
2018-02-19;08:00:00(-0500) to 2018-02-19;08:30:00(-0500) (grabber /usr/bin/tv_grab_sd_json)
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494d588b0, 67112078, 1] getref 2
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494d588b0, 67112078, 1] putref 1
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494dc9020, 67112079, 1] created
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494dc9020, 67112079, 1] updated
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494dc9020, 67112079, 1] getref 1
2018-02-16 08:25:57.343 [ TRACE]:epg: added event 67112079 ((null)) on WEDW-1 2018-02-19;08:30:00(-0500) to 2018-02-19;09:00:00(-0500) (grabber /usr/bin/tv_grab_sd_json)
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494dc9020, 67112079, 1] getref 2
2018-02-16 08:25:57.343 [ TRACE]:epg: eo [0x7f7494dc9020, 67112079, 1] putref 1
2018-02-16 08:25:57.344 [ TRACE]:epg: eo [0x7f7494e381b0, 67112080, 1] created
2018-02-16 08:25:57.344 [ TRACE]:epg: eo [0x7f7494e381b0, 67112080, 1] updated
2018-02-16 08:25:57.344 [ TRACE]:epg: eo [0x7f7494e381b0, 67112080, 1] getref 1
2018-02-16 08:25:57.344 [ TRACE]:epg: added event 67112080 ((null)) on WEDW-1
2018-02-19;09:00:00(-0500) to 2018-02-19;10:00:00(-0500) (grabber /usr/bin/tv_grab_sd_json)
2018-02-16 08:25:57.344 [ TRACE]:epg: eo [0x7f7494e381b0, 67112080, 1] getref 2
2018-02-16 08:25:57.344 [ TRACE]:epg: eo [0x7f7494e381b0, 67112080, 1] putref 1
2018-02-16 08:25:57.344 [ TRACE]:dvr: entry d67d3cc7494a68410476e581406ac8b8 start 2018-02-19;09:00:00(-0500) stop 2018-02-19;10:00:00(-0500) - link to event Pinkalicious & Peterrific Premiere on WEDW-1
2018-02-16 08:25:57.344 [ TRACE]:dvr: entry d67d3cc7494a68410476e581406ac8b8 start 2018-02-19;08:59:30(-0500) stop 2018-02-19;10:02:00(-0500) - set timer
2018-02-16 08:25:57.344 [ TRACE]:dvr: entry d67d3cc7494a68410476e581406ac8b8 start 2018-02-19;08:59:30(-0500) - set timer - schedule
2018-02-16 08:25:57.344 [ ALERT]:CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.3-1071~gba38add) [3b7147423274a3887466b736d399b04929f10524] CWD: /
2018-02-16 08:25:57.344 [ ALERT]:CRASH: Fault address (nil) (Address not mapped)
2018-02-16 08:25:57.344 [ ALERT]:CRASH: Loaded libraries: /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 /usr/lib/x86_64-linux-gnu/liburiparser.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/librt.so.1 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libsystemd.so.0 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/x86_64-linux-gnu/libselinux.so.1 /lib/x86_64-linux-gnu/liblzma.so.5 /lib/x86_64-linux-gnu/libgcrypt.so.20 /lib/x86_64-linux-gnu/libpcre.so.3 /lib/x86_64-linux-gnu/libgpg-error.so.0 /lib/x86_64-linux-gnu/libnss_compat.so.2 /lib/x86_64-linux-gnu/libnsl.so.1 /lib/x86_64-linux-gnu/libnss_nis.so.2 /lib/x86_64-linux-gnu/libnss_files.so.2
2018-02-16 08:25:57.344 [ ALERT]:CRASH: Register dump [23]: 00007f74a1dd14e00000000000000000000000000000000e00007f75d77ced9000007f7494e381b0000000000000000000000000000000010000000000000014000000000000000100007f753000002800000000000000000000000000000000000000000000002800007f74a1dd14e0000000000000000500007f75c63f641000005584f3f8cfc80000000000010206002b0000000000330000000000000004000000000000000efffffffe7ffbba130000000000000000
2018-02-16 08:25:57.344 [ ALERT]:CRASH: STACKTRACE
2018-02-16 08:25:57.446 [ ALERT]:CRASH: ??:0 0x5584f3f81e3d 0x5584f3d75000
2018-02-16 08:25:57.593 [ ALERT]:CRASH: ??:0 0x7f75d82b5390 0x7f75d82a4000
2018-02-16 08:25:57.798 [ ALERT]:CRASH: ??:0 0x5584f3f8cfc8 0x5584f3d75000
2018-02-16 08:25:58.020 [ ALERT]:CRASH: ??:0 0x5584f3f8d662 0x5584f3d75000
2018-02-16 08:25:58.250 [ ALERT]:CRASH: ??:0 0x5584f3fc8746 0x5584f3d75000
2018-02-16 08:25:58.441 [ ALERT]:CRASH: ??:0 0x5584f3fc9098 0x5584f3d75000
2018-02-16 08:25:58.662 [ ALERT]:CRASH: ??:0 0x5584f3f54381 0x5584f3d75000
2018-02-16 08:25:58.775 [ ALERT]:CRASH: ??:0 0x5584f3f57a8a 0x5584f3d75000
2018-02-16 08:25:58.925 [ ALERT]:CRASH: ??:0 0x5584f3fbe52b 0x5584f3d75000
2018-02-16 08:25:59.149 [ ALERT]:CRASH: ??:0 0x5584f3fba18b 0x5584f3d75000
2018-02-16 08:25:59.377 [ ALERT]:CRASH: ??:0 0x5584f3f5e280 0x5584f3d75000
2018-02-16 08:25:59.566 [ ALERT]:CRASH: ??:0 0x5584f3f45165 0x5584f3d75000
-----------------------------------


Files

tvh-debug.txt (8.55 KB) tvh-debug.txt G C, 2018-02-16 14:32

Associated revisions

Revision 671fc9c6 (diff)
Added by Jaroslav Kysela almost 4 years ago

lang_str: add NULL checks, issue #4945

History

#1

Updated by G C almost 4 years ago

attached.

#2

Updated by G C almost 4 years ago

reducing the guide from 10 days down to 2 days seems to stop the crash. Maybe some sort of overflow related to the most recent EPG changes this week?

#3

Updated by Michael Marley almost 4 years ago

I get the same crash on the same TVHeadend version, though curiously only one of my instances is affected. The other one doesn't crash at all. Here is my stacktrace, which should be more helpful because I have tvheadend-dbg installed:

Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: xmltv: /usr/bin/tv_grab_zz_sdjson_sqlite: grab took 22 seconds
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.3-1071~gba38add76~bionic) [4d96989f742731d66e5b2288324d2b833b9f8706] CWD: /
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: Fault address (nil) (Address not mapped)
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: Loaded libraries: /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4 /usr/lib/x86_64-linux-gnu/libdvbcsa.so.1 /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 /usr/lib/x86_64-linux-gnu/liburiparser.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /usr/lib/x86_64-linux-gnu/libavfilter.so.6 /usr/lib/x86_64-linux-gnu/libavformat.so.57 /usr/lib/x86_64-linux-gnu/libavcodec.so.57 /usr/lib/x86_64-linux-gnu/libavutil.so.55 /usr/lib/x86_64-linux-gnu/libva.so.2 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libsystemd.so.0 /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libavresample.so.3 /usr/lib/x86_64-linux-gnu/libswscale.so.4 /usr/lib/x86_64-linux-gnu/libpostproc.so.54 /usr/lib/x86_64-linux-gnu/libswresa
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: Register dump [23]: 00007efdbab30d6000007efdba941070000000000000000100007efe34e0a440000000000000000000007efdbd4ca3c00000000000000000000000000000000000007efdd8000038000000000000000000000000000000000000000000000000000000000000002800007efdbab30d6000007efdbab30d6000007efe0f7f9d20000055a29fc3cff80000000000010297002b0000000000330000000000000004000000000000000efffffffe7ffbba130000000000000000
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: STACKTRACE
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: /build/tvheadend-vzG8kP/tvheadend-4.3/src/trap.c:148 0x55a29fc31d6d 0x55a29fa95000
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: ??:0 0x7efe35604890 0x7efe355f2000
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: /build/tvheadend-vzG8kP/tvheadend-4.3/src/lang_str.c:50 0x55a29fc3cff8 0x55a29fa95000
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: /build/tvheadend-vzG8kP/tvheadend-4.3/src/lang_str.c:233 0x55a29fc3d6b2 0x55a29fa95000
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: /build/tvheadend-vzG8kP/tvheadend-4.3/src/dvr/dvr_db.c:2080 (discriminator 1) 0x55a29fc786ff 0x55a29fa95000
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: /build/tvheadend-vzG8kP/tvheadend-4.3/src/dvr/dvr_db.c:2277 0x55a29fc7913c 0x55a29fa95000
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: /build/tvheadend-vzG8kP/tvheadend-4.3/src/epg.c:902 0x55a29fc05251 0x55a29fa95000
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: /build/tvheadend-vzG8kP/tvheadend-4.3/src/epg.c:101 0x55a29fc05cfa 0x55a29fa95000
Feb 16 10:18:19 marleyfamily-pc tvheadend[8091]: CRASH: /build/tvheadend-vzG8kP/tvheadend-4.3/src/epggrab/module/xmltv.c:960 0x55a29fc6e45e 0x55a29fa95000
Feb 16 10:18:20 marleyfamily-pc tvheadend[8091]: CRASH: /build/tvheadend-vzG8kP/tvheadend-4.3/src/epggrab/module.c:388 0x55a29fc6a284 0x55a29fa95000
Feb 16 10:18:20 marleyfamily-pc tvheadend[8091]: CRASH: /build/tvheadend-vzG8kP/tvheadend-4.3/src/epggrab.c:84 0x55a29fc0e3ad 0x55a29fa95000
Feb 16 10:18:20 marleyfamily-pc tvheadend[8091]: CRASH: /build/tvheadend-vzG8kP/tvheadend-4.3/src/wrappers.c:181 0x55a29fbf5418 0x55a29fa95000
Feb 16 10:18:20 marleyfamily-pc tvheadend[8091]: CRASH: ??:0 0x7efe355f96db 0x7efe355f2000
Feb 16 10:18:20 marleyfamily-pc tvheadend[8091]: CRASH: clone+0x3f  (/lib/x86_64-linux-gnu/libc.so.6)
Feb 16 10:18:20 marleyfamily-pc kernel: [1088468.161236] tvh:epggrabi[8119]: segfault at 0 ip 000055a29fc3cff8 sp 00007efe0f7f9d20 error 4 in tvheadend[55a29fa95000+3bf000]
Feb 16 10:18:20 marleyfamily-pc systemd[1]: tvheadend.service: Main process exited, code=killed, status=11/SEGV
Feb 16 10:18:20 marleyfamily-pc systemd[1]: tvheadend.service: Failed with result 'signal'.
#4

Updated by Jaroslav Kysela almost 4 years ago

Pls, retest with master.

#5

Updated by G C almost 4 years ago

Jaroslav Kysela wrote:

Pls, retest with master.

Confirmed as fixed for me - thanks for the quick response!

#6

Updated by Michael Marley almost 4 years ago

That fixes it for me too, thanks!

#7

Updated by Jaroslav Kysela almost 4 years ago

  • Status changed from New to Fixed

Also available in: Atom PDF