Project

General

Profile

Bug #5409

TVHeadend 4.3-1634~g1b41c315d crashes immediately on attempt to load Web UI

Added by Michael Marley almost 6 years ago. Updated almost 6 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Crashes
Target version:
-
Start date:
2018-12-09
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1634~g1b41c315d
Affected Versions:

Description

Since upgrading to 4.3-1634~g1b41c315d, every time I try to access the web UI, TVHeadend crashes with:

Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: Signal: 6 in PRG: /usr/bin/tvheadend (4.3-1634~g1b41c315d~disco) [b554d6f8cd7dac7e4022803dbb8c499fc5962efa] CWD: /  
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: Fault address 0x7800002e0d (N/A)
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4 /usr/lib/x86_64-linux-gnu/libdvbcsa.so.1 /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 /usr/lib/x86_64-linux-gnu/liburiparser.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /usr/lib/x86_64-linux-gnu/libavfilter.so.7 /usr/lib/x86_64-linux-gnu/libavformat.so.58 /usr/lib/x86_64-linux-gnu/libavcodec.so.58 /usr/lib/x86_64-linux-gnu/libavutil.so.56 /usr/lib/x86_64-linux-gnu/libva.so.2 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libsystemd.so.0 /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 /usr/lib/x86_64-linux-gnu/libswscale.so.5 /usr/lib/x86_64-linux-gnu/libpostproc.so.55 /usr/lib/x86_64-linux-gnu/libswresample.so.3 /usr/lib/x86_64-lin
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: Register dump [23]: 000000000000000000007f393ebf3b10000000000000000800000000000002460000000000000042000000000000000200007f393ebf3e4000007f393fdfcc28000000000000000200007f393ebf3b1000007f393ebf3d6800000000000000000000000000000000000000000000000000007f3972de907700007f393ebf3b1000007f3972de90770000000000000246002b00000000003300000000000000000000000000000000fffffffe7ffbba130000000000000000
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: STACKTRACE
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: /build/tvheadend-MuFoM7/tvheadend-4.3/src/trap.c:176 0x564ce20ba85d 0x564ce1f17000
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: ??:0 0x7f397313ddd0 0x7f397312b000
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: gsignal+0xc7  (/lib/x86_64-linux-gnu/libc.so.6)
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: abort+0x121  (/lib/x86_64-linux-gnu/libc.so.6)
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: /build/tvheadend-MuFoM7/tvheadend-4.3/src/tvh_thread.c:487 0x564ce207b2be 0x564ce1f17000
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: /build/tvheadend-MuFoM7/tvheadend-4.3/src/tvh_thread.c:148 0x564ce207b308 0x564ce1f17000
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: /build/tvheadend-MuFoM7/tvheadend-4.3/src/tvh_thread.c:359 0x564ce207bca5 0x564ce1f17000
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: /build/tvheadend-MuFoM7/tvheadend-4.3/src/htsp_server.c:3342 0x564ce20ad055 0x564ce1f17000
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: /build/tvheadend-MuFoM7/tvheadend-4.3/src/tvh_thread.c:91 0x564ce207b07d 0x564ce1f17000
Dec  8 21:07:09 mamarley-desktop tvheadend[11789]: CRASH: ??:0 0x7f3973133164 0x7f397312b000

Files

mutex-deadlock.txt (66 Bytes) mutex-deadlock.txt Alister Kunga, 2018-12-09 10:17

History

#1

Updated by Alister Kunga almost 6 years ago

Same problem

REASON: magic
mutex 0x7fdd983e3778 locked in: (null):0 (thread 0)

#2

Updated by th0ma7 ^ almost 6 years ago

Similar problem here. Did a backtrace using GDB:

