Project

General

Profile

Bug #5481

Crash in htsbuf write

Added by Flole Systems almost 6 years ago. Updated over 4 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-01-05
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1676~g91f6de443
Affected Versions:

Description

I recived another crash today while watching TV normally, it seems to be somewhere in htsbuf

Jan 5 22:37:36 tvheadend27876: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.3-1676~g91f6de443) [1f43714b7ae18968a087d5dd12a33725abab0934] CWD: /
Jan 5 22:37:36 tvheadend27876: CRASH: Fault address (nil) (N/A)
Jan 5 22:37:36 tvheadend27876: 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-gnu/libcrypto.so.1.1 /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libpcre.so.3 /usr/lib/x86_64-linux-gnu/liburiparser.so.1 /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 /usr/lib/x86_64-linux-gnu/libvdpau.so.1 /usr/lib/x86_64-linux-gnu/libX11.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 /usr/lib/x86_64-linux-gnu/libXext.so.6 /usr/lib/x86_64-linux-gnu/libxcb.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 /usr/lib/x86_64-linux-gnu/libXau.so.6 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 /lib/x86_64-linux-gn
Jan 5 22:37:36 tvheadend27876: CRASH: Register dump [23]: 60ffd9dd06924fca000000000000000000000000000000000000557e2ad10b8d00007ff8e45ba488000000000000002000007ff8e45ba2e0000000000000007360ffd9dd06924fca00007ff8e45ba29800007ff8e45ba2d00000557e2ad10b7800007ff8e45ba56860ffd9dd06924fca0000000000000fca00007ff8e45b9d5800007ff8f229b6460000000000010293002b0000000000330000000000000000000000000000000dfffffffe7ffbba130000000000000000
Jan 5 22:37:36 tvheadend27876: CRASH: STACKTRACE
Jan 5 22:37:37 tvheadend27876: CRASH: /tvheadend/src/trap.c:176 0x557e29d72260 0x557e29b3c000
Jan 5 22:37:37 tvheadend27876: CRASH: ??:0 0x7ff8f3682890 0x7ff8f3670000
Jan 5 22:37:37 tvheadend27876: CRASH: ??:0 0x7ff8f229b646 0x7ff8f21ea000
Jan 5 22:37:37 tvheadend27876: CRASH: _IO_vfprintf+0x2143 (/lib/x86_64-linux-gnu/libc.so.6)
Jan 5 22:37:37 tvheadend27876: CRASH: vsnprintf+0x90 (/lib/x86_64-linux-gnu/libc.so.6)
Jan 5 22:37:37 tvheadend27876: CRASH: /tvheadend/src/htsbuf.c:258 0x557e29d71535 0x557e29b3c000
Jan 5 22:37:38 tvheadend27876: CRASH: /tvheadend/src/htsbuf.c:301 0x557e29d71760 0x557e29b3c000
Jan 5 22:37:38 tvheadend27876: CRASH: /tvheadend/src/tvh_thread.c:479 0x557e29d1da26 0x557e29b3c000
Jan 5 22:37:38 tvheadend27876: CRASH: /tvheadend/src/tvh_thread.c:148 0x557e29d1ce8e 0x557e29b3c000
Jan 5 22:37:38 tvheadend27876: CRASH: /tvheadend/src/tvh_thread.c:252 0x557e29d1d348 0x557e29b3c000
Jan 5 22:37:38 tvheadend27876: CRASH: /tvheadend/src/input/mpegts/tsdemux.c:265 (discriminator 2) 0x557e29e2e673 0x557e29b3c000
Jan 5 22:37:39 tvheadend27876: CRASH: /tvheadend/src/input/mpegts/mpegts_input.c:1519 (discriminator 3) 0x557e29e2aef7 0x557e29b3c000
Jan 5 22:37:39 tvheadend27876: CRASH: /tvheadend/src/input/mpegts/mpegts_input.c:1746 0x557e29e2bbe9 0x557e29b3c000
Jan 5 22:37:39 tvheadend27876: CRASH: /tvheadend/src/tvh_thread.c:91 0x557e29d1ccb5 0x557e29b3c000
Jan 5 22:37:39 tvheadend27876: CRASH: ??:0 0x7ff8f36776db 0x7ff8f3670000
Jan 5 22:37:39 tvheadend27876: CRASH: clone+0x3f (/lib/x86_64-linux-gnu/libc.so.6)

