Bug #1346
Crash when no transponder available
0%
Description
Hi
Now we have the active subscription tab I was going some testing to ensure tvh correctly chooses the correct adapter (using the extra priority value - to force this).
Anyway I got a crash when I am using all transponders.
Let me know if you need more information or testing.
Neil
--
Oct 21 18:13:37 server tvheadend20632: Service: Subscription "HTTP": Probing adapter "_dev_dvb_adapter1_TurboSight_TBS_6981_DVBS_S2_frontend10714000_H_satconf_1" with weight 100 for service "TurboSight TBS 6981 DVBS/S2 frontend 1/ASTRA: 10,714,000 kHz Horizontal (Default (Port 0, Universal LNB))/Channel 4"
Oct 21 18:13:37 tvheadend20632: last message repeated 5 times
Oct 21 18:13:37 server tvheadend20632: Service: Subscription "HTTP": Probing adapter "_dev_dvb_adapter2_TurboSight_TBS_6981_DVBS_S2_frontend12480000_V_satconf_2" with weight 100 for service "TurboSight TBS 6981 DVBS/S2 frontend 2/ASTRA: 12,480,000 kHz Vertical (Default (Port 0, Universal LNB))/Channel 4"
Oct 21 18:13:37 server tvheadend20632: Service: Subscription "HTTP": Probing adapter "_dev_dvb_adapter1_TurboSight_TBS_6981_DVBS_S2_frontend12480000_V_satconf_1" with weight 100 for service "TurboSight TBS 6981 DVBS/S2 frontend 1/ASTRA: 12,480,000 kHz Vertical (Default (Port 0, Universal LNB))/Channel 4"
Oct 21 18:13:37 server tvheadend20632: subscription: No transponder available for subscription "HTTP" to channel "Channel 4"
Oct 21 18:13:37 server tvheadend20632: CRASH: Signal: 11 in PRG: /usr/local/bin/tvheadend (3.3.77~g72d90ee) [971ac178614cda1fd1b6a76b388e8ba9309e9da0] CWD: /
Oct 21 18:13:37 server tvheadend20632: CRASH: Fault address 0x10 (Address not mapped)
Oct 21 18:13:37 server tvheadend20632: CRASH: Loaded libraries: /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 /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-gnu/libnss_files.so.2
Oct 21 18:13:37 server tvheadend20632: CRASH: Register dump [23]: 0000000000000088 0101010101010101 6e6e61684322206c 00007ff862ac8787 00007ff8227fb540 0000000000000004 0000000000000000 00007ff8227fb230 00007ff81c326f58 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ff81c326ed0 000000000000005b 00007ff8227fb130 00000000004448c3 0000000000010206 0000000000000033 0000000000000004 000000000000000e fffffffe7ffbfa17 0000000000000010
Oct 21 18:13:37 server tvheadend20632: CRASH: STACKTRACE
Oct 21 18:13:37 server tvheadend20632: CRASH: /home/server/tvheadend/src/trap.c:139 0x425ccb
Oct 21 18:13:37 server tvheadend20632: CRASH: ??:0 0x7ff862e09cb0
Oct 21 18:13:37 server tvheadend20632: CRASH: /home/server/tvheadend/src/muxer_pass.c:312 0x4448c3
Oct 21 18:13:37 server tvheadend20632: CRASH: /home/server/tvheadend/src/muxer.c:170 0x4440c5
Oct 21 18:13:37 server tvheadend20632: CRASH: /home/server/tvheadend/src/webui/webui.c:156 0x43ce82
Oct 21 18:13:37 server tvheadend20632: CRASH: /home/server/tvheadend/src/webui/webui.c:630 0x43d532
Oct 21 18:13:37 server tvheadend20632: CRASH: /home/server/tvheadend/src/http.c:343 0x407fcd
Oct 21 18:13:37 server tvheadend20632: CRASH: /home/server/tvheadend/src/http.c:374 0x408393
Oct 21 18:13:37 server tvheadend20632: CRASH: /home/server/tvheadend/src/http.c:454 0x408532
Oct 21 18:13:37 server tvheadend20632: CRASH: /home/server/tvheadend/src/http.c:748 0x408910
Oct 21 18:13:37 server tvheadend20632: CRASH: /home/server/tvheadend/src/tcp.c:401 0x406db9
Oct 21 18:13:37 server tvheadend20632: CRASH: ??:0 0x7ff862e01e9a
Oct 21 18:13:37 server tvheadend20632: CRASH: clone+0x6d (/lib/x86_64-linux-gnu/libc.so.6)
Oct 21 18:13:37 server kernel: [2155792.286864] tvheadend21841: segfault at 10 ip 00000000004448c3 sp 00007ff8227fb130 error 4 in tvheadend[400000+84000]
Oct 21 18:13:39 server kernel: [2155794.427930] cx8802_start_dma() Failed. Unsupported value in .mpeg (0x00000001)
History
Updated by Adam Sutton about 12 years ago
- Status changed from New to Accepted
- Assignee changed from Hein Rigolo to John Törnblom
Will pass this over to John as the immediate point of failure was the muxer code.
Adam
Updated by John Törnblom about 12 years ago
It seems to be calloc() that fails. Could you keep an eye on the memory usage? It might be caused by a memory leak that was fixed in master a few days ago.
Updated by Adam Sutton about 12 years ago
John,
Yeah that sounds very like a report from JackWinter, he had a crash in the EPG code (malloc() returned NULL) which I attributed to mem leak's in muxer code since he'd also run out of disk space and so recordings were failing (which I believe was one of the triggers?).
However this has been reported against commit:72d90ee, which was after your fixes (and is HEAD at the time of writing). Maybe another mem leak elsewhere.
Adam
Updated by Adam Sutton about 12 years ago
- Status changed from Accepted to Fixed
- Target version set to 3.2
I believe this will almost certainly have been a result of a memory leak in the MKV muxer code. This has now been plugged.
If the problem should re-occur though, please do re-submit.
Adam
Updated by Dario Maccari almost 12 years ago
I still have a crash when no transponder is available in 3.2.18 (ubuntu official repo):
Nov 8 22:39:51 tvserver tvheadend18563: subscription: No transponder available for subscription "HTTP" to channel "Fox + 2"
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: Signal: 11 in PRG: tvheadend (3.2.18~g40a8920~quantal) [e438b03b42b66122fa103238ebfa6d6482f8c9b5] CWD: /
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: Fault address 0x10 (Address not mapped)
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: Loaded libraries: /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.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/librt.so.1 /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib64/ld-linux-x86-64.so.2 /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-gnu/libnss_files.so.2
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: Register dump [23]: 0000000000000088 0101010101010101 2b20786f4622206c 00007fa112ee7cf7 00007fa0dc000a40 00007fa0d37fd1f0 00007fa0d37fd570 0000000000000000 00007fa0dc3d9dc8 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007fa0dc3d9d40 000000000000005b 00007fa0d37fd100 0000000000444c2b 0000000000010202 0000000000000033 0000000000000004 000000000000000e fffffffe7ffbfa17 0000000000000010
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: STACKTRACE
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: ??:0 0x426499
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: ??:0 0x7fa11322acb0
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: ??:0 0x444c2b
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: ??:0 0x444495
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: ??:0 0x43d432
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: ??:0 0x43d974
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: ??:0 0x40868d
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: ??:0 0x408a43
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: ??:0 0x408be2
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: ??:0 0x409093
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: ??:0 0x40754c
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: ??:0 0x7fa113222e9a
Nov 8 22:39:51 tvserver tvheadend18563: CRASH: clone+0x6d (/lib/x86_64-linux-gnu/libc.so.6)
Nov 8 22:39:51 tvserver kernel: [68309.527171] tvheadend19662: segfault at 10 ip 0000000000444c2b sp 00007fa0d37fd100 error 4 in tvheadend[400000+85000]
Updated by John Törnblom almost 12 years ago
- Status changed from Fixed to Accepted
It has been fixed in master. I'll see if I can create a quick fix for 3.2 that will avoid the crash. The original fix depend on a few changes not available in 3.2.
Updated by Adam Sutton almost 12 years ago
- Status changed from Accepted to Fixed
- Target version changed from 3.2 to 3.4
I don't think its likely that any more fixes will be applied against 3.2 as we've been trying to stabilise 3.4 for sometime now.
Therefore I'm going to close this as fixed in 3.4.
Adam