osip-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [osip-dev] Newbie for osip


From: Austin Einter
Subject: Re: [osip-dev] Newbie for osip
Date: Fri, 12 Dec 2014 14:41:18 +0530

I have done that as well.

Inside call callback, I just call osip_remove_transaction and add the transaction pointer to a linked list.
And after 2 minutes, from my main thread I do osip_transaction_free2 call.

I can confirm that it is crashing (mostly when it tries to free transaction->via).

I am using osip-4.1.0 in Ubuntu 12.04 system.


Thanks
Austin






On Fri, Dec 12, 2014 at 9:44 AM, Manuel Argüelles <address@hidden> wrote:


On Dec 11, 2014 2:18 AM, "Austin Einter" <address@hidden> wrote:
> In above callback function, If I call only osip_remove_transaction, the registration / un-registration everything goes fine, but with valgrind I can find lot of memory leaks. Also I tried to run it for longer time and find system memory foes down.
>
> In above callback, If I call osip_transaction_free2 + osip_remove_transaction  (which is appropriate),  I face crash issue.
>
> In above callback, If I call osip_transaction_free (osip_remove_transaction api not called),  I face crash issue.
>

Hello,

Inside the kill callback you shouldn't free your transaction, you should store it in a list and then free it in the main loop (after execute call)

Hope that helps ;)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]