Project

General

Profile

tvheadend segfault upon start when loading epgdata

Added by Lee B over 8 years ago

Hi,

I have been running tvheadend fine for a while now, but recently I've run into an issue whereby tvheadend will not start and produces a segfault as below


From dmesg
[Mon Aug  8 22:55:11 2016] tvheadend[24284]: segfault at 0 ip 00007f198b84daa6 sp 00007fff081349a8 error 4 in libc-2.22.so[7f198b705000+1b7000]

From the logfile with trace all 
2016-08-08 22:55:50.723 [   INFO] spawn: Executing "/usr/bin/tv_grab_wg++" 
2016-08-08 22:55:50.740 [   INFO] epggrab: module /usr/bin/tv_grab_wg++ created
2016-08-08 22:55:50.808 [  ALERT] CRASH: Signal: 11 in PRG: /usr/local/src/tvheadend/build.linux/tvheadend (4.1-2146~gb536cdb) [971906b869cc7b88b46e019847c208e875535c34] CWD: /root
2016-08-08 22:55:50.808 [  ALERT] CRASH: Fault address (nil) (Address not mapped)
2016-08-08 22:55:50.808 [  ALERT] CRASH: Loaded libraries: linux-vdso.so.1 /lib64/libssl.so.10 /lib64/libcrypto.so.10 /lib64/libz.so.1 /lib64/liburiparser.so.1 /lib64/libavahi-common.so.3 /lib64/libavahi-client.so.3 /lib64/libdbus-1.so.3 /lib64/libdl.so.2 /lib64/libpthread.so.0 /lib64/libm.so.6 /lib64/librt.so.1 /lib64/libxcb.so.1 /lib64/libXau.so.6 /lib64/libxcb-shm.so.0 /lib64/libxcb-xfixes.so.0 /lib64/libxcb-render.so.0 /lib64/libxcb-shape.so.0 /lib64/libX11.so.6 /lib64/libstdc++.so.6 /lib64/libvpx.so.2 /lib64/libc.so.6 /lib64/libgssapi_krb5.so.2 /lib64/libkrb5.so.3 /lib64/libcom_err.so.2 /lib64/libk5crypto.so.3 /lib64/libsystemd.so.0 /lib64/ld-linux-x86-64.so.2 /lib64/libgcc_s.so.1 /lib64/libkrb5support.so.0 /lib64/libkeyutils.so.1 /lib64/libresolv.so.2 /lib64/libselinux.so.1 /lib64/liblzma.so.5 /lib64/libgcrypt.so.20 /lib64/libgpg-error.so.0 /lib64/libdw.so.1 /lib64/libcap.so.2 /lib64/libpcre.so.1 /lib64/libelf.so.1 /lib64/libbz2.so.1 /lib64/libattr.so.1 /lib64/libnss_files.so.2
2016-08-08 22:55:50.808 [  ALERT] CRASH: Register dump [23]: 0000000000000000000000000000000000007f198b84e94000000000000000000000000000000000000055574c029330000055574c6cf6c8000055574c0a7bf00000000000000000000055574c293ce0000055574c2fc950000055574c2fd24000000000000000000000000000000000000000000000002000007fff081349a800007f198b84daa60000000000010283002b0000000000330000000000000004000000000000000efffffffe7ffbfa170000000000000000
2016-08-08 22:55:50.808 [  ALERT] CRASH: STACKTRACE
2016-08-08 22:55:50.874 [  ALERT] CRASH: ??:0 0x555748f30b9a
2016-08-08 22:55:50.939 [  ALERT] CRASH: ??:0 0x7f198d665a00
2016-08-08 22:55:51.037 [  ALERT] CRASH: ??:0 0x7f198b84daa6
2016-08-08 22:55:51.197 [  ALERT] CRASH: ??:0 0x555748f649d6
2016-08-08 22:55:51.379 [  ALERT] CRASH: ??:0 0x555748f62f98
2016-08-08 22:55:51.521 [  ALERT] CRASH: ??:0 0x555748f12f6d
2016-08-08 22:55:51.698 [  ALERT] CRASH: ??:0 0x555748eee09d
2016-08-08 22:55:51.698 [  ALERT] CRASH: __libc_start_main+0xf0  (/lib64/libc.so.6)

The only way I can get tvheadend to start again without a segfault is to delete the contents of .hts/tvheadend/epggrab/xmltv/channels/
but as soon as channels are mapped to epg sources and files start to reappear in the channels folder, if I try to restart tvheadend it crashes with a segfault again.

I have tried clearing down all epg data, even the source xml files in WebGrabber++.
Does anyone have any suggestions as to where I else I could look for further information on why tvheadend will not start ?

Thanks in advance.


Replies (3)

RE: tvheadend segfault upon start when loading epgdata - Added by Greg H almost 8 years ago

