Old 20th November 2013, 17:09   #1
WizardX
Member
 
Join Date: Oct 2007
Location: Amsterdam, The Netherlands
Posts: 83
shoutcast 2.2.0.107 crash

For some reason shoutcast2 crashes. Im still trying to figure out what happens, but i'll have to see the debug log for that which I will post later. Meanwhile I paste the error, which is:

root@sc2-01:/var/log/shoutcast2# terminate called after throwing an instance of 'std::runtime_error'
what(): Could not lock mutex

Any ideas?
WizardX is offline   Reply With Quote
Old 20th November 2013, 17:12   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
basically means something bad happened though without knowing what led up to where that is then called, i cannot advise what the reason for it might be.
DrO is offline   Reply With Quote
Old 20th November 2013, 18:16   #3
WizardX
Member
 
Join Date: Oct 2007
Location: Amsterdam, The Netherlands
Posts: 83
Maybe it was because I still had some legacy config vars. Cleaned it up for now, specified all vars even tough left most on default, switched on microserver debugging and as soon as I find it crashed I will paste debug log content.

By the way DrO: I'm extremely happy stats can be hidden and the massive amount of work you put into this release. Massive thumbs up!
WizardX is offline   Reply With Quote
Old 21st November 2013, 17:00   #4
WizardX
Member
 
Join Date: Oct 2007
Location: Amsterdam, The Netherlands
Posts: 83
I had another crash. This time with debug logging of the Microserver on. Here's the output...

Quote:
2013-11-21 03:41:15 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 03:41:15 DEBUG [THREADRUNNER] Adding protocol_shoutcast1Client to thread 0
2013-11-21 03:41:15 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 03:41:15 DEBUG [THREADRUNNER] Removing protocol_HTTPStyle from thread 1
2013-11-21 03:41:15 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 03:41:15 DEBUG [THREADRUNNER] Removing protocol_shoutcast1Client from thread 0
2013-11-21 03:41:15 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 03:41:36 DEBUG [THREADRUNNER] Removing protocol_shoutcast1Client from thread 1
2013-11-21 03:41:36 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 03:41:43 DEBUG [THREADRUNNER] Removing protocol_shoutcast1Client from thread 0
2013-11-21 03:41:43 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 03:41:44 DEBUG [THREADRUNNER] Removing protocol_shoutcast1Client from thread 0
2013-11-21 03:41:44 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 03:41:44 DEBUG [THREADRUNNER] Removing protocol_shoutcast1Client from thread 1
2013-11-21 03:41:44 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 03:41:45 DEBUG [THREADRUNNER] Removing protocol_shoutcast1Client from thread 1
2013-11-21 03:41:45 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [MICROSERVER] Connection received from 98.233.92.32:50245
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [THREADRUNNER] Thread 0 amt=7
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [THREADRUNNER] Thread 1 amt=6
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [THREADRUNNER] Adding microConnection to thread 1
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [THREADRUNNER] Thread 0 amt=7
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [THREADRUNNER] Thread 1 amt=7
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [THREADRUNNER] Adding protocol_HTTPStyle to thread 0
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [THREADRUNNER] Removing microConnection from thread 1
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [THREADRUNNER] Thread 0 amt=8
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [THREADRUNNER] Thread 1 amt=6
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [THREADRUNNER] Adding protocol_shoutcast1Client to thread 1
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [THREADRUNNER] Removing protocol_HTTPStyle from thread 0
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:51:41 DEBUG [THREADRUNNER] Removing protocol_shoutcast1Client from thread 1
2013-11-21 06:51:41 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:57:22 DEBUG [THREADRUNNER] Thread 0 amt=7
2013-11-21 06:57:22 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:57:22 DEBUG [THREADRUNNER] Thread 1 amt=6
2013-11-21 06:57:22 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:57:22 DEBUG [THREADRUNNER] Adding protocol_relay to thread 1
2013-11-21 06:57:22 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
2013-11-21 06:57:22 DEBUG [THREADRUNNER] Removing protocol_relay_shoutcast from thread 0
2013-11-21 06:57:22 ERROR virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console - write issue
Any suggestions?
WizardX is offline   Reply With Quote
Old 22nd November 2013, 13:32   #5
DrO
 
Join Date: Sep 2003
Posts: 27,873
that doesn't give me anything to work on other than the shell which it was started with expired (hence all of the "Error writing to console - write issue" messages) so for that would say set screenlog=0
DrO is offline   Reply With Quote
Old 24th November 2013, 14:07   #6
WizardX
Member
 
