Project

General

Profile

Bug #3631

Tvheadend crash upon start

Added by Raymond Paulsen over 8 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Crashes
Target version:
-
Start date:
2016-03-15
Due date:
% Done:

100%

Estimated time:
Found in version:
> 4.1-1595~gd532539~jessie
Affected Versions:

Description

Tvheadend crashes after reboot

Mar 15 07:50:03 tv tvheadend[15127]: CRASH: 0x45417b Mar 15 07:50:03 tv tvheadend[15127]: CRASH: 0x4554f9 Mar 15 07:50:03 tv tvheadend[15127]: CRASH: 0x42e182 Mar 15 07:50:03 tv tvheadend[15127]: CRASH: __libc_start_main+0xf5 (/lib/x86_64-linux-gnu/libc.so.6)

History

#1

Updated by Jaroslav Kysela over 8 years ago

Provide backtrace. Check wiki - debugging.

#2

Updated by Nihil Baxter over 8 years ago

Last build that didn't crash was 1559 for me, after that it crashes when connecting sat/ip or now its crashing after start...
Will provide backtrace if i get that managed without gui and if i have some time...

#3

Updated by Nomen Quis over 8 years ago

Here is what I get:

[New Thread 0x7fffd77fe700 (LWP 10259)]
2016-03-15 10:43:51.337 [ INFO] linuxdvb: adapter added /dev/dvb/adapter1
2016-03-15 10:43:51.338 [ INFO] linuxdvb: adapter added /dev/dvb/adapter0

Thread 1 "tvheadend" received signal SIGSEGV, Segmentation fault.
0x00007ffff35cd006 in _strtoll_l_internal () from /usr/lib/libc.so.6
(gdb) where
#0 0x00007ffff35cd006 in _
_strtoll_l_internal () from /usr/lib/libc.so.6
#1 0x000055555562f023 in atol (
_nptr=0xe <error: Cannot access memory at address 0xe>;) at /usr/include/stdlib.h:285
#2 prop_intsplit_from_str (intsplit=1000000, s=0xe <error: Cannot access memory at address 0xe>;) at src/prop.h:129
#3 prop_write_values (obj=obj@entry=0x555556798100, pl=<optimized out>, m=m@entry=0x5555563f5f60, optmask=optmask@entry=4, updated=updated@entry=0x0)
at src/prop.c:161
#4 0x0000555555627f30 in idnode_class_write_values (self=self@entry=0x555556798100, c=c@entry=0x5555563f5f60, optmask=optmask@entry=4,
idc=0x555555a00b20 <channel_class>, idc=0x555555a00b20 <channel_class>;) at src/idnode.c:1105
#5 0x000055555562cbf6 in idnode_write0 (self=self@entry=0x555556798100, c=c@entry=0x5555563f5f60, optmask=optmask@entry=4, dosave=dosave@entry=0)
at src/idnode.c:1184
#6 0x000055555564ded5 in channel_create0 (ch=0x555556798100, idc=idc@entry=0x555555a00b20 <channel_class>,
uuid=uuid@entry=0x5555563f5f88 "dbd5d203724eb6eb183f703b521b4c59", conf=conf@entry=0x5555563f5f60, name=name@entry=0x0) at src/channels.c:983
#7 0x000055555564f31b in channel_init () at src/channels.c:1117
#8 0x000055555562326f in main (argc=<optimized out>, argv=<optimized out>;) at src/main.c:1185
(gdb)

Hope this helps

#4

Updated by g siviero over 8 years ago

Latest 4.1-1679~gf2fba6e does not start up for me too:

Mar 15 11:22:47 raspberrypi tvheadend[1432]: Starting Tvheadend: tvheadend.
Mar 15 11:22:47 raspberrypi tvheadend[1438]: config: backup: migrating config from 4.1-1576~g52ed773 (running 4.1-1679~gf2fba6e)
Mar 15 11:22:47 raspberrypi systemd[1]: Started (null).
Mar 15 11:22:47 raspberrypi tvheadend[1438]: config: backup: running, output file /home/hts/.hts/tvheadend/backup/4.1-1576~g52ed773.tar.bz2
Mar 15 11:22:47 raspberrypi tvheadend[1438]: spawn: Executing "/bin/tar" 
Mar 15 11:22:49 raspberrypi systemd[1]: Reloading.
Mar 15 11:22:49 raspberrypi tvheadend[1438]: config: backup: completed
Mar 15 11:22:49 raspberrypi tvheadend[1438]: config: loaded
Mar 15 11:22:49 raspberrypi tvheadend[1438]: config: scanfile (re)initialization with path <none>
Mar 15 11:22:50 raspberrypi tvheadend[1438]: linuxdvb: adapter added /dev/dvb/adapter3
Mar 15 11:22:50 raspberrypi tvheadend[1438]: linuxdvb: adapter added /dev/dvb/adapter2
Mar 15 11:22:50 raspberrypi tvheadend[1438]: linuxdvb: adapter added /dev/dvb/adapter1
Mar 15 11:22:50 raspberrypi tvheadend[1438]: linuxdvb: adapter added /dev/dvb/adapter0

after the last line the tvheadend process "disappears".

#5

Updated by Hanspeter Müller over 8 years ago

1672 works, 1673 crashes, so my razor-sharp-logic deduces, this has to be the culprit :D

commit ff0615305dbdc3546e385fa6bce2a682aad9964f
Author: Jaroslav Kysela <>
Date: Sun Mar 13 18:19:55 2016 +0100

htsmsg: improve allocation for name and strings (merge allocations)
#6

Updated by Meindert Oldenburger over 8 years ago

After update yesterday I discoffered the crash also! Going back to a previous version solved the issue for me :)

#7

Updated by John Doe over 8 years ago

1673 crashes here too however 1674 and onward crashes with different error. Please see logs and gdb backtraces:
1673 log
1673 gdb
1674 log
1674 gdb

My build options are:
--enable-dvbcsa --disable-hdhomerun_static --enable-libffmpeg_static --disable-satip_server --disable-satip_client --disable-iptv

#8

Updated by Jaroslav Kysela over 8 years ago

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

Applied in changeset commit:tvheadend|f754e0cd91a6b0d4859cfab9cf99f8aedc11472f.

Also available in: Atom PDF