| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Tue Oct 10, 2006 12:29 pm Post subject: BIG problem... (crash) |
|
|
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
|
Posted: Tue Oct 10, 2006 12:44 pm Post subject: |
|
|
| 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

Joined: 29 Jun 2005 Posts: 73 Location: Barcelona, Spain
|
Posted: Tue Oct 10, 2006 1:03 pm Post subject: |
|
|
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 |
|
 |
Anonymous Guest
|
Posted: Tue Oct 10, 2006 1:17 pm Post subject: |
|
|
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
|
Posted: Tue Oct 10, 2006 2:49 pm Post subject: |
|
|
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

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Oct 10, 2006 2:54 pm Post subject: |
|
|
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 |
|
 |
|