Bug #2081
Crash while adding self created channels
0%
Description
I've added a channelfile by myself. After writing all infos into the file and restarting tv-headend, the services crashes... I cannot figure out why it crashes. There's no speaking crash message except this one:
2014-04-24 12:49:16.680 [ ALERT]:CRASH: Fault address (nil) (Address not mapped)
---
2014-04-24 12:49:15.936 [ INFO]:linuxdvb: adapter added /dev/dvb/adapter1
2014-04-24 12:49:16.660 [ INFO]:linuxdvb: adapter added /dev/dvb/adapter0
2014-04-24 12:49:16.680 [ ALERT]:CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (3.9.569~ge113c3b) [56b43f766dcf2fdbec3492f306ed12381d3a9872] CWD: /
2014-04-24 12:49:16.680 [ ALERT]:CRASH: Fault address (nil) (Address not mapped)
2014-04-24 12:49:16.680 [ ALERT]:CRASH: Loaded libraries: /usr/lib/x86_64-linux-gnu/libdvbcsa.so.1 /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 /usr/lib/x86_64-linux-gnu/libcurl.so.4 /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/libdl.so.2 /usr/lib/x86_64-linux-gnu/libva.so.1 /usr/lib/x86_64-linux-gnu/libXfixes.so.3 /usr/lib/x86_64-linux-gnu/libXext.so.6 /usr/lib/x86_64-linux-gnu/libX11.so.6 /usr/lib/x86_64-linux-gnu/libjack.so.0 /usr/lib/x86_64-linux-gnu/libasound.so.2 /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 /usr/lib/x86_64-linux-gnu/libdc1394.so.22 /usr/lib/x86_64-linux-gnu/libraw1394.so.11 /usr/lib/x86_64-linux-gnu/libxvidcore.so.4 /usr/lib/x86_64-linux-gnu/libx264.so.132 /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 /usr/lib/x86_64-linux-gnu/libvorbis.so.0 /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1 /usr/lib/x86_64-linux-gnu/libtheoradec.so.1 /usr/lib/x86_64-linux-gnu/
2014-04-24 12:49:16.680 [ ALERT]:CRASH: Register dump [23]: 000000000000000000000000000000000000000000000001007e00000000000000007f910c403ec0000000000000000000007f910cc4f7200000000000b86d6000007f910c403ec000007f910cc4f720000000000000000000007f910c403ec00000000000000000000000000000000000007f910cc4f72000007fff4df60f300000000000452ac5000000000001020600000000000000330000000000000004000000000000000efffffffe7ffbfa170000000000000000
2014-04-24 12:49:16.680 [ ALERT]:CRASH: STACKTRACE
2014-04-24 12:49:16.711 [ ALERT]:CRASH: /opt/install/tvheadend/src/trap.c:148 0x473b86
2014-04-24 12:49:16.717 [ ALERT]:CRASH: ??:0 0x7f911a273030
2014-04-24 12:49:16.746 [ ALERT]:CRASH: /opt/install/tvheadend/src/idnode.c:684 0x452ac5
2014-04-24 12:49:16.774 [ ALERT]:CRASH: /opt/install/tvheadend/src/channels.c:523 0x4637c2
2014-04-24 12:49:16.801 [ ALERT]:CRASH: /opt/install/tvheadend/src/channels.c:620 0x4643f9
2014-04-24 12:49:16.829 [ ALERT]:CRASH: /opt/install/tvheadend/src/main.c:756 0x44e322
2014-04-24 12:49:16.829 [ ALERT]:CRASH: __libc_start_main+0xfd (/lib/x86_64-linux-gnu/libc.so.6)
---
The file content:
root@home:/home/hts/.hts/tvheadend# cat channel/1
{
"number": 2,
"dvr_pre_time": 5,
"dvr_pst_time": 5,
"services": [
"5ca224e0a51fab89d79f9e17dc0ce923"
],
"tags": [
1
]
}
The servicefile exists, too:
root@home:/home/hts/.hts/tvheadend# find . |grep 5ca224e0a51fab89d79f9e17dc0ce923
./input/dvb/networks/9c6e361c908984a3091fbc417da53f0a/muxes/a55f5576cfe0fe4e5530049394cb848e/services/5ca224e0a51fab89d79f9e17dc0ce923
History
Updated by Sascha Schmidt over 10 years ago
Ok, found that the filename has to be a md5sum of the sid? After naming the file in this style the service does not crash anymore...
Perhaps this exception should be better catched?
Greets
Sascha
Updated by Adam Sutton over 10 years ago
- Status changed from New to Rejected
If you start messing about with teh config files by hand its out of spec and not going to spend much time worrying about it.
Yes TVH could have better validation in many places, but we take the approach of validating things that can (or more correctly are allowed) to be influenced via an external process. A file that's completely malformed due to not being created via TVH would fail that test.