Core was generated by `tvheadend'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51    ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7fb8961f3700 (LWP 3289))]
(gdb) backtrace
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007fb8b01028db in __GI_abort () at abort.c:100
#2  0x00005639dd2514be in tvh_thread_mutex_failed (mutex=<optimized out>, reason=reason@entry=0x5639de1cc4c4 "magic") at src/tvh_thread.c:487
#3  0x00005639dd251509 in tvh_mutex_check_magic (mutex=mutex@entry=0x7fb8963f3778) at src/tvh_thread.c:148
#4  0x00005639dd251eb5 in tvh_cond_wait (cond=cond@entry=0x7fb8963f37e8, mutex=mutex@entry=0x7fb8963f3778) at src/tvh_thread.c:359
#5  0x00005639dd2816bd in htsp_write_scheduler (aux=0x7fb8963f36b0) at src/htsp_server.c:3342
#6  0x00005639dd2512d8 in thread_wrapper (p=0x7fb87c000b60) at src/tvh_thread.c:91
#7  0x00007fb8b10136db in start_thread (arg=0x7fb8961f3700) at pthread_create.c:463
#8  0x00007fb8b01e388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

#3

Updated by M H almost 6 years ago

I have seen the same problem in Ubuntu 18.10.

Upgrade: tvheadend:amd64 (4.3-1632~g30332f8b3~cosmic, 4.3-1634~g1b41c315d~cosmic)

Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: Signal: 6 in PRG: /usr/bin/tvheadend (4.3-1634~g1b41c315d~cosmic) [5bf71a9700a548e0bef7bb6b9935aa1e4a969285] CWD: /
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: Fault address 0x7d00000cc0 (N/A)
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/x86_64-linux-gnu/libhdhomerun.so.4 /usr/lib/x86_64-linux-gnu/libdvbcsa.so.1 /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 /usr/lib/x86_64-linux-gnu/liburiparser.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /usr/lib/x86_64-linux-gnu/libavfilter.so.7 /usr/lib/x86_64-linux-gnu/libavformat.so.58 /usr/lib/x86_64-linux-gnu/libavcodec.so.58 /usr/lib/x86_64-linux-gnu/libavutil.so.56 /usr/lib/x86_64-linux-gnu/libva.so.2 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libsystemd.so.0 /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 /usr/lib/x86_64-linux-gnu/libswscale.so.5 /usr/lib/x86_64-linux-gnu/libpostproc.so.55 /usr/lib/x86_64-linux-gnu/libswresample.so.3 /usr/lib/x86_64-lin
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: Register dump [23]: 000000000000000000007f6a73ffdc50000000000000000800000000000002460000000000000042000000000000000200007f6a73ffdf8000007f6a71bebd68000000000000000200007f6a73ffdc5000007f6a73ffdea800000000000000000000000000000000000000000000000000007f6aa480e07700007f6a73ffdc5000007f6aa480e0770000000000000246002b00000000003300000000000000000000000000000000fffffffe7ffbba130000000000000000
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: STACKTRACE
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: ??:0 0x55df1ff2a85d 0x55df1fd87000
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: ??:0 0x7f6aa4b62dd0 0x7f6aa4b50000
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: gsignal+0xc7  (/lib/x86_64-linux-gnu/libc.so.6)
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: abort+0x121  (/lib/x86_64-linux-gnu/libc.so.6)
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: ??:0 0x55df1feeb2be 0x55df1fd87000
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: ??:0 0x55df1feeb308 0x55df1fd87000
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: ??:0 0x55df1feebca5 0x55df1fd87000
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: ??:0 0x55df1ff1d055 0x55df1fd87000
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: ??:0 0x55df1feeb07d 0x55df1fd87000
Dec  9 15:12:19 my-desktop tvheadend[3264]: CRASH: ??:0 0x7f6aa4b58164 0x7f6aa4b50000
Dec  9 15:12:19 my-desktop systemd[1]: tvheadend.service: Main process exited, code=killed, status=6/ABRT

#4

Updated by Luis Alves almost 6 years ago

Apply this PR:
https://github.com/tvheadend/tvheadend/pull/1235

It's just a mutex missing the init call.

#5

Updated by Jaroslav Kysela almost 6 years ago

Fixed in v4.3-1638-gf0524db40 .

#6

Updated by Jaroslav Kysela almost 6 years ago

  • Status changed from New to Fixed
#7

Updated by David jrm almost 6 years ago

Jaroslav Kysela wrote:

Fixed in v4.3-1638-gf0524db40 .

I still seeing the same crash with 4.3.1638...
I have downgraded to 4.3.1537 and it is working fine

#8

Updated by th0ma7 ^ almost 6 years ago

New version solved the issue.
Thnx a lot!

#9

Updated by neil mac almost 6 years ago

Vincent Fortier wrote:

New version solved the issue.
Thnx a lot!

I am still getting this in the mutex-deadlock.txt on the latest git commit (f0524db407764aeaad4229aa7301babf05a6de79).

REASON: magic
mutex 0x7f6808001ef0 locked in: (null):0 (thread 0)
mutex 0x7f6808001ef0 other in: (null):0 (thread 0)

#10

Updated by Jaroslav Kysela almost 6 years ago

Update to v4.3-1642-g5dbd82807 and report the crash text again.

#11

Updated by neil mac almost 6 years ago

Jaroslav Kysela wrote:

Update to v4.3-1642-g5dbd82807 and report the crash text again.

REASON: magic (src/profile.c:940)
mutex 0x7f70bc001ef0 locked in: (null):0 (thread 0)
mutex 0x7f70bc001ef0 other in: (null):0 (thread 0)

#12

Updated by Jaroslav Kysela almost 6 years ago

v4.3-1643-g2e4aa820a

#13

Updated by neil mac almost 6 years ago

Jaroslav Kysela wrote:

v4.3-1643-g2e4aa820a

fixed

Also available in: Atom PDF