Project

General

Profile

Bug #5754

tvheadend crash on /api/channel/grid with filter on "number"

Added by Maik Fuss about 5 years ago. Updated about 5 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Start date:
2019-10-20
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1811+
Affected Versions:

Description

curl -s --digest -d 'filter=[{"type":"numeric","value":7000,"field":"number"}]' 'http://xxxx::9981/api/channel/grid'

result in a

Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: Signal: 8 in PRG: /usr/bin/tvheadend (4.3-1833~g6fbb30d03-dirty) [ba818582f13614614a50034fd55a73b68bb1cf81] CWD: /  
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: Fault address 0x562b9d3ab0ee (Integer division by zero)
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib64/libdvbcsa.so.1 /usr/lib64/libssl.so.1.0.0 /usr/lib64/libcrypto.so.1.0.0 /lib64/libz.so.1 /usr/lib64/libpcre2-8.so.0 /usr/lib64/liburiparser.so.1 /usr/lib64/libavfilter.so.6 /usr/lib64/libavformat.so.57 /usr/lib64/libavcodec.so.57 /usr/lib64/libavutil.so.55 /usr/lib64/libva.so.1 /lib64/libdl.so.2 /lib64/libpthread.so.0 /lib64/libm.so.6 /lib64/librt.so.1 /lib64/libc.so.6 /usr/lib64/libavresample.so.3 /usr/lib64/libswscale.so.4 /usr/lib64/libpostproc.so.54 /usr/lib64/libswresample.so.2 /usr/lib64/libfontconfig.so.1 /usr/lib64/libfreetype.so.6 /usr/lib64/libzmq.so.5 /usr/lib64/libbs2b.so.0 /usr/lib64/libass.so.9 /usr/lib64/libzimg.so.2 /usr/lib64/librubberband.so.2 /usr/lib64/libfribidi.so.0 /usr/lib64/libflite_cmu_us_awb.so.1 /usr/lib64/libflite_cmu_us_kal.so.1 /usr/lib64/libflite_cmu_us_kal16.so.1 /usr/lib64/libflite_cmu_us_rms.so.1 /usr/lib64/libflite_cmu_us_slt.so.1 /usr/lib64/libflite_usenglish.so.1 /usr/lib64/libflite_cmulex.so.1 /usr/lib64/libflite.so.1 
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: Register dump [23]: 0000562b9d8acd0000007fe89400008000007fe8940008d000000000000000000000562b9e270bb00000562b9d826c0000007fe8a35f8fc800007fe894001970000000000000000000000000000f424000007fe89400193000007fe89400197000000000000000000000000000001b5800000000ffffffc000007fe8a35f8eb00000562b9d3ab0ee0000000000010246002b00000000003300000000000000000000000000000000fffffffe7ffbba130000000000000000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: STACKTRACE
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d3efaed 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x7fe9279cd460 0x7fe9279b9000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d3ab0ee 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d3ab67f 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d419c37 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d41856a 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d44e89e 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d3bf665 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d3c0a62 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d3bfd18 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d3c0eeb 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d3c10ab 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d3b812f 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x562b9d3b3fc9 0x562b9d256000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: ??:0 0x7fe9279c10e3 0x7fe9279b9000
Oct 20 01:36:47 hts3 tvheadend[11246]: CRASH: clone+0x3f  (/lib64/libc.so.6)
Oct 20 01:36:47 hts3 kernel: traps: tvh:tcp-start[13813] trap divide error ip:562b9d3ab0ee sp:7fe8a35f8eb0 error:0 in tvheadend[562b9d256000+3b1000]

History

#1

Updated by Flole Systems about 5 years ago

Thats an incorrect/unusable crash report, see https://tvheadend.org/projects/tvheadend/wiki/Debugging

#2

Updated by Flole Systems about 5 years ago

The issue is tvheadend/src/idnode.c:855. It should be MAX and not MIN. PR already provided.

#3

Updated by Pablo R. about 5 years ago

Fixed in d066577c4f663222fe83e00a09e15b28666b5a23.

#4

Updated by Mark Clarkstone about 5 years ago

  • Status changed from New to Fixed

Pablo R. wrote:

Fixed in d066577c4f663222fe83e00a09e15b28666b5a23.

Also available in: Atom PDF