Project

General

Profile

Bug #5324

descrambler/cccam: crash/segfault when providers get removed

Added by Luis Alves almost 4 years ago. Updated almost 4 years ago.

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

0%

Estimated time:
Found in version:
github master
Affected Versions:

Description

Getting a crash when for some reason oscam msgs tvh that providers were removed:

Nov 10 20:02:39 server tvheadend[11043]: cccam: 127.0.0.1:15900: card ID:xxxxxxxx CAID:18xx with 3 providers removed
Nov 10 20:02:39 server tvheadend[11043]: CRASH: Signal: 11 in PRG: /home/tvheadend/tvheadend/build.linux/tvheadend (4.3-1530~ge486606eb) [d654b6fca2430e6dfa3341da6182a2bd508ef610] CWD: /home/tvheadend
Nov 10 20:02:39 server tvheadend[11043]: CRASH: Fault address 0x60 (Address not mapped)
Nov 10 20:02:39 server tvheadend[11043]: 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 /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/local/lib/libva.so.2 /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/local/lib/libva-drm.so.2 /usr/local/lib/libva-x11.so.2 /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/libdrm.so.2 /usr/lib/x86_64-linux-gnu/libXext.so.6 /usr/lib/x86_64-linux-gnu/libXfixes.so.3 /usr/lib/x86_64-linux
Nov 10 20:02:39 server tvheadend[11043]: CRASH: Register dump [23]: 0000000000000000000055c7c55b9500000000000000000000000000000002460000000000000000000000000000000000000000000000000000000000000001000000000000000000007f00e800094800007f00e8001fa0000000000000000000007f00e80008d00000000000000000000000000000000100007f0100ddc4c0000055c7c3e26c4b0000000000010246002b0000000000330000000000000006000000000000000efffffffe7ffbba130000000000000060
Nov 10 20:02:39 server tvheadend[11043]: CRASH: STACKTRACE
Nov 10 20:02:39 server tvheadend[11043]: CRASH: /SCRATCH/repos/tvheadend/src/trap.c:176 0x55c7c3d46c9d 0x55c7c3b2c000
Nov 10 20:02:39 server tvheadend[11043]: CRASH: ??:0 0x7f0105fe2890 0x7f0105fd0000
Nov 10 20:02:39 server tvheadend[11043]: CRASH: /SCRATCH/repos/tvheadend/src/descrambler/cclient.c:255 0x55c7c3e26c4b 0x55c7c3b2c000
Nov 10 20:02:39 server tvheadend[11043]: CRASH: /SCRATCH/repos/tvheadend/src/descrambler/cccam.c:436 0x55c7c3e2c91e 0x55c7c3b2c000
Nov 10 20:02:39 server tvheadend[11043]: CRASH: /SCRATCH/repos/tvheadend/src/descrambler/cclient.c:615 0x55c7c3e25ddb 0x55c7c3b2c000
Nov 10 20:02:39 server tvheadend[11043]: CRASH: /SCRATCH/repos/tvheadend/src/wrappers.c:181 0x55c7c3d09508 0x55c7c3b2c000
Nov 10 20:02:39 server tvheadend[11043]: CRASH: ??:0 0x7f0105fd76db 0x7f0105fd0000
Nov 10 20:02:39 server kernel: [78052.429120] tvh:cc-cccam[11055]: segfault at 60 ip 000055c7c3e26c4b sp 00007f0100ddc4c0 error 6 in tvheadend[55c7c3b2c000+1637000]

This is happening here: [https://github.com/tvheadend/tvheadend/blob/master/src/descrambler/cclient.c#L255]
Complaining that 'ct' is null for some reason.

History

#2

Updated by Luis Alves almost 4 years ago

Just created a new PR... forgot to reset the "changed" flag:
https://github.com/tvheadend/tvheadend/pull/1211

#3

Updated by Jaroslav Kysela almost 4 years ago

  • Status changed from New to Fixed

Both changes are in the git master tree.

Also available in: Atom PDF