Re: [Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory exhausted!

2009-06-11 Thread Christian Koch
Hello all, Daniel-Constantin Mierla schrieb: Hello Christian, On 06/09/2009 04:56 PM, Christian Koch wrote: Hello Daniel, Daniel-Constantin Mierla schrieb: unfortunately you cannot use $sht in this way from perl module. The same limitation that prevent calling any function from modules

Re: [Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory exhausted!

2009-06-10 Thread Christian Koch
[mailto:users-boun...@lists.kamailio.org] On Behalf Of Christian Koch Sent: Tuesday, June 09, 2009 6:56 AM To: Daniel-Constantin Mierla Cc: users@lists.kamailio.org Subject: Re: [Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory exhausted! Hello Daniel, Daniel

Re: [Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory exhausted!

2009-06-10 Thread Daniel-Constantin Mierla
Hello Christian, On 06/09/2009 04:56 PM, Christian Koch wrote: Hello Daniel, Daniel-Constantin Mierla schrieb: unfortunately you cannot use $sht in this way from perl module. The same limitation that prevent calling any function from modules apply here -- the fixup system used at startup,

Re: [Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory exhausted!

2009-06-09 Thread Christian Koch
Hello again, as no one answered our question yet, we would like to ask again if someone is maybe able to take a deeper look in this? We are really stuck here and will also post this issue again on the devel list, maybe someone there is also able to take a look into this. Any help is really

Re: [Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory exhausted!

2009-06-09 Thread Daniel-Constantin Mierla
Hello Christian, I got your email but I was out in a short vacation. I will check it. Thanks, Daniel On 06/09/2009 10:38 AM, Christian Koch wrote: Hello again, as no one answered our question yet, we would like to ask again if someone is maybe able to take a deeper look in this? We are

Re: [Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory exhausted!

2009-06-09 Thread Daniel-Constantin Mierla
Hello, On 06/03/2009 03:01 PM, Christian Koch wrote: Hi Henning, hi Daniel, we did some more investigation and now we think, the problem may occur when accessing the inner name of pv's from htable. We included a call to backtrace() in pv_parse_ht_name() (where most of the memory was

Re: [Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory exhausted!

2009-06-09 Thread Christian Koch
Hello Daniel, Daniel-Constantin Mierla schrieb: Do you call pv_parse_ht_name() from perl? If not, that function is executed only at startup and it is not a cause for leaking. A clean shutdown should free it, but there is not complete support for it (some fixup functions have a free function,

Re: [Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory exhausted!

2009-06-09 Thread Daniel-Constantin Mierla
Hello Christian, On 06/09/2009 01:14 PM, Christian Koch wrote: Hello Daniel, Daniel-Constantin Mierla schrieb: Do you call pv_parse_ht_name() from perl? If not, that function is executed only at startup and it is not a cause for leaking. A clean shutdown should free it, but there is not

Re: [Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory exhausted!

2009-06-09 Thread Christian Koch
Hello Daniel, Daniel-Constantin Mierla schrieb: unfortunately you cannot use $sht in this way from perl module. The same limitation that prevent calling any function from modules apply here -- the fixup system used at startup, when string parameters are pre-compiled in different forms to

Re: [Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory exhausted!

2009-06-09 Thread Mik Cheez
: users-boun...@lists.kamailio.org [mailto:users-boun...@lists.kamailio.org] On Behalf Of Christian Koch Sent: Tuesday, June 09, 2009 6:56 AM To: Daniel-Constantin Mierla Cc: users@lists.kamailio.org Subject: Re: [Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory

[Kamailio-Users] freeing innername from htable Re: perl module, pv_sprintf: Memory exhausted!

2009-06-03 Thread Christian Koch
Hi Henning, hi Daniel, we did some more investigation and now we think, the problem may occur when accessing the inner name of pv's from htable. We included a call to backtrace() in pv_parse_ht_name() (where most of the memory was allocated) to find out, which calling function would be