Project

General

Profile

Bug #2944

SEGV on startup after kodi attempt to connect

Added by Aaron Drew over 9 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Crashes
Target version:
-
Start date:
2015-06-15
Due date:
% Done:

0%

Estimated time:
Found in version:
5556f70c3e9ce09621c565b409d96d4ead865fc8
Affected Versions:

Description

2015-06-14 11:57:14.931 [ INFO] htsp: 192.168.1.10 [ XBMC Media Center ]: Identified as user 'tvheadend'
[New Thread 0x69efefb0 (LWP 11712)]
tcp_server: tvhpoll_wait: Interrupted system call
[New Thread 0x696fefb0 (LWP 11713)]
tcp_server: tvhpoll_wait: Interrupted system call

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x70ffefb0 (LWP 11685)]
0x00096ecc in dvb_charset_find (mn=0x760c5b24, mm=0x760c6490, s=0x760c6900) at src/input/mpegts/dvb_charset.c:107
107 if (s && s->s_dvb_charset && *s->s_dvb_charset)
(gdb) bt
#0 0x00096ecc in dvb_charset_find (mn=0x760c5b24, mm=0x760c6490, s=0x760c6900) at src/input/mpegts/dvb_charset.c:107
#1 0x000a8814 in _eit_process_event_one (mod=0x76028c60, tableid=1434585610, svc=0x6bf93d00, ch=0x0, ptr=0x76028c6c "hE\001v\b\200\001v\001",
len=<optimized out>, local=0, resched=0x70ffe520, save=0x70ffe51c) at src/epggrab/module/eit.c:443
#2 0x000a9660 in _eit_process_event (save=0x70ffe514, resched=0x70ffe518, local=0, len=266, ptr=<optimized out>, svc=0x760c6900, tableid=0, mod=0x76028c60)
at src/epggrab/module/eit.c:566
#3 _eit_callback (mt=0x760c6900, ptr=<optimized out>, len=266, tableid=0) at src/epggrab/module/eit.c:684
#4 0x0009495c in mpegts_table_dispatch (sec=<optimized out>, r=<optimized out>, aux=0x129ed8) at src/input/mpegts/mpegts_table.c:106
#5 0x0008ea70 in mpegts_psi_section_reassemble0 (mt=0x129ed8, logpref=<optimized out>, data=<optimized out>, len=184, start=0, crc=584828, cb=0,
opaque=0x129ed8) at src/input/mpegts/dvb_psi_lib.c:114
#6 0x0008ec7c in mpegts_psi_section_reassemble (mt=0x129ed8, logprefix=0x70ffe770 "226.5MHz in FreeTV", tsb=0x14c6fc "G", crc=1,
cb=0x948d8 <mpegts_table_dispatch>, opaque=0x129ed8) at src/input/mpegts/dvb_psi_lib.c:161
#7 0x00089dfc in mpegts_input_table_dispatch (mm=<optimized out>, logprefix=0x70ffe770 "226.5MHz in FreeTV", tsb=0x14c640 "G@\022\023", tsb_len=5452)
at src/input/mpegts/mpegts_input.c:974
#8 0x00089f74 in mpegts_input_table_thread (aux=0x760287f0) at src/input/mpegts/mpegts_input.c:1339
#9 0x0001a064 in thread_wrapper (p=0x760c7878) at src/wrappers.c:149
#10 0x76d3bc00 in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0
#11 0x76c28728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#12 0x76c28728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

This is built from head on a rpi2, running debug deb package tvheadend_4.1-201~gade6638_armhf.deb

$ git reflog
ade6638 HEAD@{0}: pull: Fast-forward
7749976 HEAD@{1}: pull: Fast-forward
e4f034a HEAD@{2}: clone: from https://github.com/tvheadend/tvheadend.git

This didn't seem to happen with tvheadend-dbg_3.9.2715~g7749976_armhf.deb so I git bisected. The crash began in v201: (git commit 5556f70c3e9ce09621c565b409d96d4ead865fc8).

I'm in Sydney, Australia. Using DVB-T with kodi as the frontend.

History

#1

Updated by Jaroslav Kysela over 9 years ago

I don't think that commit 5556f70c3e9ce09621c565b409d96d4ead865fc8 is related. This code is called only on shutdown.

#2

Updated by B C over 9 years ago

Jaroslav Kysela wrote:

I don't think that commit 5556f70c3e9ce09621c565b409d96d4ead865fc8 is related. This code is called only on shutdown.

actually that was an epg grabber fix, so if kodi connects, a channel is tuned and the data is not as we expect it.....

Also available in: Atom PDF