Bug #4613
TVH crashes when user disconnects unexpectedly
0%
Description
After upgrading to 4.2.3-78 yesterday, I encountered an issue that was not there with the previous version:
When a user disconnects unexpectedly (e.g. cutting the power of my Pi with LibreELEC), TVH crashes.
It does not occur when I choose "restart" or "shutdown" from LibreELEC.
Here is the log:
Sep 19 18:45:20 t30 tvheadend376: subscription: 013E: "epggrab" unsubscribing
Sep 19 18:57:45 t30 tvheadend376: htsp: 192.168.2.42 [ user | Kodi Media Center ]: Disconnected
Sep 19 18:57:45 t30 tvheadend376: CRASH: Signal: 6 in PRG: /usr/bin/tvheadend (4.2.3-78~g83625136c) [608514897c8e446a12ffef23db5315109f5f8996] CWD: /
Sep 19 18:57:45 t30 tvheadend376: CRASH: Fault address 0x7700000178 (N/A)
Sep 19 18:57:45 t30 tvheadend376: CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/libdvben50221.so /usr/lib/libdvbapi.so /usr/lib/libucsi.so /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/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 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /lib/x86_64-linux-gnu/libmvec.so.1 /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/libselinux.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/libpcre.so.3 /lib/x86_64-linux-gnu/libgpg-error.so.0 /lib/x86_64-linux-gnu/libnss_compat.so.2 /lib/x86_64-l
Sep 19 18:57:45 t30 tvheadend376: CRASH: Register dump [23]: 000000000000000000007faffa5f125000000000000000080000000000000246000000000000000200007fb0240015a000007faffa5f17900000562efab6d908000000000000000200007faffa5f125000007fb024001a4f00000000000000060000000000000000000000000000000000007fb0632fafcf00007faffa5f12c800007fb0632fafcf0000000000000246002b00000000003300000000000000000000000000000000fffffffe7ffbba130000000000000000
Sep 19 18:57:45 t30 tvheadend376: CRASH: STACKTRACE
Sep 19 18:57:46 t30 tvheadend376: CRASH: ??:0 0x562ef995473a 0x562ef9755000
Sep 19 18:57:46 t30 tvheadend376: CRASH: ??:0 0x7fb0641300c0 0x7fb06411f000
Sep 19 18:57:46 t30 tvheadend376: CRASH: gsignal+0xcf (/lib/x86_64-linux-gnu/libc.so.6)
Sep 19 18:57:46 t30 tvheadend376: CRASH: abort+0x16a (/lib/x86_64-linux-gnu/libc.so.6)
Sep 19 18:57:46 t30 tvheadend376: CRASH: ??:0 0x562ef98df823 0x562ef9755000
Sep 19 18:57:46 t30 tvheadend376: CRASH: ??:0 0x562ef993d6a2 0x562ef9755000
Sep 19 18:57:46 t30 tvheadend376: CRASH: ??:0 0x562ef9943369 0x562ef9755000
Sep 19 18:57:46 t30 tvheadend376: CRASH: ??:0 0x562ef99480f5 0x562ef9755000
Sep 19 18:57:46 t30 tvheadend376: CRASH: ??:0 0x562ef9920e92 0x562ef9755000
Sep 19 18:57:46 t30 tvheadend376: CRASH: ??:0 0x562ef991cb31 0x562ef9755000
Sep 19 18:57:46 t30 tvheadend376: CRASH: ??:0 0x7fb064126494 0x7fb06411f000
Sep 19 18:57:46 t30 tvheadend376: CRASH: clone+0x3f (/lib/x86_64-linux-gnu/libc.so.6)
Here is an other, with an other user:
Sep 18 22:24:53 t30 tvheadend25603: htsp: 192.168.2.41 [ user2 | Kodi Media Center ]: Write error -- Die Ressource ist zur Zeit nicht verfügbar
Sep 18 22:24:53 t30 tvheadend25603: htsp: 192.168.2.41 [ user2 | Kodi Media Center ]: Disconnected
Sep 18 22:24:53 t30 tvheadend25603: CRASH: Signal: 6 in PRG: /usr/bin/tvheadend (4.2.3-78~g8362513) [e5dc78accf992bc719292ae4af730d24794e236a] CWD: /
Sep 18 22:24:53 t30 tvheadend25603: CRASH: Fault address 0x7700006403 (N/A)
Sep 18 22:24:53 t30 tvheadend25603: CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/libdvben50221.so /usr/lib/libdvbapi.so /usr/lib/libucsi.so /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.so.1 /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 /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/libselinux.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/libpcre.so.3 /lib/x86_64-linux-gnu/libgpg-error.so.0 /lib/x86_64-linux-gnu/libnss_compat.so.2 /lib/x86_64-linux-gnu/libnsl.so.1 /lib/x86_6
Sep 18 22:24:53 t30 tvheadend25603: CRASH: Register dump [23]: 000000000000000000007f77f45e4250000000000000000800000000000002460000000000000002000055db8c01f880000055db8c01fbc800007f77a40010df000000000000000200007f77f45e425000007f77f45e479000000000000000060000000000000000000000000000000000007f7807881fcf00007f77f45e42c800007f7807881fcf0000000000000246002b00000000003300000000000000000000000000000000fffffffe7ffbba130000000000000000
Sep 18 22:24:53 t30 tvheadend25603: CRASH: STACKTRACE
Sep 18 22:24:53 t30 tvheadend25603: CRASH: ??:0 0x55db8aeb4e2a 0x55db8acb5000
Sep 18 22:24:53 t30 tvheadend25603: CRASH: ??:0 0x7f780848d0c0 0x7f780847c000
Sep 18 22:24:53 t30 tvheadend25603: CRASH: gsignal+0xcf (/lib/x86_64-linux-gnu/libc.so.6)
Sep 18 22:24:53 t30 tvheadend25603: CRASH: abort+0x16a (/lib/x86_64-linux-gnu/libc.so.6)
Sep 18 22:24:53 t30 tvheadend25603: CRASH: ??:0 0x55db8ae40423 0x55db8acb5000
Sep 18 22:24:53 t30 tvheadend25603: CRASH: ??:0 0x55db8ae9d980 0x55db8acb5000
Sep 18 22:24:53 t30 tvheadend25603: CRASH: ??:0 0x55db8aea37c9 0x55db8acb5000
Sep 18 22:24:54 t30 tvheadend25603: CRASH: ??:0 0x55db8aea74e5 0x55db8acb5000
Sep 18 22:24:54 t30 tvheadend25603: CRASH: ??:0 0x55db8ae81670 0x55db8acb5000
Sep 18 22:24:54 t30 tvheadend25603: CRASH: ??:0 0x55db8ae7d1f4 0x55db8acb5000
Sep 18 22:24:54 t30 tvheadend25603: CRASH: ??:0 0x7f7808483494 0x7f780847c000
Sep 18 22:24:54 t30 tvheadend25603: CRASH: clone+0x3f (/lib/x86_64-linux-gnu/libc.so.6)
History
Updated by Thomas Pfister about 7 years ago
Note: I had the ~jessie package installed yesterday (because stretch builds were not available when I set up this machine). But I then updated to ~stretch and the upper log is from the ~stretch package.
System Information:Linux t30 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) x86_64 GNU/Linux
Updated by Thomas Pfister about 7 years ago
Thanks. I am on an older version now, hope I find some spare time for a new test later this week. ;-)
Updated by Thomas Pfister about 7 years ago
Here it is:
Sep 20 17:42:31 t30 tvheadend7264: CRASH: Signal: 6 in PRG: /usr/bin/tvheadend (4.2.3-85~gda9f14c79) [3e788ce2ad63b2d85bc5432c69b8e4e123bb95d4] CWD: /
Sep 20 17:42:31 t30 tvheadend7264: CRASH: Fault address 0x7700001c60 (N/A)
Sep 20 17:42:31 t30 tvheadend7264: CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/libdvben50221.so /usr/lib/libdvbapi.so /usr/lib/libucsi.so /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/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 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /lib/x86_64-linux-gnu/libmvec.so.1 /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/libselinux.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/libpcre.so.3 /lib/x86_64-linux-gnu/libgpg-error.so.0 /lib/x86_64-linux-gnu/libnss_compat.so.2 /lib/x86_64-l
Sep 20 17:42:31 t30 tvheadend7264: CRASH: Register dump [23]: 000000000000000000007fbb625f125000000000000000080000000000000246000000000000000200007fbb2400164000007fbb625f1790000055da10a948f0000000000000000200007fbb625f125000007fbb2400140f00000000000000060000000000000000000000000000000000007fbb85402fcf00007fbb625f12c800007fbb85402fcf0000000000000246002b00000000003300000000000000000000000000000000fffffffe7ffbba130000000000000000
Sep 20 17:42:31 t30 tvheadend7264: CRASH: STACKTRACE
Sep 20 17:42:31 t30 tvheadend7264: CRASH: /project/repo/checkout/src/trap.c:148 0x55da0f87b79a 0x55da0f67c000
Sep 20 17:42:31 t30 tvheadend7264: CRASH: ??:0 0x7fbb862380c0 0x7fbb86227000
Sep 20 17:42:31 t30 tvheadend7264: CRASH: gsignal+0xcf (/lib/x86_64-linux-gnu/libc.so.6)
Sep 20 17:42:31 t30 tvheadend7264: CRASH: abort+0x16a (/lib/x86_64-linux-gnu/libc.so.6)
Sep 20 17:42:31 t30 tvheadend7264: CRASH: /project/repo/checkout/src/tvheadend.h:101 0x55da0f806823 0x55da0f67c000
Sep 20 17:42:31 t30 tvheadend7264: CRASH: /project/repo/checkout/src/subscriptions.c:716 0x55da0f8646f2 0x55da0f67c000
Sep 20 17:42:31 t30 tvheadend7264: CRASH: /project/repo/checkout/src/htsp_server.c:782 0x55da0f86a3b9 0x55da0f67c000
Sep 20 17:42:31 t30 tvheadend7264: CRASH: /project/repo/checkout/src/htsp_server.c:3408 0x55da0f86f145 0x55da0f67c000
Sep 20 17:42:31 t30 tvheadend7264: CRASH: /project/repo/checkout/src/tcp.c:669 0x55da0f847e92 0x55da0f67c000
Sep 20 17:42:32 t30 tvheadend7264: CRASH: /project/repo/checkout/src/wrappers.c:159 0x55da0f843b31 0x55da0f67c000
Sep 20 17:42:32 t30 tvheadend7264: CRASH: ??:0 0x7fbb8622e494 0x7fbb86227000
Updated by Thomas Pfister about 7 years ago
Just FYI, this issue is fixed for some versions now. Sadly I had to try this myself...
Updated by Mark Clarkstone about 7 years ago
- Category set to Crashes
- Status changed from New to Fixed
Thomas Pfister wrote:
Just FYI, this issue is fixed for some versions now. Sadly I had to try this myself...
Thanks for the update. I shall mark this as fixed.