[Top][All Lists]

[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: Sun, 14 Dec 2014 19:36:02 +0530

Hi All
I was able to resolve it.

It was my mistake.

I was creating osip auth header, and setting algorithm using a local variable (was not doing strdup).

When I was freeing osip auth header, it was freeing that algorithm which was actually a local variable.

However it was not crashing there, it was crashing afterwards while freeing transaction top via.

Thanks you all for all your support.


On Fri, Dec 12, 2014 at 2:41 PM, Austin Einter <address@hidden> wrote:
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.


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.


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]