[Icecast] icecast 2.4 check if source exists?

"Thomas B. Rücker" thomas at ruecker.fi
Sun Jun 15 08:36:31 UTC 2014


On 06/07/2014 09:35 AM, uno wrote:
> "Thomas B. Rücker":
>>> for example, within a script (php / curl), i use
>>> http://127.0.0.1:8000/admin/listclients?mount=/mymount
>>> for getting info on listeners 
>> - as you noticed listclients instead of listclients.xsl gives you raw XML
>> - you can get mount specific information using the mount specific
>> credentials, you don't have to use admin credentials.
> raw XML is fine, easy to parse with PHP's SimpleXML extension. 
> the tip about the mount specific credentials is helpful, thanks.
> so i don't need to expose admin data in my scripts.
>
> 00ps: i've just crashed icecast with the above call, specifying a nonexistant
> mount, i.e. http://127.0.0.1:8000/admin/listclients?mount=/not_on_air
>
>  icecast2[18236]: segfault at 0 ip 00007f4f6c56af32 sp 00007f4f6dc68d08 error 4 in libc-2.11.3.so[7f4f6c4ef000+159000]
> (linux debian6, icecast 2.4)
>
> is that a known bug or specific to my setup

"400 - Source does not exist" Is what I get here (fresh 2.4.0 compile)
A full backtrace might help. Crashes are bad, and even if it ends up
being outside of Icecast we should check if there is a bug somewhere.

Cheers

Thomas




More information about the Icecast mailing list