History

#1

Updated by Jaroslav Kysela almost 6 years ago

The problem is somewhere else, I cannot determine it from the crash - the variables should be inspected through gdb.

#2

Updated by Mr Merlino almost 6 years ago

Same problem...

Jan 9 14:06:37 server tvheadend16194: avahi: Service 'Tvheadend' successfully established.
Jan 9 14:06:38 server tvheadend16194: mpegts: 11013H in DVB-S Network - tuning on Montage Technology M88DS3103 #1 : DVB-S #0
Jan 9 14:06:38 server tvheadend16194: subscription: 0001: "epggrab" subscribing to mux "11013H", weight: 4, adapter: "Montage Technology M88DS3103 #1 : DVB-S #0", network: "DVB-S Network", service: "Raw PID Subscription"
Jan 9 14:06:38 server tvheadend16194: mpegts: 682MHz in DVB-T Network - tuning on Silicon Labs Si2168 #0 : DVB-T #0
Jan 9 14:06:38 server tvheadend16194: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.3-1716~g6d57bb6) [5d800b40468fad5efa3565f37ad5dcc00e0b142d] CWD: /
Jan 9 14:06:38 server tvheadend16194: CRASH: Fault address (nil) (Address not mapped)
Jan 9 14:06:38 server tvheadend16194: CRASH: Loaded libraries: /usr/lib/x86_64-linux-gnu/libdvbcsa.so.1 /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/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 /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 /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_64-linux-gnu/libnss_nis.so.2 /lib/x86_64-linux-g
Jan 9 14:06:38 server tvheadend16194: CRASH: Register dump [23]: 000055a6605e13a000007f5fe7a8fc100000000000000000fffffffffffffff5000055a6616af9a0000055a661604be0000055a6615e809000007f5fe7a8fea0000055a6615e8150000055a6616af9a000007f5fbc002b60000055a6615e815000000000000000030000000000000000000000000000000000007f5fe7a8fd6800000000000000000000000000010206002b0000000000330000000000000014000000000000000efffffffe7ffbba130000000000000000
Jan 9 14:06:38 server tvheadend16194: CRASH: STACKTRACE
Jan 9 14:06:38 server tvheadend16194: CRASH: ??:0 0x55a65f605b5d 0x55a65f3ef000
Jan 9 14:06:38 server kernel: [ 8461.410438] tvh:mtimer16217: segfault at 0 ip 0000000000000000 sp 00007f5fe7a8fd68 error 14 in tvheadend[55a65f3ef000+149a000]
Jan 9 14:06:38 server systemd1: tvheadend.service: Main process exited, code=killed, status=11/SEGV
Jan 9 14:06:38 server systemd1: tvheadend.service: Unit entered failed state.
Jan 9 14:06:38 server systemd1: tvheadend.service: Failed with result 'signal'.

#3

Updated by Flole Systems almost 6 years ago

Highly doubt that it's the same problem you are having, this looks more like the now-fixed OTA issue that you're having.

Just had another one:

Jan  9 22:36:47 tvheadend[20600]: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.3-1716~g6d57bb619) [31c0b15a8128ff57be8d6db82d74d117c43c3902] CWD: /
Jan  9 22:36:47 tvheadend[20600]: CRASH: Fault address (nil) (N/A)
Jan  9 22:36:47 tvheadend[20600]: 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-gnu/libcrypto.so.1.1 /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libpcre.so.3 /usr/lib/x86_64-linux-gnu/liburiparser.so.1 /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 /lib/x86_64-linux-gnu/libbz2.so.1.0 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libvdpau.so.1 /usr/lib/x86_64-linux-gnu/libX11.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 /usr/lib/x86_64-linux-gnu/libXext.so.6 /usr/lib/x86_64-linux-gnu/libxcb.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 /usr/lib/x86_64-linux-gnu/libXau.so.6 /usr/lib/x86_64-linux-gn
Jan  9 22:36:47 tvheadend[20600]: CRASH: Register dump [23]: 54b7d5af5733d55b0000000000000000000000000000000000005565b4c095b500007f413c31e488000000000000002000007f413c31e2e0000000000000007354b7d5af5733d55b00007f413c31e29800007f413c31e2d000005565b4c095a000007f413c31e56854b7d5af5733d55b000000000000055b00007f413c31dd5800007f4148bf56460000000000010293002b0000000000330000000000000000000000000000000dfffffffe7ffbba130000000000000000
Jan  9 22:36:47 tvheadend[20600]: CRASH: STACKTRACE
Jan  9 22:36:48 tvheadend[20600]: CRASH: tvheadend/src/trap.c:176 0x5565b3c5e46e 0x5565b3a26000
Jan  9 22:36:48 tvheadend[20600]: CRASH: ??:0 0x7f414a1ec890 0x7f414a1da000
Jan  9 22:36:48 tvheadend[20600]: CRASH: ??:0 0x7f4148bf5646 0x7f4148b44000
Jan  9 22:36:48 tvheadend[20600]: CRASH: _IO_vfprintf+0x2143  (/lib/x86_64-linux-gnu/libc.so.6)
Jan  9 22:36:48 tvheadend[20600]: CRASH: vsnprintf+0x90  (/lib/x86_64-linux-gnu/libc.so.6)
Jan  9 22:36:48 tvheadend[20600]: CRASH: tvheadend/src/htsbuf.c:258 0x5565b3c5d591 0x5565b3a26000
Jan  9 22:36:49 tvheadend[20600]: CRASH: tvheadend/src/htsbuf.c:301 0x5565b3c5d7bc 0x5565b3a26000
Jan  9 22:36:49 tvheadend[20600]: CRASH: tvheadend/src/tvh_thread.c:480 0x5565b3c09873 0x5565b3a26000
Jan  9 22:36:49 tvheadend[20600]: CRASH: tvheadend/src/tvh_thread.c:148 0x5565b3c08ca1 0x5565b3a26000
Jan  9 22:36:49 tvheadend[20600]: CRASH: tvheadend/src/tvh_thread.c:252 0x5565b3c0915b 0x5565b3a26000
Jan  9 22:36:49 tvheadend[20600]: CRASH: tvheadend/src/input/mpegts/tsdemux.c:265 (discriminator 2) 0x5565b3d1ac68 0x5565b3a26000
Jan  9 22:36:50 tvheadend[20600]: CRASH: tvheadend/src/input/mpegts/mpegts_input.c:1519 (discriminator 3) 0x5565b3d174ec 0x5565b3a26000
Jan  9 22:36:50 tvheadend[20600]: CRASH: tvheadend/src/input/mpegts/mpegts_input.c:1746 0x5565b3d181de 0x5565b3a26000
Jan  9 22:36:50 tvheadend[20600]: CRASH: tvheadend/src/tvh_thread.c:91 0x5565b3c08ac8 0x5565b3a26000
Jan  9 22:36:50 tvheadend[20600]: CRASH: ??:0 0x7f414a1e16db 0x7f414a1da000
Jan  9 22:36:50 tvheadend[20600]: CRASH: clone+0x3f  (/lib/x86_64-linux-gnu/libc.so.6)

I need to figure out why no core file was written though.....

#4

Updated by Flole Systems almost 6 years ago

This issue is the same as the mutex corruption in #5492, I still think we should throw a SIGSEV as soon as the magic error is detected and log before that. Then this would have been clear earlier.

#5

Updated by Flole Systems over 4 years ago

  • Status changed from New to Fixed

Also available in: Atom PDF