Did you ever solve this issue? I am seeing the same thing intermittently when the EPG is loaded.

2016-12-31 11:13:01.000 [   INFO]:xmltv: /usr/bin/tv_grab_file: grab /usr/bin/tv_grab_file
2016-12-31 11:13:01.001 [   INFO]:spawn: Executing "/usr/bin/tv_grab_file" 
2016-12-31 11:13:01.112 [   INFO]:xmltv: /usr/bin/tv_grab_file: grab took 0 seconds
2016-12-31 11:13:01.113 [  ALERT]:CRASH: Signal: 11 in PRG: /usr/local/tvheadend-testing/bin/tvheadend (4.1.2389) [9b7b5a2f3440c430276b6d3612d793b4c328e792] CWD: /
2016-12-31 11:13:01.113 [  ALERT]:CRASH: Fault address (nil) (Address not mapped)
2016-12-31 11:13:01.113 [  ALERT]:CRASH: Loaded libraries: linux-vdso.so.1 /usr/local/tvheadend-testing/lib/libdvbcsa.so.1 /usr/local/tvheadend-testing/lib/libssl.so.1.0.0 /usr/local/tvheadend-testing/lib/libcrypto.so.1.0.0 /usr/local/tvheadend-testing/lib/libz.so /usr/local/tvheadend-testing/lib/liburiparser.so.1 /usr/local/tvheadend-testing/lib/libavfilter.so.6 /usr/local/tvheadend-testing/lib/libswresample.so.2 /usr/local/tvheadend-testing/lib/libavresample.so.3 /usr/local/tvheadend-testing/lib/libswscale.so.4 /usr/local/tvheadend-testing/lib/libavformat.so.57 /usr/local/tvheadend-testing/lib/libavcodec.so.57 /usr/local/tvheadend-testing/lib/libavutil.so.55 /lib/libdl.so.2 /lib/libpthread.so.0 /lib/libm.so.6 /usr/local/tvheadend-testing/lib/libiconv.so.2 /lib/librt.so.1 /lib/libc.so.6 /usr/local/tvheadend-testing/lib/libpostproc.so.54 /usr/local/tvheadend-testing/lib/libx264.so.148 /usr/local/tvheadend-testing/lib/libvorbisenc.so.2 /usr/local/tvheadend-testing/lib/libvorbis.so.0 /usr/local/tvheadend-testing/lib/libtheoraenc.so.1 /usr/loca
2016-12-31 11:13:01.113 [  ALERT]:CRASH: Register dump [23]: 0000000000000006000000000000000000007fc3fd9580100000000000000000000000000000000000007fc3fc4bf6b000007fc3fc4bf610000000000000000000007fc3fc4bf63000007fc464277278000000000000000d00007fc464f3c58000007fc3fc001d0d0000000000000000000000000000000000007fc448ff885000007fc4641d4e86000000000001024600000000000000330000000000000004000000000000000efffffffe7ffbba130000000000000000
2016-12-31 11:13:01.113 [  ALERT]:CRASH: STACKTRACE
2016-12-31 11:13:01.113 [  ALERT]:CRASH: Signal: 11 in PRG: /usr/local/tvheadend-testing/bin/tvheadend (4.1.2389) [9b7b5a2f3440c430276b6d3612d793b4c328e792] CWD: /
2016-12-31 11:13:01.117 [  ALERT]:CRASH:  0x7fc46419cdb8
2016-12-31 11:13:01.120 [  ALERT]:CRASH:  0x7fc46084d1c0
2016-12-31 11:13:01.124 [  ALERT]:CRASH:  0x7fc4641d4e86
2016-12-31 11:13:01.128 [  ALERT]:CRASH:  0x7fc4641cffe1
2016-12-31 11:13:01.132 [  ALERT]:CRASH:  0x7fc46417dea4
2016-12-31 11:13:01.135 [  ALERT]:CRASH:  0x7fc464165dc3
2016-12-31 11:13:01.139 [  ALERT]:CRASH:  0x7fc4608442c4
2016-12-31 11:13:01.139 [  ALERT]:CRASH: clone+0x6d  (/lib/libc.so.6)

RE: tvheadend segfault upon start when loading epgdata - Added by Mark Clarkstone almost 8 years ago

If you can reproduce this please open a ticket and provide Debugging info :)

RE: tvheadend segfault upon start when loading epgdata - Added by Greg H almost 8 years ago

I finally figured out the source of my segfault during the epggrab, in the xmltv.xml file two channels had empty display-name tags. Once these were removed the epggrab processed the file without errors.

<channel id="I935.10559.tvguide.com">
    <display-name>935 D-HDTV</display-name>
    <display-name>935</display-name>
    <display-name>D-HDTV</display-name>
    <display-name></display-name>
</channel>
    (1-3/3)