#179: crash trying to serve a file with more than approx. 9,2kb via built-in httpd

Support forum for minisatip
Post Reply
hargut

Post by hargut »

Hello,

trying to serve a channels.m3u larger than approx. 9,2kb results in a crashing minisatip on x86_64.
It would be good to be able to serve a full channel list via the built-in httpd.

A converted VDR channels.conf for Astra is e.g. 87kb, in case several satellites would be served a limit of 512k could be reasonable.

The crashing messages look different on various runs, sometimes addr2line: /minisatip: No such file is mentioned. I could not figure out or reproduce when the error messages change.

`
root@multi-player:/# minisatip -e0 -R /etc/minisatip/html/ -p channels.m3u -f
[18/10 14:39:49.000]: Starting minisatip version 0.3.76, compiled with s2api version: 050A
[18/10 14:39:49.000]: New UDP socket 3 bound to 0.0.0.0:1900
[18/10 14:39:49.000]: New UDP socket 4 bound to 239.255.255.250:1900
[18/10 14:39:49.115]: Initializing with 1 devices
[18/10 14:39:56.7199]: RECEIVED SIGNAL 11 - SP=0 IP=0

[18/10 14:39:56.7199]: Obtained 9 stack frames.

[18/10 14:39:56.7199]: 0x4173e4 :
addr2line: /minisatip: No such file
[18/10 14:39:56.7204]:

[18/10 14:39:56.7204]: 0x417518 :
addr2line: /minisatip: No such file
[18/10 14:39:56.7208]:

[18/10 14:39:56.7208]: 0x7f166925f8d0 :
addr2line: /minisatip: No such file
[18/10 14:39:56.7212]:

[18/10 14:39:56.7213]: 0x418b1b :
addr2line: /minisatip: No such file
[18/10 14:39:56.7216]:

[18/10 14:39:56.7216]: 0x404225 :
addr2line: /minisatip: No such file
[18/10 14:39:56.7220]:

[18/10 14:39:56.7220]: 0x407962 :
addr2line: /minisatip: No such file
[18/10 14:39:56.7224]:

[18/10 14:39:56.7224]: 0x4054a4 :
addr2line: /minisatip: No such file
[18/10 14:39:56.7227]:

[18/10 14:39:56.7227]: 0x7f1668aa8b45 :
addr2line: /minisatip: No such file
[18/10 14:39:56.7231]:

[18/10 14:39:56.7231]: 0x4021c9 :
addr2line: /minisatip: No such file
[18/10 14:39:56.7234]:

root@multi-player:/# vim /etc/minisatip/html/channels.m3u
root@multi-player:/# minisatip -e0 -R /etc/minisatip/html/ -p channels.m3u -f
[18/10 14:40:14.000]: Starting minisatip version 0.3.76, compiled with s2api version: 050A
[18/10 14:40:14.000]: New UDP socket 3 bound to 0.0.0.0:1900
[18/10 14:40:14.000]: New UDP socket 4 bound to 239.255.255.250:1900
[18/10 14:40:14.074]: Initializing with 1 devices
^Cselect_and_execute: select() error: Interrupted system call
root@multi-player:/# ls -l /etc/minisatip/html/channels.m3u
-rw-r--r-- 1 root root 9263 Okt 18 14:40 /etc/minisatip/html/channels.m3u
root@multi-player:/# uname -a
Linux multi-player 4.2.0-1-amd64 #1 SMP Debian 4.2.1-2 (2015-09-27) x86_64 GNU/Linux
`
`
root@multi-player:/# minisatip -e0 -R /etc/minisatip/html/ -p channels.m3u -f
[18/10 14:34:49.000]: Starting minisatip version 0.3.76, compiled with s2api version: 050A
[18/10 14:34:49.000]: New UDP socket 3 bound to 0.0.0.0:1900
[18/10 14:34:49.001]: New UDP socket 4 bound to 239.255.255.250:1900
[18/10 14:34:49.116]: Initializing with 1 devices
[18/10 14:34:52.2620]: RECEIVED SIGNAL 11 - SP=0 IP=0

[18/10 14:34:52.2620]: Obtained 9 stack frames.

[18/10 14:34:52.2621]: 0x4173e4 :
[18/10 14:34:52.2621]:

[18/10 14:34:52.2621]: 0x417518 :
[18/10 14:34:52.2622]:

[18/10 14:34:52.2622]: 0x7f1b62e938d0 :
[18/10 14:34:52.2622]:

[18/10 14:34:52.2622]: 0x418b1b :
[18/10 14:34:52.2623]:

[18/10 14:34:52.2623]: 0x404225 :
[18/10 14:34:52.2624]:

[18/10 14:34:52.2624]: 0x407962 :
[18/10 14:34:52.2624]:

[18/10 14:34:52.2624]: 0x4054a4 :
[18/10 14:34:52.2625]:

[18/10 14:34:52.2625]: 0x7f1b626dcb45 :
[18/10 14:34:52.2626]:

[18/10 14:34:52.2626]: 0x4021c9 :
[18/10 14:34:52.2626]:

root@multi-player:/# ls -lh /etc/minisatip/html/channels.m3u
-rw-r--r-- 1 root root 9,4K Okt 18 14:34 /etc/minisatip/html/channels.m3u
`

Best Regards,
Harald
9000h
Posts: 89
Joined: Tue May 12, 2015 1:49 pm

Post by 9000h »

its probably again a to small the response buffer in minisatip.c line 1144
catalinii
Posts: 0
Joined: Wed Nov 18, 2015 5:41 am

Post by catalinii »

Thanks, I will fix this in the next commit ... it is in utils.c :)
hargut

Post by hargut »

Just tested it again. It works now as expected.

Many thanks! :+1:
Post Reply