Join Date: Oct 2007
Location: Amsterdam, The Netherlands
Posts: 83
Which debug logging options would you recommend to turn on? Currently I have the following debug configuration:
Quote:
yp2debug=0
shoutcastsourcedebug=0
uvox2sourcedebug=0
shoutcast1clientdebug=0
shoutcast2clientdebug=0
relayshoutcastdebug=0
relayuvoxdebug=0
relaydebug=0
streamdatadebug=0
httpstyledebug=0
statsdebug=0
microserverdebug=1
threadrunnerdebug=1
rtmpclientdebug=0
flashpolicyserverdebug=0
webclientdebug=0
Really hoping to get the daemon stable...
WizardX is offline   Reply With Quote
Old 25th November 2013, 13:04   #7
DrO
 
Join Date: Sep 2003
Posts: 27,873
i'd just enable everything.
DrO is offline   Reply With Quote
Old 26th November 2013, 16:28   #8
WizardX
Member
 
Join Date: Oct 2007
Location: Amsterdam, The Netherlands
Posts: 83
I think I found something interesting in this crash problem:

Quote:
2013-11-26 07:39:22 ERROR [RELAY 81.173.3.140:80 sid=44] Timeout waiting for stream data (1385447962 1385447957 [5] )
2013-11-26 07:39:22 DEBUG [RELAY 81.173.3.140:80 sid=44] state_Fail
2013-11-26 07:39:22 DEBUG [RELAY 81.173.3.140:80 sid=44] protocol_relay
2013-11-26 07:39:22 DEBUG [THREADRUNNER] Thread 0 amt=7
2013-11-26 07:39:22 DEBUG [THREADRUNNER] Thread 1 amt=7
2013-11-26 07:39:22 DEBUG [THREADRUNNER] Adding protocol_relay to thread 0
2013-11-26 07:39:22 DEBUG [THREADRUNNER] Removing protocol_relay_shoutcast from thread 0
2013-11-26 07:39:22 DEBUG [RELAY 81.173.3.140:80 sid=44] ~protocol_relay_shoutcast
2013-11-26 07:39:22 DEBUG [RELAY 81.173.3.140:80 sid=44] cleanup
2013-11-26 07:39:22 INFO [RELAY 81.173.3.140:80 sid=44] Disconnected from SHOUTcast 1 source relay.
2013-11-26 07:39:22 DEBUG [RELAY 81.173.3.140:80 sid=44] Cleaning up stream ID 44
Quote:
2013-11-26 16:24:15 ERROR [RELAY 81.173.3.140:80 sid=44] Timeout waiting for stream data (1385479455 1385479450 [5] )
2013-11-26 16:24:15 DEBUG [RELAY 81.173.3.140:80 sid=44] state_Fail
2013-11-26 16:24:15 DEBUG [RELAY 81.173.3.140:80 sid=44] protocol_relay
2013-11-26 16:24:15 DEBUG [THREADRUNNER] Thread 0 amt=7
2013-11-26 16:24:15 DEBUG [THREADRUNNER] Thread 1 amt=7
2013-11-26 16:24:15 DEBUG [THREADRUNNER] Adding protocol_relay to thread 0
2013-11-26 16:24:15 DEBUG [THREADRUNNER] Removing protocol_relay_shoutcast from thread 0
2013-11-26 16:24:15 DEBUG [RELAY 81.173.3.140:80 sid=44] ~protocol_relay_shoutcast
2013-11-26 16:24:15 DEBUG [RELAY 81.173.3.140:80 sid=44] cleanup
2013-11-26 16:24:15 INFO [RELAY 81.173.3.140:80 sid=44] Disconnected from SHOUTcast 1 source relay.
2013-11-26 16:24:15 DEBUG [RELAY 81.173.3.140:80 sid=44] Cleaning up stream ID 44]
Both times when the daemon crashed it gave some error about Timeout waiting for stream data. Can this lead to a possible solution for my crashes?
WizardX is offline   Reply With Quote
Old 26th November 2013, 17:26   #9
DrO
 
Join Date: Sep 2003
Posts: 27,873
i'd really need the full log without parts just quoted so i can work through it in context please (best to email it to me).
DrO is offline   Reply With Quote
Old 29th November 2013, 16:52   #10
DrO
 
Join Date: Sep 2003
Posts: 27,873
see if build 109 helps - i don't think it will but is worth a try (also replied by email asking for a few other bits of info though i suspect turkey day has slowed down the response).
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