Bug #5194
tvheadend is even still crashing when importing an xml epg
100%
Description
Files
Subtasks
History
Updated by Jaroslav Kysela about 6 years ago
It looks like that the *desc RB tree structures are malformed for a reason. But I don't see why in the code. Could you run clang or valgrind memory checker? https://tvheadend.org/projects/tvheadend/wiki/Debugging#Memory-leaks-or-corruption
Updated by Bastian Kleinschmidt about 6 years ago
Shure i will do.
Ps : i see a memory leak in 4.3~1249 after 20+ days running (8gb or more).
Updated by Bastian Kleinschmidt about 6 years ago
hi, its crazy, but the error went away after i recompile the current git with additional "-disable-pie --enable-ccdebug python=python3 cc=clang ld=clang nowerror" for debugging.
i will have a look on it.
2018-09-10 16:12:50.000 [ INFO] xmltv: /usr/bin/tv_grab_wg++-kodi: grab /usr/bin/tv_grab_wg++-kodi
2018-09-10 16:12:50.004 [ INFO] spawn: Executing "/usr/bin/tv_grab_wg++-kodi"
2018-09-10 16:12:52.002 [ INFO] xmltv: /usr/bin/tv_grab_wg++-kodi: grab took 2 seconds
2018-09-10 16:12:52.444 [ INFO] xmltv: /usr/bin/tv_grab_wg++-kodi: parse took 0 seconds
2018-09-10 16:12:52.444 [ INFO] xmltv: /usr/bin/tv_grab_wg++-kodi: channels tot= 62 new= 0 mod= 0
2018-09-10 16:12:52.444 [ INFO] xmltv: /usr/bin/tv_grab_wg++-kodi: brands tot= 0 new= 0 mod= 0
2018-09-10 16:12:52.444 [ INFO] xmltv: /usr/bin/tv_grab_wg++-kodi: seasons tot= 0 new= 0 mod= 0
2018-09-10 16:12:52.444 [ INFO] xmltv: /usr/bin/tv_grab_wg++-kodi: episodes tot= 0 new= 0 mod= 0
2018-09-10 16:12:52.444 [ INFO] xmltv: /usr/bin/tv_grab_wg++-kodi: broadcasts tot=10470 new= 48 mod= 1312
2018-09-10 16:12:52.444 [ INFO] xmltv: /usr/bin/tv_grab_wg++-xxx: grab /usr/bin/tv_grab_wg++-xxx
2018-09-10 16:12:52.448 [ INFO] spawn: Executing "/usr/bin/tv_grab_wg++-xxx"
2018-09-10 16:12:52.933 [ INFO] xmltv: /usr/bin/tv_grab_wg++-xxx: grab took 0 seconds
2018-09-10 16:12:52.968 [ INFO] xmltv: /usr/bin/tv_grab_wg++-xxx: parse took 0 seconds
2018-09-10 16:12:52.968 [ INFO] xmltv: /usr/bin/tv_grab_wg++-xxx: channels tot= 54 new= 0 mod= 0
2018-09-10 16:12:52.968 [ INFO] xmltv: /usr/bin/tv_grab_wg++-xxx: brands tot= 0 new= 0 mod= 0
2018-09-10 16:12:52.968 [ INFO] xmltv: /usr/bin/tv_grab_wg++-xxx: seasons tot= 0 new= 0 mod= 0
2018-09-10 16:12:52.968 [ INFO] xmltv: /usr/bin/tv_grab_wg++-xxx: episodes tot= 0 new= 0 mod= 0
2018-09-10 16:12:52.968 [ INFO] xmltv: /usr/bin/tv_grab_wg++-xxx: broadcasts tot= 881 new= 0 mod= 352
looks good ..?!
Updated by Bastian Kleinschmidt about 6 years ago
Maybe a bug in gcc ? I use gcc 4.8.5
Tomorrow i will build again with gcc and use valgrind.
Updated by Bastian Kleinschmidt about 6 years ago
- File log-gcc-with-valgrind.txt log-gcc-with-valgrind.txt added
- File log-gcc-without-valgrind.txt log-gcc-without-valgrind.txt added
ok, i finished debugging.
logs attached .
what i know :
build with ccache, clang = no crash
build with gcc = crash
build with gcc and use valgrind = no crash
Updated by Jaroslav Kysela about 6 years ago
- Status changed from New to Fixed
Applied in changeset commit:tvheadend|4f3bb16fa20fc12d68d56452b21701bc14d622af.
Updated by Jaroslav Kysela about 6 years ago
- Status changed from Fixed to New
The valgrind output helped. I hope it's definitely fixed now.
Updated by The Troll about 6 years ago
Still crashing here:
2018-09-11 21:17:46.705 [ INFO]:xmltv: xmltv: grab took 2 seconds
2018-09-11 21:17:46.723 [ ALERT]:CRASH: Signal: 11 in PRG: tvheadend (4.1-4156~g7b42e43) [f9c2c8494730ab780e0dbff8d65fa4aae6a619a1] CWD: /home/BoB
2018-09-11 21:17:46.723 [ ALERT]:CRASH: Fault address (nil) (Address not mapped)
2018-09-11 21:17:46.723 [ ALERT]:CRASH: Loaded libraries: /usr/lib/x86_64-linux-gnu/libdvbcsa.so.1 /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/l
ibz.so.1 /lib/x86_64-linux-gnu/libpcre.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 /home/hts/ffmpeg-deps/lib/libavresample.so.2 /home/hts/ffmpeg-deps/lib/libswscale.so.3 /home/hts/ffmpeg-deps/lib/libavformat.so.56 /home/hts/ffmpeg-deps/lib/libavcodec.so.56 /home/hts/ffm
peg-deps/lib/libavutil.so.54 /usr/lib/x86_64-linux-gnu/libX11.so.6 /usr/lib/x86_64-linux-gnu/libvdpau.so.1 /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/libbz2.so.1.0 /home/hts/ffmpeg-deps/lib/libswresample.so.1 /usr/lib64/libva.so.1 /usr/lib/x86_64-linux-gnu/libzvbi.so.0 /usr/lib/x86_64-linux-gnu/libx265.so.79 /usr/lib/x86_64-l
inux-gnu/libx264.so.148 /usr/lib/x86_64-linux-g
2018-09-11 21:17:46.723 [ ALERT]:CRASH: Register dump [23]: 00007ffa8d0e51a0000000000000000000000000000000000000561cea2e9cbb0000561cea2f83a900007ffa8d21c53000007ffb156bc8c8000000000000000000000000fffff
fff00007ffae800003000007ffb156bc8b80000561cecf8c72000000000000000000000000000000000000000007fffff0000007ffb156bc7e00000561cea22f701000000000001020600000000000000330000000000000004000000000000000efffffff
e7ffbba130000000000000000
2018-09-11 21:17:46.723 [ ALERT]:CRASH: STACKTRACE
2018-09-11 21:17:46.746 [ ALERT]:CRASH: /root/tvheadend/src/trap.c:148 0x561cea1f204d 0x561cea058000
2018-09-11 21:17:46.769 [ ALERT]:CRASH: ??:0 0x7ffb1f296390 0x7ffb1f285000
2018-09-11 21:17:46.789 [ ALERT]:CRASH: /root/tvheadend/src/epggrab/module/xmltv.c:610 0x561cea22f701 0x561cea058000
2018-09-11 21:17:46.809 [ ALERT]:CRASH: /root/tvheadend/src/epggrab/module/xmltv.c:690 0x561cea2316c2 0x561cea058000
2018-09-11 21:17:46.826 [ ALERT]:CRASH: /root/tvheadend/src/epggrab/module.c:388 0x561cea22c26b 0x561cea058000
2018-09-11 21:17:46.841 [ ALERT]:CRASH: /root/tvheadend/src/epggrab/module.c:570 0x561cea22c66f 0x561cea058000
2018-09-11 21:17:46.855 [ ALERT]:CRASH: /root/tvheadend/src/wrappers.c:181 0x561cea1b43a5 0x561cea058000
Updated by Petar Ivanov about 6 years ago
If you use verion (4.1-4156~g7b42e43) is too old normal to crash, install last one 4.3-1317~g4f3bb16fa and try again.
Updated by Bastian Kleinschmidt about 6 years ago
- File 4.3-1317~g4f3bb16fa-log.txt 4.3-1317~g4f3bb16fa-log.txt added
- File 4.3-1317~g4f3bb16fa-valgrind.txt 4.3-1317~g4f3bb16fa-valgrind.txt added
iḿ sorry, but its still crashing
attached new logs.
Updated by The Troll about 6 years ago
Petar Ivanov wrote:
If you use verion (4.1-4156~g7b42e43) is too old normal to crash, install last one 4.3-1317~g4f3bb16fa and try again.
I am using the latest code
Updated by Jaroslav Kysela about 6 years ago
- Status changed from New to Fixed
Applied in changeset commit:tvheadend|58bc4634fe272b61baacd22a5fa96f754e3c8459.