Project

General

Profile

Bug #2812

TVHEadend keeps crashing

Added by Dave Travers over 9 years ago. Updated over 9 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Crashes
Target version:
-
Start date:
2015-04-30
Due date:
% Done:

0%

Estimated time:
Found in version:
3.9.2757~gaaaa7a1~utopic and 3.9.2761~g2bcf09f~utopic
Affected Versions:

Description

Hi, the last 2 nightly builds of tvheadend keep crashing on Ubuntu (installed via APT). info from syslog:-
Apr 30 15:48:33 Ubuntu tvheadend1181: subscription: 0962: "scan" unsubscribing
Apr 30 15:48:43 Ubuntu tvheadend1181: mpegts: 698MHz in Freeview - tuning on TurboSight TBS 62x1 DVBT/T2 frontend : DVB-T #0
Apr 30 15:48:43 Ubuntu tvheadend1181: subscription: 0964: "scan" subscribing to mux "698MHz", weight: 2, adapter: "TurboSight TBS 62x1 DVBT/T2 frontend : DVB-T #0", network: "Freeview", service: "Raw PID Subscription"
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: Signal: 6 in PRG: /usr/bin/tvheadend (3.9.2761~g2bcf09f~utopic) [9673d030fa1cabb821524f49c47a7a12940d4b40] CWD: /
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: Fault address 0x760000049d (N/A)
Apr 30 15:48:48 Ubuntu tvheadend1181: 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/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 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 /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
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: Register dump [23]: 00007fb9740059a000000000000000000000000000000008000000000000020200000000004f6dc000000000004f6e12000000000000000400007fb967ffe350000000000000049d0000000000003da000007fb9b415502800007fb9b5fb500000000000000000060000000000000000ffffffffffffffff00007fb967ffe0b800007fb9b3ffa2670000000000000202000000000000003300000000000000000000000000000000fffffffe7ffbba110000000000000000
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: STACKTRACE
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: ??:0 0x43e469
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: ??:0 0x7fb9b48afd10
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: gsignal+0x37 (/lib/x86_64-linux-gnu/libc.so.6)
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: abort+0x16a (/lib/x86_64-linux-gnu/libc.so.6)
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: ??:0 0x7fb9b3ff303d
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: ??:0 0x7fb9b3ff30f2
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: ??:0 0x486d93
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: ??:0 0x487116
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: ??:0 0x4ad506
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: ??:0 0x4ad9fd
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: ??:0 0x412689
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: ??:0 0x7fb9b48a66aa
Apr 30 15:48:48 Ubuntu tvheadend1181: CRASH: clone+0x6d (/lib/x86_64-linux-gnu/libc.so.6)

History

#1

Updated by Dave Travers over 9 years ago

And another on 3.9.2765

May 1 07:56:22 Ubuntu tvheadend1131: CRASH: Signal: 6 in PRG: /usr/bin/tvheadend (3.9.2765~g0294882~utopic) [dc1cdbda7e1ba71f795c50061aa78e3371eb3a89] CWD: /
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: Fault address 0x760000046b (N/A)
May 1 07:56:22 Ubuntu tvheadend1131: 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/liburiparser.so.1 /us$
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: Register dump [23]: 00007faa20000eb000000000000000000000000000000008000000000000020200000000004f708000000000004f70d2000000000000000400007faa2dffa35000000000000$
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: STACKTRACE
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x43e549
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x7faa4cc0bd10
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: gsignal+0x37 (/lib/x86_64-linux-gnu/libc.so.6)
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: abort+0x16a (/lib/x86_64-linux-gnu/libc.so.6)
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x7faa4c34f03d
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x7faa4c34f0f2
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x486ee3
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x487266
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x4ad7a6
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x4adc9d
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x4126d9
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x7faa4cc026aa
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: clone+0x6d (/lib/x86_64-linux-gnu/libc.so.6)

#2

Updated by Mark Clarkstone over 9 years ago

Dave Travers wrote:

And another on 3.9.2765

