Bug #5458
TVHeadend crash opening TVHClient Android app
100%
Description
Hi
I have upgraded to version 4.3-1690~gb3899e3fd~bionic and server crash just trying to open any channel from the TVHClient android application. I have reverted to the previous version I had installed 4.3-1537~g57bd90680~bionic and there is no crash.
See below the crash:
Dec 26 13:00:38 tvh-server tvheadend21856: htsp: Got connection from 88.16.201.192
Dec 26 13:00:38 tvh-server tvheadend21856: htsp: 88.16.201.192: Welcomed client software: TVHClient (HTSPv31)
Dec 26 13:00:38 tvh-server tvheadend21856: htsp: 88.16.201.192 [ TVHClient ]: Identified as user 'admin'
Dec 26 13:00:38 tvh-server tvheadend21856: htsp: 88.16.201.192 [ admin | TVHClient ]: Privileges updated
Dec 26 13:00:39 tvh-server tvheadend21856: subscription: 0003: "epggrab" unsubscribing
Dec 26 13:00:39 tvh-server tvheadend21856: CRASH: Signal: 6 in PRG: /usr/bin/tvheadend (4.3-1690~gb3899e3fd) [f4df93b74c48890347382b0bfe8b54108b4d7eb0] CWD: /
Dec 26 13:00:39 tvh-server tvheadend21856: CRASH: Fault address 0x7a00005560 (N/A)
Dec 26 13:00:39 tvh-server tvheadend21856: CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/x86_64-linux-gnu/libdvbcsa.so.1 /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/x86_64-linux-g
nu/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 /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/libmvec.so.1 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libsystemd.so.0 /lib64/ld-linux-x86
-64.so.2 /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/x86_64-linux-gnu/liblzma.so.5 /usr/lib/x86_64-linux-gnu/liblz4.so.1 /lib/x86_64-linux-gnu/libgcrypt.so.20 /lib/x86_64-linux-gnu/libgpg-error
.so.0 /lib/x86_64-linux-gnu/libnss_compat.so.2 /lib/x86_64-linux-gnu/libnss_nis.so.2 /lib/x86_64-linux-gnu/libnsl.so.1
Dec 26 13:00:39 tvh-server tvheadend21856: CRASH: Register dump [23]: 000000000000000000007f12b423d2c00000000000000008000000000000024600005615f60d461f00005615f60d4630000000000000008e000000
0000000000000000000000000200007f12b423d2c000007f12d377c07500000000000000000000000000000000000000000000000000007f12d0c4ce9700007f12b423d2c000007f12d0c4ce970000000000000246002b0000000000330000
0000000000000000000000000000fffffffe7ffbba130000000000000000
Dec 26 13:00:39 tvh-server tvheadend21856: CRASH: STACKTRACE
Dec 26 13:00:39 tvh-server tvheadend21856: CRASH: ??:0 0x5615f518c88d 0x5615f4f79000
Dec 26 13:00:39 tvh-server tvheadend21856: CRASH: ??:0 0x7f12d1b6a890 0x7f12d1b58000
Dec 26 13:00:39 tvh-server tvheadend21856: CRASH: gsignal+0xc7 (/lib/x86_64-linux-gnu/libc.so.6)
Dec 26 13:00:39 tvh-server tvheadend21856: CRASH: abort+0x141 (/lib/x86_64-linux-gnu/libc.so.6)
Dec 26 13:00:39 tvh-server tvheadend21856: CRASH: ??:0 0x7f12d0c3e39a 0x7f12d0c0e000
Dec 26 13:00:40 tvh-server tvheadend21856: CRASH: ??:0 0x7f12d0c3e412 0x7f12d0c0e000
Dec 26 13:00:40 tvh-server tvheadend21856: CRASH: ??:0 0x5615f5199082 0x5615f4f79000
Dec 26 13:00:40 tvh-server tvheadend21856: CRASH: ??:0 0x5615f519c7b9 0x5615f4f79000
Dec 26 13:00:40 tvh-server tvheadend21856: CRASH: ??:0 0x5615f51808fc 0x5615f4f79000
Dec 26 13:00:40 tvh-server tvheadend21856: CRASH: ??:0 0x5615f517ed14 0x5615f4f79000
Dec 26 13:00:40 tvh-server tvheadend21856: CRASH: ??:0 0x5615f5151ee0 0x5615f4f79000
Dec 26 13:00:40 tvh-server tvheadend21856: http: 88.16.201.192: using ticket f63d7352842211dd61bc81a9d4e1c01c4198a1b8 for /stream/channelid/826720972
Dec 26 13:00:40 tvh-server tvheadend21856: mpegts: 490MHz in bcnhdhr - tuning on HDHomeRun DVB-T Tuner #1 (192.168.1.80)
Dec 26 13:00:40 tvh-server tvheadend21856: tvhdhomerun: tuning to auto:490000000
Dec 26 13:00:40 tvh-server tvheadend21856: subscription: 0009: "HTTP" subscribing on channel "Atreseries HD", weight: 100, adapter: "HDHomeRun DVB-T Tuner #1 (192.168.1.80)", network: "bcn
hdhr", mux: "490MHz", provider: "A3MEDIA", service: "atreseries HD", profile="pass", hostname="88.16.201.192", username="admin", client="VLC/3.0.4 LibVLC/3.0.4"
Dec 26 13:00:40 tvh-server tvheadend21856: CRASH: ??:0 0x5615f514cf08 0x5615f4f79000
Dec 26 13:00:40 tvh-server tvheadend21856: tvhdhomerun: tuner_vstatus (0)
Dec 26 13:00:40 tvh-server tvheadend21856: CRASH: ??:0 0x7f12d1b5f6db 0x7f12d1b58000
Dec 26 13:00:40 tvh-server tvheadend21856: CRASH: clone+0x3f (/lib/x86_64-linux-gnu/libc.so.6)
Dec 26 13:00:40 tvh-server systemd1: tvheadend.service: Main process exited, code=killed, status=6/ABRT
Dec 26 13:00:40 tvh-server systemd1: tvhe
Files
History
Updated by David jrm almost 6 years ago
Better now?
Dec 26 13:32:18 tvh-server tvheadend30269: CRASH: Register dump [23]: 000000000000000000007fe58c3c02c00000000000000008000000000000024600005602fd76661f00005602fd766630000000000000008e000000
0000000000000000000000000200007fe58c3c02c000007fe5a2f5107500000000000000000000000000000000000000000000000000007fe5a0421e9700007fe58c3c02c000007fe5a0421e970000000000000246002b0000000000330000
0000000000000000000000000000fffffffe7ffbba130000000000000000
Dec 26 13:32:18 tvh-server tvheadend30269: CRASH: STACKTRACE
Dec 26 13:32:18 tvh-server tvheadend30269: CRASH: /project/repo/checkout/src/trap.c:176 0x5602fc81e88d 0x5602fc60b000
Dec 26 13:32:18 tvh-server tvheadend30269: CRASH: ??:0 0x7fe5a133f890 0x7fe5a132d000
Dec 26 13:32:18 tvh-server tvheadend30269: CRASH: gsignal+0xc7 (/lib/x86_64-linux-gnu/libc.so.6)
Dec 26 13:32:18 tvh-server tvheadend30269: CRASH: abort+0x141 (/lib/x86_64-linux-gnu/libc.so.6)
Dec 26 13:32:19 tvh-server tvheadend30269: CRASH: ??:0 0x7fe5a041339a 0x7fe5a03e3000
Dec 26 13:32:19 tvh-server tvheadend30269: CRASH: ??:0 0x7fe5a0413412 0x7fe5a03e3000
Dec 26 13:32:19 tvh-server tvheadend30269: CRASH: /project/repo/checkout/src/imagecache.c:142 0x5602fc82b082 0x5602fc60b000
Dec 26 13:32:19 tvh-server tvheadend30269: CRASH: /project/repo/checkout/src/imagecache.c:746 0x5602fc82e7b9 0x5602fc60b000
Dec 26 13:32:19 tvh-server tvheadend30269: CRASH: /project/repo/checkout/src/htsp_server.c:2827 0x5602fc8128fc 0x5602fc60b000
Dec 26 13:32:19 tvh-server tvheadend30269: CRASH: /project/repo/checkout/src/htsp_server.c:3305 0x5602fc810d14 0x5602fc60b000
Dec 26 13:32:19 tvh-server tvheadend30269: CRASH: /project/repo/checkout/src/tcp.c:724 0x5602fc7e3ee0 0x5602fc60b000
Dec 26 13:32:20 tvh-server tvheadend30269: CRASH: /project/repo/checkout/src/tvh_thread.c:91 0x5602fc7def08 0x5602fc60b000
Dec 26 13:32:20 tvh-server tvheadend30269: CRASH: ??:0 0x7fe5a13346db 0x7fe5a132d000
Dec 26 13:32:20 tvh-server tvheadend30269: CRASH: clone+0x3f (/lib/x86_64-linux-gnu/libc.so.6)
Dec 26 13:32:20 tvh-server systemd1: tvheadend.service: Main process exited, code=killed, status=6/ABRT
Updated by Jaroslav Kysela almost 6 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:tvheadend|112e06dfdc0a713e97a040eb7c443a31fb2ac46e.
Updated by David jrm almost 6 years ago
Jaroslav Kysela wrote:
Applied in changeset commit:tvheadend|112e06dfdc0a713e97a040eb7c443a31fb2ac46e.
Server still hanging randomly with version 4.3.1691 however now I cannot see any application crash in the syslog when server doesn't respond. Will keep trying to get any crash log to share it....
Updated by David jrm almost 6 years ago
David jrm wrote:
Jaroslav Kysela wrote:
Applied in changeset commit:tvheadend|112e06dfdc0a713e97a040eb7c443a31fb2ac46e.
Server still hanging randomly with version 4.3.1691 however now I cannot see any application crash in the syslog when server doesn't respond. Will keep trying to get any crash log to share it....
Application doesn't respond after few minutes (neither webui or any other client) however there is no crash and service keep running as below. Can you pls let me know if there is any other way to see more details about this hang?
Thanks
● tvheadend.service - Tvheadend - a TV streaming server and DVR
Loaded: loaded (/lib/systemd/system/tvheadend.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2018-12-26 15:26:49 CET; 52min ago
Process: 7268 ExecStart=/usr/bin/tvheadend -f -p /var/run/tvheadend.pid $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 7269 (tvheadend)
Tasks: 40 (limit: 4915)
CGroup: /system.slice/tvheadend.service
└─7269 /usr/bin/tvheadend -f -p /var/run/tvheadend.pid -u hts -g video
dic 26 15:31:36 tvh-server tvheadend7269: tvhdhomerun: tuning to auto:634000000
dic 26 15:31:36 tvh-server tvheadend7269: subscription: 002C: "epggrab" subscribing to mux "634MHz", weight: 4, adapter: "HDHomeRun DVB-T Tuner #1 (192.168.1.80)", network: "bcnhdhr", service:
dic 26 15:31:36 tvh-server tvheadend7269: tvhdhomerun: tuner_vstatus (0)
dic 26 15:31:43 tvh-server tvheadend7269: subscription: 002A: "epggrab" unsubscribing
dic 26 15:32:02 tvh-server tvheadend7269: htsp: 88.16.201.192 [ admin | TVHClient ]: Disconnected
dic 26 15:32:32 tvh-server tvheadend7269: subscription: 002C: "epggrab" unsubscribing
dic 26 16:17:13 tvh-server tvheadend7269: htsp: Got connection from 88.16.201.192
dic 26 16:17:13 tvh-server tvheadend7269: htsp: 88.16.201.192: Welcomed client software: TVHClient (HTSPv31)
dic 26 16:17:14 tvh-server tvheadend7269: htsp: 88.16.201.192 [ TVHClient ]: Identified as user 'admin'
dic 26 16:17:14 tvh-server tvheadend7269: htsp: 88.16.201.192 [ admin | TVHClient ]: Privileges updated
Updated by B C almost 6 years ago
see https://tvheadend.org/projects/tvheadend/wiki/Debugging#Dead-or-Live-Lock for debug instructions
Updated by David jrm almost 6 years ago
B C wrote:
see https://tvheadend.org/projects/tvheadend/wiki/Debugging#Dead-or-Live-Lock for debug instructions
Not sure if this is right, but see the attached file while tvheadend was running but not responsive...
Updated by Jaroslav Kysela almost 6 years ago
The deadlock should be resolved in v4.3-1693-gfee0b53e9 .
Updated by David jrm almost 6 years ago
Jaroslav Kysela wrote:
The deadlock should be resolved in v4.3-1693-gfee0b53e9 .
Thanks Jaroslav, I have tested v4.3-1693-gfee0b53e9 and now seems to be OK!