[Serusers] avp_delete problem

Greger V. Teigre greger at teigre.com
Thu Sep 7 15:55:34 CEST 2006


Could you try avp_dump()  (or was it avp_print()) ? I'm not sure how it 
works for ser head, though.
g-)

Luis Silva wrote:
>
> No, just this. that why I'm curious. it's really very strange. I made 
> a new test, I only inserted an avp and then deleted and the same 
> happened:
>
> TEST:
> xlog("L_INFO", "%Crs [avp_name]:%$avp_name\n");
> $avp_name= "something";
> xlog("L_INFO", "%Crs [avp_name]:%$avp_name\n");
> avp_delete("$avp_name");
> xlog("L_INFO", "%Crs [avp_name]:%$avp_name\n");
>
> ------>RESULT:
> XLOG: xl_print_log: final buffer length 33
> 1(9996)  [avp_name]:<null>
>  1(9996) qm_malloc(0xb5f9c000, 43) called from usr_avp.c: 
> create_avp(172)
> 1(9996) qm_malloc(0xb5f9c000, 44) returns address 0xb617a698 frag. 
> 0xb617a680 (size=44) on 1 -th hit
> 1(9996) XLOG: xl_print_log: final buffer length 36
> 1(9996)  [avp_name]:something
>  1(9996) XLOG: xl_print_log: final buffer length 36
> 1(9996)  [avp_name]:something
>
>
>
>
>
>
>
>
>
>
>
>> From: "Greger V. Teigre" <greger at teigre.com>
>> To: Luis Silva <lfs12 at hotmail.com>
>> CC: serusers at iptel.org
>> Subject: Re: [Serusers] avp_delete problem
>> Date: Wed, 06 Sep 2006 09:19:48 +0200
>>
>> This is only the memory dump, nothing from any modules or SER?! g-)
>>
>> Luis Silva wrote:
>>>
>>> Yes,but it doesnt appear any message saying that the avp has been 
>>> deleted, only this:
>>>
>>> 3(14731) qm_malloc(0x8101480, 62) called from dbase.c: 
>>> print_delete(607)
>>> 3(14731) qm_malloc(0x8101480, 64) returns address 0x81aaa94 frag. 
>>> 0x81aaa7c (size=144) on 1 -th hit
>>> 3(14731) qm_malloc(0x8101480, 20) called from dbase.c: 
>>> new_pg_params(86)
>>> 3(14731) qm_malloc(0x8101480, 20) returns address 0x81aa450 frag. 
>>> 0x81aa438 (size=24) on 1 -th hit
>>> 3(14731) qm_malloc(0x8101480, 8) called from dbase.c: new_pg_params(89)
>>> 3(14731) qm_malloc(0x8101480, 8) returns address 0x81aa500 frag. 
>>> 0x81aa4e8 (size=8) on 1 -th hit
>>> 3(14731) qm_malloc(0x8101480, 8) called from dbase.c: new_pg_params(92)
>>> 3(14731) qm_malloc(0x8101480, 8) returns address 0x81aa538 frag. 
>>> 0x81aa520 (size=16) on 1 -th hit
>>> 3(14731) qm_malloc(0x8101480, 8) called from dbase.c: new_pg_params(95)
>>> 3(14731) qm_malloc(0x8101480, 8) returns address 0x81aa8cc frag. 
>>> 0x81aa8b4 (size=40) on 1 -th hit
>>>
>>>
>>>
>>>> From: "Greger V. Teigre" <greger at teigre.com>
>>>> To: Luis Silva <lfs12 at hotmail.com>
>>>> CC: serusers at iptel.org
>>>> Subject: Re: [Serusers] avp_delete problem
>>>> Date: Tue, 05 Sep 2006 09:38:55 +0200
>>>>
>>>> Have you looked at the debug trace for this? g-)
>>>>
>>>> Luis Silva wrote:
>>>>>
>>>>> Hi all!!
>>>>>
>>>>> I'm having a big problem when trying to delete an avp.
>>>>>
>>>>> First of all, I do $avp_name=  @db.fetch[1].field[1]; an retreive 
>>>>> some information from the db.
>>>>> After using it I do avp_delete("$avp_name/g"); . Then I print the 
>>>>> avps with the avp_print() an I watch that the value is still 
>>>>> there. What might be the problem?
>>>>>
>>>>> thanks a lot
>>>>>
>>>>> Regards,
>>>>>
>>>>> Luís Silva
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Serusers mailing list
>>>>> Serusers at lists.iptel.org
>>>>> http://lists.iptel.org/mailman/listinfo/serusers
>>>>>
>>>>>
>>>
>>>
>>>
>
>
>



More information about the sr-users mailing list