May 1 07:56:22 Ubuntu tvheadend1131: CRASH: Signal: 6 in PRG: /usr/bin/tvheadend (3.9.2765~g0294882~utopic) [dc1cdbda7e1ba71f795c50061aa78e3371eb3a89] CWD: /
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: Fault address 0x760000046b (N/A)
May 1 07:56:22 Ubuntu tvheadend1131: 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/liburiparser.so.1 /us$
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: Register dump [23]: 00007faa20000eb000000000000000000000000000000008000000000000020200000000004f708000000000004f70d2000000000000000400007faa2dffa35000000000000$
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: STACKTRACE
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x43e549
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x7faa4cc0bd10
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: gsignal+0x37 (/lib/x86_64-linux-gnu/libc.so.6)
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: abort+0x16a (/lib/x86_64-linux-gnu/libc.so.6)
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x7faa4c34f03d
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x7faa4c34f0f2
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x486ee3
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x487266
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x4ad7a6
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x4adc9d
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x4126d9
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: ??:0 0x7faa4cc026aa
May 1 07:56:22 Ubuntu tvheadend1131: CRASH: clone+0x6d (/lib/x86_64-linux-gnu/libc.so.6)

You need to install tvheadend-dbg along with the main deb, it may also help if you install corekeeper, gdb & change TVH_ARGS="" to TVH_ARGS="-D" in /etc/default/tvheadend (you'll need to stop & start the daemon for the changes to take effect). So that when tvheadend does crash you'll be given a core dump to run a gdb trace on [usually dropped in /var/crash/<uid> if you have corekeeper installed].

A simple gdb trace would be

sudo gdb /usr/bin/tvheadend /path/to/core.file

gdb> set logging on /home/hts/debug.log
gdb> bt full

!* gdb> means enter into gdb.

Then upload the log here.

#3

Updated by Dave Travers over 9 years ago

I have run those commands. When i run bt full i get the response "No stack" and the logfile only contains "No stack".
Do i need to wait for it to crash?

#4

Updated by Dave Travers over 9 years ago

Dave Travers wrote:

I have run those commands. When i run bt full i get the response "No stack" and the logfile only contains "No stack".
Do i need to wait for it to crash?

Never mind just read the rest of the post :)
Args added, tvheadend-dbg installed and service restarted.

#5

Updated by Mark Clarkstone over 9 years ago

Dave Travers wrote:

I have run those commands. When i run bt full i get the response "No stack" and the logfile only contains "No stack".
Do i need to wait for it to crash?

Yes, you need to wait for it to crash so corekeeper can catch the dump, you won't get anything without the dump [You won't even get a dump if you're not running tvheadend without the -D switch].

Edit: I saw your post just as I wrote the above.

#6

Updated by Dave Travers over 9 years ago

TVHeadend crashed again at 11:20 but the debug log was empty. rant he commands you gave and still only got "No Stack".
Do i have to change the /path/to/core.file to something, if so what too?

sudo gdb /usr/bin/tvheadend /path/to/core.file

#7

Updated by Mark Clarkstone over 9 years ago

Dave Travers wrote:

TVHeadend crashed again at 11:20 but the debug log was empty. rant he commands you gave and still only got "No Stack".
Do i have to change the /path/to/core.file to something, if so what too?

sudo gdb /usr/bin/tvheadend /path/to/core.file

You need to change that to the core files location.

Type

ls /var/crash

That command should list a directory, usually a number [User ID] & in that directory should be the coredump.

For example. /var/crash/106/<random numbers>-tvheadend-core.

So you would run.

sudo gdb /usr/bin/tvheadend /var/crash/106/12354567890-tvheadend-core

Your coredump will be named something totally different, you may even have more than one [you can find the newest dump by doing ls /var/crash/<uid> -l and checking the date].

#8

Updated by Dave Travers over 9 years ago

In /var/crash I only have files, one of them is _usr_bin_tvheadend.118.crash
but when I run sudo gdb /usr/bin/tvheadend /var/crash/_usr_bin_tvheadend.118.crash

it says not a core dump: file format not recognised
the hts user is uid 118 though

Opening the file in a text editor shows its got lots of stuff in there. I can send you the file if you want (it's 22MB though)

#9

Updated by Jaroslav Kysela over 9 years ago

Could you test v3.9-2771-gfd16a1e ?

#10

Updated by Dave Travers over 9 years ago

Jaroslav Kysela wrote:

Could you test v3.9-2771-gfd16a1e ?

Will that be in the apt repository in the morning? if so I'll install it first thing.

#11

Updated by Dave Travers over 9 years ago

7 hours since upgraded and still no crash. looking good!
Thanks for the quick resolution!

#12

Updated by Jaroslav Kysela over 9 years ago

  • Status changed from New to Fixed

Closing. Open a new bug with the backtrace, if you hit another one.

Also available in: Atom PDF