Bug #5593
Tvheadend latest git hit segmentation fault wtih dtmb tunner
0%
Description
Tvheadend latest git (4.3-1789~g6bfeca6c0) hit segmentation fault with dtmb tunner,work fine for version 4.2.8-23~g74cdf3f16
henry@henry-15Z980-G-AA52C:~$ tvheadend -v
tvheadend: version 4.3-1789~g6bfeca6c0
henry@henry-15Z980-G-AA52C:~$ uname -a
Linux henry-15Z980-G-AA52C 4.18.0-17-generic #18-Ubuntu SMP Wed Mar 13 14:34:40 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
henry@henry-15Z980-G-AA52C:~$ gdb --args tvheadend -D -d -C -c tvh
GNU gdb (Ubuntu 8.2-0ubuntu1) 8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from tvheadend...done.
(gdb) r
Starting program: /usr/local/bin/tvheadend -D -d -C -c tvh
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff208e700 (LWP 25055)]
2019-04-06 08:08:04.123 [ INFO] main: Log started
2019-04-06 08:08:04.123 [ INFO] http: Starting HTTP server 0.0.0.0:9981
2019-04-06 08:08:04.123 [ INFO] htsp: Starting HTSP server 0.0.0.0:9982
[New Thread 0x7fffed2e0700 (LWP 25056)]
[New Thread 0x7fffed0df700 (LWP 25057)]
[New Thread 0x7fffec8de700 (LWP 25058)]
2019-04-06 08:08:04.245 [ INFO] config: loaded
[New Thread 0x7fffec6dd700 (LWP 25059)]
[New Thread 0x7fffec4dc700 (LWP 25060)]
[New Thread 0x7fffec2db700 (LWP 25061)]
2019-04-06 08:08:04.246 [ INFO] config: scanfile (re)initialization with path <none>
[New Thread 0x7fffec0da700 (LWP 25062)]
2019-04-06 08:08:04.252 [ INFO] transcode: 'video' context type registered
2019-04-06 08:08:04.252 [ INFO] transcode: 'audio' context type registered
2019-04-06 08:08:04.252 [ INFO] transcode: '&TVHH264Decoder' decoder helper registered
2019-04-06 08:08:04.252 [ INFO] transcode: '&TVHTHEORADecoder' decoder helper registered
2019-04-06 08:08:04.252 [ INFO] transcode: '&TVHAACDecoder' decoder helper registered
2019-04-06 08:08:04.252 [ INFO] transcode: '&TVHVORBISDecoder' decoder helper registered
2019-04-06 08:08:04.252 [ INFO] transcode: '&TVHOPUSDecoder' decoder helper registered
2019-04-06 08:08:04.252 [ INFO] transcode: '&TVHMPEG2VIDEOEncoder' encoder helper registered
2019-04-06 08:08:04.252 [ INFO] transcode: '&TVHH264Encoder' encoder helper registered
2019-04-06 08:08:04.252 [ INFO] transcode: '&TVHHEVCEncoder' encoder helper registered
2019-04-06 08:08:04.252 [ INFO] transcode: '&TVHAACEncoder' encoder helper registered
2019-04-06 08:08:04.253 [ INFO] codec: 'mpeg2video' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'mp2' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'aac' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'vorbis' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'flac' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'libx264' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'libx265' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'libvpx' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'libvpx-vp9' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'libtheora' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'libvorbis' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'libopus' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'h264_vaapi' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'hevc_vaapi' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'vp8_vaapi' encoder registered
2019-04-06 08:08:04.253 [ INFO] codec: 'vp9_vaapi' encoder registered
2019-04-06 08:08:04.255 [ INFO] codec: 'webtv-aac' codec profile created
2019-04-06 08:08:04.255 [ INFO] codec: 'webtv-vp8' codec profile created
2019-04-06 08:08:04.255 [ INFO] codec: 'webtv-vorbis' codec profile created
2019-04-06 08:08:04.255 [ INFO] codec: 'webtv-h264' codec profile created
[New Thread 0x7fffebed9700 (LWP 25063)]
[New Thread 0x7fffebcd8700 (LWP 25064)]
[New Thread 0x7fffebad7700 (LWP 25065)]
2019-04-06 08:08:04.261 [ INFO] descrambler: adding CAID 2600/FFFF as ConstCW interval 10000ms pc 20 ep default (BISS)
2019-04-06 08:08:04.261 [ INFO] descrambler: adding CAID 0E00/FFFF as MultiPID interval 1000ms pc 2 ep default (PowerVu)
[New Thread 0x7fffeb8d6700 (LWP 25066)]
[New Thread 0x7fffeb6d5700 (LWP 25067)]
2019-04-06 08:08:04.263 [ INFO] iptv: Using 2 input thread(s)
2019-04-06 08:08:04.264 [ DEBUG] fsmonitor: watch /dev
2019-04-06 08:08:04.264 [ DEBUG] fsmonitor: watch /dev/dvb
2019-04-06 08:08:04.478 [ INFO] scanfile: DVB-S - loaded 1 regions with 115 networks
2019-04-06 08:08:04.478 [ INFO] scanfile: DVB-T - loaded 44 regions with 1135 networks
2019-04-06 08:08:04.478 [ INFO] scanfile: DVB-C - loaded 19 regions with 62 networks
2019-04-06 08:08:04.478 [ INFO] scanfile: ATSC-T - loaded 2 regions with 12 networks
2019-04-06 08:08:04.478 [ INFO] scanfile: ATSC-C - loaded 1 regions with 5 networks
2019-04-06 08:08:04.478 [ INFO] scanfile: ISDB-T - loaded 2 regions with 1297 networks
2019-04-06 08:08:04.658 [ INFO] linuxdvb: adapter added /dev/dvb/adapter0
[New Thread 0x7fffeb4d4700 (LWP 25069)]
[New Thread 0x7fffeacd3700 (LWP 25070)]
2019-04-06 08:08:04.660 [ INFO] dvr: Creating new configuration ''
[New Thread 0x7fffeaad2700 (LWP 25071)]
[New Thread 0x7fffea8d1700 (LWP 25072)]
[New Thread 0x7fffea6d0700 (LWP 25073)]
[New Thread 0x7fffea4cf700 (LWP 25074)]
2019-04-06 08:08:04.663 [ INFO] epggrab: module uk_freesat created
2019-04-06 08:08:04.663 [ INFO] epggrab: module uk_freesat_eit created
2019-04-06 08:08:04.663 [ INFO] epggrab: module uk_freeview created
2019-04-06 08:08:04.663 [ INFO] epggrab: module nz_freeview2 created
2019-04-06 08:08:04.663 [ INFO] epggrab: module nz_freeview1 created
2019-04-06 08:08:04.663 [ INFO] epggrab: module viasat_baltic created
2019-04-06 08:08:04.663 [ INFO] epggrab: module Bulsatcom_39E created
2019-04-06 08:08:04.663 [ INFO] epggrab: module uk_cable_virgin created
2019-04-06 08:08:04.663 [ INFO] epggrab: module eit created
2019-04-06 08:08:04.663 [ INFO] epggrab: module psip created
2019-04-06 08:08:04.669 [ DEBUG] opentv: dictionary skyeng loaded
2019-04-06 08:08:04.669 [ DEBUG] opentv: dictionary skyit loaded
2019-04-06 08:08:04.670 [ DEBUG] opentv: dictionary skynz loaded
2019-04-06 08:08:04.671 [ DEBUG] opentv: dictonaries loaded
2019-04-06 08:08:04.671 [ DEBUG] opentv: genre map ausat loaded
2019-04-06 08:08:04.671 [ DEBUG] opentv: genre map skyuk loaded
2019-04-06 08:08:04.671 [ DEBUG] opentv: genre map skyit loaded
2019-04-06 08:08:04.671 [ DEBUG] opentv: genre map skynz loaded
2019-04-06 08:08:04.672 [ DEBUG] opentv: genre maps loaded
2019-04-06 08:08:04.672 [ INFO] epggrab: module opentv-ausat created
2019-04-06 08:08:04.672 [ DEBUG] opentv: provider ausat loaded
2019-04-06 08:08:04.672 [ INFO] epggrab: module opentv-skyuk created
2019-04-06 08:08:04.673 [ DEBUG] opentv: provider skyuk loaded
2019-04-06 08:08:04.673 [ INFO] epggrab: module opentv-skyit created
2019-04-06 08:08:04.674 [ DEBUG] opentv: provider skyit loaded
2019-04-06 08:08:04.674 [ INFO] epggrab: module opentv-skynz created
2019-04-06 08:08:04.674 [ DEBUG] opentv: provider skynz loaded
2019-04-06 08:08:04.674 [ DEBUG] opentv: providers loaded
2019-04-06 08:08:04.674 [ INFO] epggrab: module xmltv created
2019-04-06 08:08:04.676 [ DEBUG] xmltv: using internal grab search
2019-04-06 08:08:04.677 [ INFO] tbl-eit: module eit - scraper disabled by config
[New Thread 0x7fffea2ce700 (LWP 25075)]
[New Thread 0x7fffea0cd700 (LWP 25076)]
2019-04-06 08:08:04.678 [ DEBUG] epgdb: database does not exist
[New Thread 0x7fffe9ecc700 (LWP 25077)]
2019-04-06 08:08:04.678 [ INFO] dvr: Purging obsolete autorec entries for current schedule
[New Thread 0x7fffe9ccb700 (LWP 25078)]
2019-04-06 08:08:04.679 [ NOTICE] START: HTS Tvheadend version 4.3-1789~g6bfeca6c0 started, running as PID:25051 UID:1000 GID:1000, CWD:/home/henry CNF:/home/henry/tvh
[New Thread 0x7fffe9aca700 (LWP 25079)]
[New Thread 0x7fffe98c9700 (LWP 25080)]
[New Thread 0x7fffe96c8700 (LWP 25081)]
[New Thread 0x7fffe94c7700 (LWP 25082)]
[New Thread 0x7fffe92c6700 (LWP 25083)]
[New Thread 0x7fffe90c5700 (LWP 25084)]
2019-04-06 08:08:04.683 [ DEBUG] avahi: Adding service 'Tvheadend'
2019-04-06 08:08:05.459 [ INFO] avahi: Service 'Tvheadend' successfully established.
Thread 5 "tvh:save" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffec8de700 (LWP 25058)]
_strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
62 ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
(gdb) bt full
#0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
No locals.
#1 0x00007ffff7280d8c in ?? () from /usr/lib/x86_64-linux-gnu/libasan.so.5
No symbol table info available.
#2 0x0000555555adbf08 in htsmsg_add_str (msg=0x6040000dc090, name=0x555556fe1fe0 "type", str=0x0) at src/htsmsg.c:373
f = 0xa00001c80
#3 0x0000555555d680e6 in linuxdvb_frontend_save (lfe=0x61b000001c80, fe=0x6040000dc050) at src/input/mpegts/linuxdvb/linuxdvb_frontend.c:2268
id = "pƍ\354\377\177\000\000θ\221\375\377\017\000"
m = 0x6040000dc090
#4 0x0000555555d52c56 in linuxdvb_adapter_class_save (in=0x60f0000005e0, filename=0x7fffec8dc840 "", fsize=4096) at src/input/mpegts/linuxdvb/linuxdvb_adapter.c:70
la = 0x60f0000005e0
m = 0x6040000dc010
l = 0x6040000dc050
lfe = 0x61b000001c80
lcat = 0xffffd91b8d2
ubuf = "\263\212\265A\000\000\000\000\240\344\324VUU\000\000\237\003\243UUU\000\000\000\000\000\000\000\000\000\000\377"
#5 0x0000555555a15bd1 in idnode_savefn (self=0x60f0000005e0, filename=0x7fffec8dc840 "", fsize=4096) at src/idnode.c:1163
idc = 0x555557327640 <linuxdvb_adapter_class>
#6 0x0000555555a1caa3 in save_thread (aux=0x0) at src/idnode.c:1974
ise = 0x603000046e40
in = 0x0
m = 0x0
u32 = 0
uuid = 0x0
filename = '\000' <repeats 1432 times>...
set = {us_array = 0x0, us_count = 0, us_size = 0, us_alloc_chunk = 10}
tset = {us_array = 0x0, us_count = 0, us_size = 0, us_alloc_chunk = 10}
lnotify = 0
#7 0x0000555555a2eff0 in thread_wrapper (p=0x604000007250) at src/tvh_thread.c:91
ts = 0x604000007250
set = {_val = {16388, 0 <repeats 15 times>}}
r = 0x0
#8 0x00007ffff650a164 in start_thread (arg=<optimized out> at pthread_create.c:486
ret = <optimized out>
pd = <optimized out>
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737162110720, 5950550706378150223, 140737488337470, 140737488337471, 140737488339904, 140737162107584, -5950588485795671729, -5950531682401611441},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
#9 0x00007ffff60dedef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
(gdb) quit
A debugging session is active.
Inferior 1 [process 25051] will be killed.
Quit anyway? (y or n) y
Files
History
Updated by henry lau over 5 years ago
- File gitdiff.patch gitdiff.patch added
finally I found the solution,
revert the 2 commits and delete DTMB entry in src/input/mpegts/mpegts_service.c (//if (mux_idc == &dvb_mux_dtmb_class) return "DTMB"
https://github.com/tvheadend/tvheadend/commit/cb86ef166a35e4bd88facacba6238782a17b9c71
https://github.com/tvheadend/tvheadend/commit/10e6dbe99fcaffb4cbb7b0045fa5b577243d3d28
attached pls find the git diff