Bug #2176
Tvheadend crash when switching channel in xbmc
0%
Description
Hi,
Since a few weeks, I experience tvheadend crashes with the master branch.
It apparently happens when switching channels in XBMC.
Here is the syslog.
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: Signal: 11 in PRG: /usr/local/bin/tvheadend (3.9.1083~g05d6da3-dirty) [64b41cba6e4981acffce3295adacc370bff01624] CWD: /
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: Fault address (nil) (Address not mapped)
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: Loaded libraries: /opt/lib/libmediaclient.so /lib/i386-linux-gnu/libssl.so.1.0.0 /lib/i386-linux-gnu/libcrypto.so.1.0.0 /lib/i386-linux-gnu/libz.so.1 /usr/l
ib/i386-linux-gnu/libavahi-common.so.3 /usr/lib/i386-linux-gnu/libavahi-client.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/libr
t.so.1 /lib/i386-linux-gnu/libc.so.6 /lib/i386-linux-gnu/libdbus-1.so.3 /lib/ld-linux.so.2 /lib/i386-linux-gnu/libnss_compat.so.2 /lib/i386-linux-gnu/libnsl.so.1 /lib/i386-linux-gnu/libnss_nis.so.2 /lib/i3
86-linux-gnu/libnss_files.so.2
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: Register dump [19]: 080f2e7000000033080f2e70c15a0000080f2e70ffff007b080f2e70ffff007b080f2e70099f0440080f2e70b440f048080f2e70099f04dc080f2e70a9ff7940080f2e70
00000004080f2e7000000000080f2e7000000001080f2e7000000000080f2e700000000e080f2e7000000006080f2e70080aeea9080f2e7000000073080f2e7000210246080f2e70a9ff7940080f2e700000007b
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: STACKTRACE
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/trap.c:148 0x8076612
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: __kernel_rt_sigreturn+0x0 ()
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/input/mpegts/mpegts_mux.c:761 0x80aeea9
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/input/mpegts/mpegts_table.c:119 0x80b2a02
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/descrambler/descrambler.c:542 0x80aa7e0
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/input/mpegts/mpegts_table.c:209 0x80b310e
Jul 13 12:21:22 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/input/mpegts/mpegts_mux.c:671 0x80afc13
Jul 13 12:21:22 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/input/mpegts/mpegts_service.c:259 0x80b210e
Jul 13 12:21:22 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/service.c:272 0x8068434
Jul 13 12:21:22 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/subscriptions.c:411 0x806680d
Jul 13 12:21:22 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/htsp_server.c:325 0x806b8db
Jul 13 12:21:22 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/htsp_server.c:1580 0x806e6e1
Jul 13 12:21:22 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/htsp_server.c:2099 0x807071d
Jul 13 12:21:22 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/tcp.c:444 0x8056b8a
Jul 13 12:21:22 mmmmm tvheadend12086: CRASH: /home/uuuuu/Build/tvheadend/src/wrappers.c:125 0x8054a31
Jul 13 12:21:22 mmmmm kernel: [3448857.858842] tcp_server_star28309: segfault at 0 ip 080aeea9 sp a9ff7940 error 6 in tvheadend[8048000+db000]
History
Updated by Crazy Fin over 10 years ago
I experienced the same issue during the first minutes of startup of TVHeadend. (see my ticket https://tvheadend.org/issues/2193)
Have you tried with waiting until the status tab in the web-GUI indicates that the EPG grabbers has stopped using all available tuners?
I see in your crash log above that you have EXACTLY same messages as I saw when I was getting these crashes:
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: Signal: 11 in PRG: /usr/local/bin/tvheadend (3.9.1083~g05d6da3-dirty) [64b41cba6e4981acffce3295adacc370bff01624] CWD: /
Jul 13 12:21:21 mmmmm tvheadend12086: CRASH: Fault address (nil) (Address not mapped)
As soon as I started to wait a few (3-5) minutes after TVH startup before starting to use XBMC I have no more crashes during channel switching.
Updated by Crazy Fin over 10 years ago
I thiiiink this might have been fixed in release 3.9.1133.
I was able to start XBMC directly after I started TVH and no crashes when switching channels during the first 1-5 minutes of TVH starting up (I guess this is mainly due to the fact that TVH is not taking all available tuners anymore for its EPG scanning?)
Updated by Jaroslav Kysela over 10 years ago
- Status changed from New to Fixed
I believe it's fixed in the recent code.