Old 7th August 2011, 15:09   #1
WizardX
Member
 
Join Date: Oct 2007
Location: Amsterdam, The Netherlands
Posts: 83
Bug report: Crash after using updinfo

Got the following error and a shoutcast crash:
2011-08-07 17:06:36 I msg:[ADMINCGI] XML title update [Boeh]
terminate called after throwing an instance of 'std::runtime_error'
what(): XML parser error: syntax error at line 1
Aborted

It happened after conducting the following command:

wget --user-agent "Mozilla" "http://sc-03.deep.fm:7000/admin.cgi?sid=1&type=xml&pass=cutaway&mode=updinfo&url=http://deep.fm&song=Boeh"
WizardX is offline   Reply With Quote
Old 7th August 2011, 17:24   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
you're telling the DNAS to expect xml (v2) style metadata yet you're sending 'Boeh' which is clearly not xml. re-check the options you're sending to the DNAS and you'll find why it aborts.

maybe the DNAS shouldn't abort when it tries to process an invalid xml response (something affecting the non-Windows versions due to how expat is implemented) but in some respects it's probably better so things which are clearly wrong won't be allowed through. or i just drop the xml parameter and make the DNAS automatically work it out.

-daz
DrO is offline   Reply With Quote
Old 7th August 2011, 17:39   #3
WizardX
Member
 
Join Date: Oct 2007
Location: Amsterdam, The Netherlands
Posts: 83
I see, It wasn't that clear to me. But fair enough. In my opinion under no circumstances the daemon should abort. If someone wants to get us down they can use this to make us having a really bad day.

I tried changing the info without the xml type set, I got succesfully updated (2011-08-07 19:30:15 I msg:[ADMINCGI] Title update [Boeh]) according to the logfile, but nothing displayed in the clients winamp. Can this because the encoder sends out v1 to the DNAS?
WizardX is offline   Reply With Quote
Old 7th August 2011, 17:46   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
if someone manages to compromise the source / admin password then maybe you have a point. as i said that's how the expat library which is used for xml handling currently works though i may look into trying to change that.

the clients should eventually see it though it can take a while and also it depends on what stream you're sending it to i.e. if sid=1 is the stream connected or not. checking the summary page will show if it's been recognised or not (in addition to the log message).

-daz
DrO is offline   Reply With Quote
Old 7th August 2011, 17:50   #5
WizardX
Member
 
Join Date: Oct 2007
Location: Amsterdam, The Netherlands
Posts: 83
The summary page shows the new title. Thats why I suspect DNAS to correctly have received my update. Only winamp doesn't display it. I guess it's the fact I'm broadcasting an old-style v1 stream to the DNAS. Will change that later on today because of downtime it brings

Thanks for your reply!
WizardX is offline   Reply With Quote
Old 7th August 2011, 18:31   #6
DrO
 
Join Date: Sep 2003
Posts: 27,873
i've tested combinations of v1 and v2 stuff and if the summary page is showing the updated title then Winamp should be receiving it (depending on the version of Winamp you're using). though it is generally better to have a complete v2 stack if using that (though v1 inputs are still supported).

-daz
DrO is offline   Reply With Quote
Old 7th August 2011, 18:42   #7
WizardX
Member
 
Join Date: Oct 2007
Location: Amsterdam, The Netherlands
Posts: 83
I ran 5.581 but updated to 5.621 and that fixed the Title issue. Good to know
WizardX is offline   Reply With Quote
Old 7th August 2011, 20:05   #8
DrO
 
Join Date: Sep 2003
Posts: 27,873
that makes sense as it wasn't until 5.60x that proper ShOUTcast 2 client support was added (mainly with respect to metadata handling).

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump