Bug #4411
Segmentation Fault
100%
Description
Os
Startup log 4.3-182~gc82a3d1
[ 3967.063786] ddbridge 0000:0d:00.0: DVB: adapter 3 frontend 0 frequency 0 out of range (950000..2150000) [ 3967.081738] ddbridge 0000:0d:00.0: DVB: adapter 3 frontend 0 frequency 0 out of range (950000..2150000) [ 3967.092314] ddbridge 0000:0d:00.0: DVB: adapter 3 frontend 0 frequency 0 out of range (950000..2150000) [ 3967.109963] ddbridge 0000:0d:00.0: DVB: adapter 3 frontend 0 frequency 0 out of range (950000..2150000) [ 3967.111035] ddbridge 0000:0b:00.0: DVB: adapter 2 frontend 0 frequency 0 out of range (47125000..865000000) [ 3967.114428] ddbridge 0000:0b:00.0: DVB: adapter 2 frontend 0 symbol rate 0 out of range (870000..11700000) [ 3967.115374] ddbridge 0000:0b:00.0: DVB: adapter 2 frontend 0 frequency 0 out of range (47125000..865000000) [ 3967.118709] ddbridge 0000:0b:00.0: DVB: adapter 2 frontend 0 frequency 0 out of range (47125000..865000000) [ 3967.129338] ddbridge 0000:0a:00.0: DVB: adapter 1 frontend 0 frequency 0 out of range (950000..2150000) [ 3967.146675] ddbridge 0000:0a:00.0: DVB: adapter 1 frontend 0 frequency 0 out of range (950000..2150000) [ 3967.146787] slot_shutdown [ 3967.511050] ddbridge 0000:04:00.0: DVB: adapter 0 frontend 0 frequency 0 out of range (950000..2150000) [ 3967.530019] ddbridge 0000:04:00.0: DVB: adapter 0 frontend 0 frequency 0 out of range (950000..2150000) [ 3969.889087] dvb_ca adapter 1: DVB CAM detected and initialised successfully
starting working all is OK
but any new version
[ 2352.347294] ddbridge 0000:0d:00.0: DVB: adapter 3 frontend 0 frequency 0 out of range (950000..2150000) [ 2352.365020] ddbridge 0000:0d:00.0: DVB: adapter 3 frontend 0 frequency 0 out of range (950000..2150000) [ 2352.375179] ddbridge 0000:0d:00.0: DVB: adapter 3 frontend 0 frequency 0 out of range (950000..2150000) [ 2352.392299] ddbridge 0000:0d:00.0: DVB: adapter 3 frontend 0 frequency 0 out of range (950000..2150000) [ 2352.393356] ddbridge 0000:0b:00.0: DVB: adapter 2 frontend 0 frequency 0 out of range (47125000..865000000) [ 2352.396741] ddbridge 0000:0b:00.0: DVB: adapter 2 frontend 0 symbol rate 0 out of range (870000..11700000) [ 2352.397694] ddbridge 0000:0b:00.0: DVB: adapter 2 frontend 0 frequency 0 out of range (47125000..865000000) [ 2352.401226] ddbridge 0000:0b:00.0: DVB: adapter 2 frontend 0 frequency 0 out of range (47125000..865000000) [ 2352.411486] ddbridge 0000:0a:00.0: DVB: adapter 1 frontend 0 frequency 0 out of range (950000..2150000) [ 2352.428586] ddbridge 0000:0a:00.0: DVB: adapter 1 frontend 0 frequency 0 out of range (950000..2150000) [ 2352.428670] slot_shutdown [ 2352.790210] ddbridge 0000:04:00.0: DVB: adapter 0 frontend 0 frequency 0 out of range (950000..2150000) [ 2352.808757] ddbridge 0000:04:00.0: DVB: adapter 0 frontend 0 frequency 0 out of range (950000..2150000) [ 2355.173251] dvb_ca adapter 1: DVB CAM detected and initialised successfully [ 2360.743404] tvh:mi-table[2958]: segfault at 90 ip 000055bd41a6a030 sp 00007f6c61c93d18 error 4 in tvheadend[55bd41887000+1100000]
error to all versions is same
tvh:mi-table[pid]: segfault at 90 ip 000055bd41a6a030 sp 00007f6c61c93d18 error 4 in tvheadend[55bd41887000+1100000]
#uname -a Linux FlamingoXL 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux #lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.8 (jessie) Release: 8.8 Codename: jessie
Files
History
Updated by saen acro over 7 years ago
I try to run it manually with command
tvheadend -u tvh -g video -s -c /home/hts/.hts/tvheadend/
but it can not read config aka is empty and all is read-only, tuners not found
at less is not crashig but it's not usable.
Updated by Mark Clarkstone over 7 years ago
saen acro wrote:
I try to run it manually with command
[...]
but it can not read config aka is empty and all is read-only, tuners not found
at less is not crashig but it's not usable.
I think you may need to provide a crash log. If you want an easy way to capture a core dump install corekeeper [it places them in /var/crash]. You can then use gdb to analyse.
Updated by saen acro over 7 years ago
- File crash.tar.gz crash.tar.gz added
This is crash with tvheadend_4.3-187~gf46a6c2_amd64.deb
GDB is mystery for me, its no easy as creating full network infrastructure for ISP, which i can do with eyes closed
Updated by Jaroslav Kysela over 7 years ago
Upload also your tvheadend binary with the core file..
Updated by saen acro over 7 years ago
- File crash2.tar.gz crash2.tar.gz added
- File deb-build dmesg.log deb-build dmesg.log added
- File tvheadend_4.3-191-g45c085a_amd64.deb tvheadend_4.3-191-g45c085a_amd64.deb added
Hope it's all
Updated by Willem D over 7 years ago
Just to add, I have the same problem since a few days. (I usually update daily, I haven't checked since which version this problem started, but I think it's about two days ago.) Running Debian x64 ('stretch'), 4.3-193~ga4ff519. Also with a ddbridge module for a satellite receiver.
From dmesg:
Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.3-193~ga4ff519) [15a15a895adaf9c5760b80707f582c2d60cfab01] CWD: / Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: Fault address 0x90 (Address not mapped) Jun 6 15:01:08 plantage tvheadend[10808]: 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 /lib/x86_64-linux-gnu/libpcre.so.3 /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/libgpg-error.so.0 /lib/x86_64-linux-gnu/libnss_compat.so.2 /lib/x86_64-linux-gnu/libnsl.so.1 /lib/x86_6 Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: Register dump [23]: 000000000000000100000000000000d000000000000000bc00007f3d1c0155c000000000000000cc00007f3d68007d2f000000000000000100007f3d68007d30000000000000000000007f3d85ff0eb00000555559d2e84000007f3d85ff0eb000007f3d85ff10b000007f3d1c000ca0000000000000000000007f3d85ff0b9800005555585256200000000000010206002b0000000000330000000000000004000000000000000efffffffe7ffbba110000000000000090 Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: STACKTRACE Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: ??:0 0x555558549eba 0x555558350000 Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: ??:0 0x7f3d97c0c0c0 0x7f3d97bfb000 Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: ??:0 0x555558525620 0x555558350000 Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: ??:0 0x5555585257a8 0x555558350000 Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: ??:? 0x5555585db371 0x555558350000 Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: ??:? 0x5555585dc1f2 0x555558350000 Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: ??:? 0x5555585c3212 0x555558350000 Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: ??:? 0x5555585bb71d 0x555558350000 Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: ??:? 0x5555585bb8d1 0x555558350000 Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: ??:0 0x5555585b4589 0x555558350000 Jun 6 15:01:08 plantage tvheadend[10808]: CRASH: ??:0 0x5555585b4796 0x555558350000 Jun 6 15:01:09 plantage tvheadend[10808]: CRASH: ??:0 0x555558511e44 0x555558350000 Jun 6 15:01:09 plantage tvheadend[10808]: CRASH: ??:0 0x7f3d97c02494 0x7f3d97bfb000 Jun 6 15:01:09 plantage kernel: [2320412.837462] tvh:mi-table[11208]: segfault at 90 ip 0000555558525620 sp 00007f3d85ff0b98 error 4 in tvheadend[555558350000+10d1000]
I guess crash logs / core dumps etc will show the same as in the original bug report, but if you want mine too, let me know.
Updated by saen acro over 7 years ago
What is a tvh:mi-table as module in program, what it do and with who communicate?
Updated by Jaroslav Kysela over 7 years ago
Guys, if you like to report a crash, always install the dbg version of package as first and provide the CRASH lines from tvh log with the proper symbols (function names). It really makes my work faster, because in most cases, I see the problem on the first look. Analyzing the crash core files is more time consuming.
OK, going to look to the core file one more time.
Updated by Jaroslav Kysela over 7 years ago
I'm not able to analyze the core (another distro, another ld-linux.so). Provide output for the debug version of tvh binary (install tvheadend-dbg_4.3) like:
$ gdb <tvh_binary> <core_file> (gdb) set logging on (gdb) set pagination off (gdb) thread apply all bt full (gdb) quit
The backtraces should be in the gdb.txt file.
Or just look for CRASH lines in tvh log (or syslog if configured). The log file should be better.
Updated by saen acro over 7 years ago
Im currently with tvheadend-dbg_4.3-193~ga4ff519_amd64.deb
service tvheadend start
not work
command
tvheadend -u tvh -g video -s -c /home/hts/.hts/tvheadend/
not work as expected it try to use current user
Updated by Mark Clarkstone over 7 years ago
I hope this helps, here is the log from saen's crash2.gz file
Removed the log as it isn't useful - see below.
Updated by Jaroslav Kysela over 7 years ago
Thanks Mark, but the used binary is without debugging symbols (function names), so the backtrace is not useful. I updated https://tvheadend.org/projects/tvheadend/wiki/Debugging to show the incorrect/correct CRASH lines.
Sean Sean acro: If you only write 'things does not work' without any info from tvh or system logs, I cannot really help you.
Updated by Mark Clarkstone over 7 years ago
Jaroslav Kysela wrote:
Thanks Mark, but the used binary is without debugging symbols (function names), so the backtrace is not useful. I updated https://tvheadend.org/projects/tvheadend/wiki/Debugging to show the incorrect/correct CRASH lines.
Ah crap, sorry! I wondered why I was getting mostly missing symbols, I assumed it was due to being a slightly different system [my inexperience is showing :p]
Sean Sean acro: If you only write 'things does not work' without any info from tvh or system logs, I cannot really help you.
Updated by saen acro over 7 years ago
@Jaroslav Kysela
why not make service start as debug with all that things with you need to analyse crashes
aka
service tvheadend (start|restart|stop|debug)
Updated by saen acro over 7 years ago
- File crash3.tar.gz crash3.tar.gz added
- File gdb.txt gdb.txt added
hope this work tvheadend-dbg_4.3-195~g50fa8fd_amd64.deb
Updated by Jaroslav Kysela over 7 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:tvheadend|ad61cad9251b741c14105ac382549855dbeaae7f.
Updated by saen acro over 7 years ago
no is not
new error
segfault at 90 ip 000055d931eac940 sp 00007f51c9deccf8 error 4 in tvheadend[55d931cc9000+1104000]
Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: 0x55d9350c24f0: tsid 0001 (1) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: nit on pid 0010 (16) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03EB (1003) on pid 0029 (41) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03EF (1007) on pid 0069 (105) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03F4 (1012) on pid 00A9 (169) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 046A (1130) on pid 00E9 (233) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03F5 (1013) on pid 0129 (297) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03EA (1002) on pid 0169 (361) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03F2 (1010) on pid 0329 (809) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03F3 (1011) on pid 00CB (203) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03F8 (1016) on pid 0229 (553) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03F6 (1014) on pid 02E9 (745) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03F7 (1015) on pid 0369 (873) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03F0 (1008) on pid 0315 (789) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03EE (1006) on pid 01A9 (425) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03FB (1019) on pid 01FE (510) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03FE (1022) on pid 01F8 (504) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 03FD (1021) on pid 00B1 (177) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 0400 (1024) on pid 00B3 (179) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: cat: caid 4AEE (19182) pid 0080 (128) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: cat: caid 0604 (1540) pid 0081 (129) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: completed pid 0 table 00000000 / 00000000 Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: cat: completed pid 1 table 00000001 / 000000ff Jun 6 19:34:26 FlamingoXL tvheadend[20807]: settings: saving to /home/hts/.hts/tvheadend/imagecache/meta/1196 Jun 6 19:34:26 FlamingoXL tvheadend[20807]: imagecache: downloaded http://192.168.1.222:81/logo/1_0_1_6E43_431_1_C00000_0_0_0.png Jun 6 19:34:26 FlamingoXL tvheadend[20807]: imagecache: fetch http://192.168.1.222:81/logo//1_0_2_3173_459_1_C00000_0_0_0.png Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: 0x55d9353dda70: tsid 14B4 (5300) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 0002 (2) on pid 13F7 (5111) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 0003 (3) on pid 1401 (5121) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 0004 (4) on pid 140B (5131) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 0005 (5) on pid 1415 (5141) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: tbl-base: pat: sid 0006 (6) on pid 14C9 (5321) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.3-196~gad61cad) [b4486e9d00cf165ef5c5c70a82b03a6d8cb9f324] CWD: / Jun 6 19:34:26 FlamingoXL tvheadend[20807]: CRASH: Fault address 0x90 (Address not mapped) Jun 6 19:34:26 FlamingoXL tvheadend[20807]: 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 /lib/x86_64-linux-gnu/libpcre.so.3 /usr/lib/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/libva.so.1 /usr/lib/x86_64-linux-gnu/libva-x11.so.1 /usr/lib/x86_64-linux-gnu/libX11.so.6 /usr/lib/x86_64-linux-gnu/libva-drm.so.1 /usr/lib/x86_64-linux-gnu/libxcb.so.1 /usr/lib/x86_64-linux-gnu/libXau.so.6 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libavresample.so.2 /usr/lib/x86_64-linux-gnu/libswscale.so.3 /usr/lib/x86_64-linux-g Jun 6 19:34:26 FlamingoXL tvheadend[20807]: CRASH: Register dump [23]: 000000000000000100000000000000000000000000000004000000005936a700000000000000000400007f51b800dbf4000000000000001100007f51b800dc05000000000000000000007f51c9ded010000055d937afd11000007f51c9ded01000007f51c9ded21000007f51900088e0000000000000000000007f51c9deccf8000055d931eac940000000000001020600000000000000330000000000000004000000000000000efffffffe7ffbba110000000000000090 Jun 6 19:34:26 FlamingoXL tvheadend[20807]: CRASH: STACKTRACE Jun 6 19:34:26 FlamingoXL tvheadend[20807]: CRASH: ??:? 0x55d931ed11da 0x55d931cc9000 Jun 6 19:34:26 FlamingoXL tvheadend[20807]: CRASH: ??:0 0x7f5204e3d890 0x7f5204e2e000 Jun 6 19:34:26 FlamingoXL tvheadend[20807]: CRASH: ??:? 0x55d931eac940 0x55d931cc9000 Jun 6 19:34:26 FlamingoXL tvheadend[20807]: CRASH: ??:? 0x55d931eacac8 0x55d931cc9000 Jun 6 19:34:26 FlamingoXL tvheadend[20807]: mpegts: 12524H in Hellas Sat 2 - open PID 0080 (128) [16/0x7f517c022ec0] Jun 6 19:34:26 FlamingoXL tvheadend[20807]: CRASH: ??:? 0x55d931f626f1 0x55d931cc9000 Jun 6 19:34:27 FlamingoXL tvheadend[20807]: CRASH: ??:? 0x55d931f63572 0x55d931cc9000 Jun 6 19:34:27 FlamingoXL tvheadend[20807]: CRASH: ??:? 0x55d931f4a582 0x55d931cc9000 Jun 6 19:34:27 FlamingoXL tvheadend[20807]: CRASH: ??:? 0x55d931f42a8d 0x55d931cc9000 Jun 6 19:34:27 FlamingoXL tvheadend[20807]: CRASH: ??:? 0x55d931f42c41 0x55d931cc9000 Jun 6 19:34:27 FlamingoXL tvheadend[20807]: CRASH: ??:? 0x55d931f3b8f9 0x55d931cc9000 Jun 6 19:34:27 FlamingoXL tvheadend[20807]: CRASH: ??:? 0x55d931f3bb06 0x55d931cc9000 Jun 6 19:34:27 FlamingoXL tvheadend[20807]: CRASH: ??:? 0x55d931e99164 0x55d931cc9000 Jun 6 19:34:28 FlamingoXL tvheadend[20807]: CRASH: ??:0 0x7f5204e36064 0x7f5204e2e000 Jun 6 19:34:28 FlamingoXL tvheadend[20807]: CRASH: clone+0x6d (/lib/x86_64-linux-gnu/libc.so.6) Jun 6 19:34:28 FlamingoXL kernel: [157960.311382] tvh:mi-table[21103]: segfault at 90 ip 000055d931eac940 sp 00007f51c9deccf8 error 4 in tvheadend[55d931cc9000+1104000]
later will provide more data
Updated by saen acro over 7 years ago
- File gdb (1).txt gdb (1).txt added
tvheadend-dbg_4.3-193~ga4ff519_amd64
Updated by saen acro over 7 years ago
- File gdb (2).txt gdb (2).txt added
- File syslog (2).txt syslog (2).txt added
tvheadend-dbg_4.3-204~ga16b240_amd64.deb
Updated by saen acro over 7 years ago
4.3-205~g9228aa0
it works
p.s.
saen acro wrote:
What is a tvh:mi-table as module in program, what it do and with who communicate?
there is noting in wiki i'm just curious,
give us some short description why bug happens?
Updated by Jaroslav Kysela over 7 years ago
It's thread name (tvh:mi-table). It means thread for tvh (tvh:), mi = mpegts input, table = thread which parses SI table data.