Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BIG problem... (crash)

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Tue Oct 10, 2006 12:29 pm    Post subject: BIG problem... (crash) Reply with quote

Hallo,
I have icecast v2.0.0 running and I got a crash everytime I got sources connected and disconnected under race-conditions.

The crash happens in connection.c ln 668 in the function _handle_source_request, because something destroyed the client object.
the con and parser pointer of the client object don't point to the location as they pointed some codelines before...

Could you give me some hints where to look for the error?
I think that a thread is responsible for this.

It is not possible for me to upgrade to a newer version.
I already checked the changes up to Version 3.2.1 but it is not clear to me which changes could fix this problem.
I'm also not so firm with the whole icecast-code.

Could you help me with this problem please???

Best thanks in advance,
Pedde
Back to top
Anonymous
Guest





PostPosted: Tue Oct 10, 2006 12:44 pm    Post subject: Reply with quote

In further debugging I noticed that after the call thread_create in connection.c ln 479 the values changed...
Back to top
MikeS
Code Warrior
Code Warrior


Joined: 29 Jun 2005
Posts: 73
Location: Barcelona, Spain

PostPosted: Tue Oct 10, 2006 1:03 pm    Post subject: Reply with quote

2.0.0 is extremely old. Many, many bugs have been fixed since then, as well as a number of features being added.

Looking at fixing bugs in 2.0.0 is rather silly; you should just upgrade to something recent.

Mike
Back to top
View user's profile Send private message Send e-mail
Anonymous
Guest





PostPosted: Tue Oct 10, 2006 1:17 pm    Post subject: Reply with quote

Because I can't upgrade I will look for the bug and when I found something I will post it here...

the problem seems to be somewhere in source_main, because a thread is created which calls this function and after the thread started the pointers got "invalid"
Back to top
Anonymous
Guest





PostPosted: Tue Oct 10, 2006 2:49 pm    Post subject: Reply with quote

I think the problem is in connection.c at "sending the welcome message" because, this function tries to send the message over the socket, which in case of fast work, doesn't exist and so a crash happens.

Possible solution:

send the welcome message as first statement in source_main in source.c

Regards,
Pedde
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Oct 10, 2006 2:54 pm    Post subject: Reply with quote

We won't be fixing issues in 2.0.0, and if you can't upgrade to a new version then it's unlikely that you will be able to test your fixes.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber