Tvheadend crashes on startup Ubuntu 15.04
Added by Aurélien Péruchon over 9 years ago
Hi,
Today, my tvheadend wan't start correctly ...
Yesterday it works correctly and today, nothing
When I launch "sudo service tvheadend start", the command "status" tells me :
juil. 19 00:05:53 htpc-H87N-WIFI tvheadend2174: CRASH: gsignal+0x37 (/lib/x...)
juil. 19 00:05:53 htpc-H87N-WIFI tvheadend2174: CRASH: abort+0x16a (/lib/x8...)
juil. 19 00:05:53 htpc-H87N-WIFI tvheadend2174: CRASH: ??:0 0x7ff41a67bc53
juil. 19 00:05:53 htpc-H87N-WIFI tvheadend2174: CRASH: ??:0 0x7ff41a683c69
juil. 19 00:05:53 htpc-H87N-WIFI tvheadend2174: CRASH: cfree+0x4c (/lib/x86...)
juil. 19 00:05:53 htpc-H87N-WIFI tvheadend2174: CRASH: ??:0 0x44b501
juil. 19 00:05:53 htpc-H87N-WIFI tvheadend2174: CRASH: ??:0 0x48948a
juil. 19 00:05:53 htpc-H87N-WIFI tvheadend2174: CRASH: ??:0 0x449eef
juil. 19 00:05:53 htpc-H87N-WIFI tvheadend2174: CRASH: ??:0 0x436d6e
I didn"t touch anything ... Only ubuntu upgrade (4 packages).
I don't understand ?
Thanks you in advance,
Catskan
Replies (4)
RE: Tvheadend crashes on startup Ubuntu 15.04 - Added by Prof Yaffle over 9 years ago
What were the four packages?
Look at /var/log/apt/term.log for the full apt logs, or /var/log/dpkg.log for a more readable version, or /var/log/apt/history.log for a very edited version of what command you used and what it did. Take your pick; on all, latest entries first, so maybe use tail if there's a lot going on.
After that, you'll have to get into gdb and debug symbols - have you built it yourself, or from PPA? You don't say what version you have...
RE: Tvheadend crashes on startup Ubuntu 15.04 - Added by Aurélien Péruchon over 9 years ago
The packages are :
Start-Date: 2015-07-16 22:10:32
Upgrade: gir1.2-totem-1.0:amd64 (3.14.2-0ubuntu2, 3.14.3-0ubuntu0.1), totem-plugins:amd64 (3.14.2-0ubuntu2, 3.14.3-0ubuntu0.1), libtotem0:amd64 (3.14.2-0ubuntu2, 3.14.3-0ubuntu0.1), totem:amd64 (3.14.2-0ubuntu2, 3.14.3-0ubuntu0.1), totem-common:amd64 (3.14.2-0ubuntu2, 3.14.3-0ubuntu0.1)
End-Date: 2015-07-16 22:10:50
I've install Tvheadend with the master ppa (Nightly I think :/) but with my USB Card and Ubuntu vivid, it's only last version works.
htpc@htpc-H87N-WIFI:~$ sudo apt-cache show tvheadend
[sudo] password for htpc:
Package: tvheadend
Status: install ok installed
Priority: extra
Section: video
Installed-Size: 24981
Maintainer: Andreas Öman <[email protected]>
Architecture: amd64
Version: 4.1-343~g41e0a26~trusty
Replaces: hts-tvheadend
Depends: libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.15), libdbus-1-3 (>= 1.0.2), libdvbcsa1 (>= 1.1.0), libssl1.0.0 (>= 1.0.0), liburiparser1 (>= 0.6.0), zlib1g (>= 1:1.1.4)
RE: Tvheadend crashes on startup Ubuntu 15.04 - Added by Prof Yaffle over 9 years ago
Mmm, no reason why Totem would break things unless it's running as a service and blocking something that tvh is then looking for.
ps -eaf | grep totem, perhaps? See if anything is running?
After that, I can only immediately suggest:
1. Upgrading tvheadend. 4.1-343 is about two weeks old, but, more importantly, an over-write of tvh might grab back whatever Totem took away. Perhaps. Maybe. If you were on the genuinely unstable/nightly branch then I'd have thought you'd have got that already.
2. Proper debugging. I'd need to think about how that would work with gdb and a service... as an initial though, try:
sudo service tvheadend stop
sudo tvheadend -f -u hts -g video
... see if it crashes then. If it doesn't, then it's something to do with systemd, although those are clearly tvheadend messages. If it does crash, then we're closer to using gdb.
You'll need a deb built from source and the corresponding debug symbols - I'll build you a version (64-bit?) if necessary.
Then run the tvheadend command above within gdb - and that's where my memory fades, so I'd need to look.
Hoping that someone else comes along with some more recent experience. I think it's simply "gdb /usr/bin/tvheadend <args as above>", then wait for a crash, then bt to get the stack trace - the debug symbols will convert the hex addresses back to line numbers and modules to tell you where in the source code it's breaking (and, perhaps, why).
RE: Tvheadend crashes on startup Ubuntu 15.04 - Added by Aurélien Péruchon about 9 years ago
Hi ! Thanks you for your help.
I return from holidays and I have update my Ubuntu 15.04. After this update, tvheadend works again correctly :). But I don't understand why it's crashes ...
But now, tvheadend don't launch on startup ... I've add tvheadend in systemctl (systemctl enable tvheadend), and after this update, it's delete of this. I must launch manually tvheadend service. It's normal ?