Bug #5135

Segmentation fault when socat xmltv file to sock file

Added by lethis kwsk 5 months ago. Updated 5 months ago.

Status:FixedStart date:2018-06-22
Priority:NormalDue date:
Assignee:Adam Sutton% Done:

100%

Category:EPG
Target version:-
Found in version:4.3 Affected Versions:

Description

When I socat xmltv file to sock file, Segmentation fault occurred
I compiled from https://github.com/tvheadend/tvheadend/archive/v4.3.tar.gz

This xmltv file was no problem When using in kodi IPTV Simple Client addon

2018-06-21 23:51:58.818 [  ALERT] CRASH: Signal: 11 in PRG: ./tvheadend (4.3) [d44cfba25edb49e9e51b68826bb90dd8c9ddb034] CWD: /home/user/tvheadend-4.3/build.linux
2018-06-21 23:51:58.818 [  ALERT] CRASH: Fault address (nil) (Address not mapped)
2018-06-21 23:51:58.818 [  ALERT] CRASH: Loaded libraries: /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/libz.so.1 /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/local/lib/libva.so.2 /usr/local/lib/libva-drm.so.2 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 /usr/local/lib/libdrm.so.2
2018-06-21 23:51:58.818 [  ALERT] CRASH: Register dump [23]: 00007fcf14002900000000000000000000007fcf14000078000000000000000000007fcf140008c000007fcf25ffaa8000007fcf140028d000007fcf25ffab2000000000ffffffff00007fcf1400003000007fcf25ffa9a0000000000000000000000000000000000000000000000000000000000000000000007fcf25ffa9900000557be11dedf2000000000001024600000000000000330000000000000004000000000000000efffffffe7ffbba130000000000000000
2018-06-21 23:51:58.818 [  ALERT] CRASH: STACKTRACE
2018-06-21 23:51:58.827 [  ALERT] CRASH: ??:0 0x557be11e2c1d
2018-06-21 23:51:58.831 [  ALERT] CRASH: ??:0 0x7fcf3cf17390
2018-06-21 23:51:58.836 [  ALERT] CRASH: ??:0 0x557be11dedf2
2018-06-21 23:51:58.841 [  ALERT] CRASH: ??:0 0x557be1216507
2018-06-21 23:51:58.846 [  ALERT] CRASH: ??:0 0x557be1216f1d
2018-06-21 23:51:58.851 [  ALERT] CRASH: ??:0 0x557be11a94f5
Segmentation fault (core dumped)

This is xml file for test

<?xml version=1.0 encoding=UTF-8?>
<!DOCTYPE tv SYSTEM xmltv.dtd>

<tv generator-info-name="tsEPG2xml" generator-info-url="http://localhost/">
  <channel id="GR1_1024" transport_stream_id="32736" original_network_id="32736" 
 service_id="1024">
    <display-name lang="ja_JP">aaa</display-name>
  </channel>
  <programme start="20180621020000 +0900" stop="20180621020100 +0900" channel="G
R1_1024" event_id="7342" duration="60">
    <title lang="ja_JP">2018</title>
    <freeCA>0</freeCA>
    <video id="179">
       <resolution>HD</resolution>
       <aspect>16:9</aspect>
    </video>
    <audio id="3">
       <desc>stereo</desc>
       <lang>jpn</lang>
       <extdesc></extdesc>
    </audio>
  </programme>
</tv>

Associated revisions

Revision 66d6161c
Added by Jaroslav Kysela 5 months ago

htsmsg xml parser: fix NULL oops, fixes #5135

Revision 12bff89b
Added by Jaroslav Kysela 5 months ago

htsmsg xml parser: fix NULL oops, fixes #5135

History

#1 Updated by Jaroslav Kysela 5 months ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#2 Updated by Jaroslav Kysela 5 months ago

<?xml version=1.0 encoding=UTF-8?>

should be:

<?xml version="1.0" encoding="UTF-8"?>

Also available in: Atom PDF