On Thu, Jul 19, 2007 at 03:55:36AM +0000, MM _ wrote:
> Ive been having a massive problem with CW segfaulting for no apparent 
> reason.

I've just committed one change to trunk and /branches/rel/1.2 to avoid
death and destruction. The issue was that a hangup other than at the end
of dialplan processing would leave the next steps trying to write a CDR
to the hung up channel. That races with the CDR posting to the CDR back
ends, which _sometimes_ leads to accessing freed data, which _sometimes_
gets reused quickly and which _sometimes_ results in following a bogus
next pointer into the nether reaches of hell. Where "sometimes" is
actually "bloody often" :-).

This may or may not be your problem. But if you're getting calls being
hung up due to packet loss / network badness then that's happening
while the Dial app is active so it may well be where the seg faults are
coming from.

Mike

P.S. Yeah, this is more a workaround than a true fix since it
undoubtedly is still racey (but a _lot_ less so). The locking/thread
"design" in the core really is "interesting".

-- 
Mike Jagdis                        Web: http://www.eris-associates.co.uk
Eris Associates Limited            Tel: +44 7780 608 368
Reading, England                   Fax: +44 118 926 6974
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to