karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
298 stars 106 forks source link

Icecast 2.4.0-kh12-20191001230719 segfault error 4 & flac stream #267

Open nrjlisardo opened 4 years ago

nrjlisardo commented 4 years ago

Hello,

I installed the icecast kh12, and there is no issue if I encode a mp3 stream and listen it during some hours.

But if I change an try to encode a flac stream from the same source, the icecast server segfault after 1 minute.

The dmesg says : segfault at 7f5a66f540cb ip 00000000004291f3 sp 00007f5afc565c80 error 4 in icecast[400000+52000]

After searching on web an try to downgrade kh, I have no solution. Someone know if my ffmpeg command line could be the root cause ?

-- this mp3 command works ffmpeg -i "stream.mp3" -ar 48000 -ac 2 -c:a mp3 -f mp3 icecast://source:password@server_icecast_host:8003/mountpoint

-- this flac command sucks :) ffmpeg -i "stream.mp3" -ar 48000 -ac 2 -c:a flac -f ogg -content_type 'application/ogg' icecast://source:password@server_icecast_host:8003/mountpoint

I added a gdb log:

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff2120700 (LWP 9747)] 0x00000000004291f3 in process_flac_page (ogg_info=0x7fffc4071070, codec=0x7fffe8453800, page=0x7ffff211fcf0) at format_flac.c:60 60 format_flac.c: Aucun fichier ou dossier de ce type.

Thanks.

karlheyes commented 4 years ago

I'll have to check flac specifically, it's not one I test much with so there could be something amiss.

karl.