[asterisk-dev] Notice of possible crash cause - MWI and SIP history

Andrew Latham lathama at gmail.com
Thu Aug 18 07:53:09 CDT 2011


On Thu, Aug 18, 2011 at 7:59 AM, Olle E. Johansson <oej at edvina.net> wrote:
> Friends,
> After a long time debugging, we found a possible cause of crashes in all Asterisks since 1.6.0.
>
> If you have voicemail notifications, a large number of voicemail accounts and turn on SIP history to debug, you will hit a situation where we have two threads playing with the same SIP structure at the same time, causing memory corruption and crashes in our systems.
>
> The reason is that since 1.6.0 we have the new (and great) event notification system. What we missed was that this created a situation where we suddenly have two threads instead of one in 1.4 working on the MWI sip structure (peer->mwipvt).
>
> The patch I just put up for review adds locking on this pvt. We'll see if this is the patch we agree upon, but we are going to implement it in a number of systems to test. We immediately turned off sip history in all systems while waiting for test results.
>
> Just a quick heads up on the situation and a plee for review on the patch I added to reviewboard.
>
> Thanks,
> /O

Review Board here: https://reviewboard.asterisk.org/r/1373/


-- 
~ Andrew "lathama" Latham lathama at gmail.com http://lathama.net ~



More information about the asterisk-dev mailing list