You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Hatim Daginawala <Ha...@argodata.com> on 2008/08/01 00:17:29 UTC

RE: Memory leak report for Axis2c 1.4

svn log says: Wrappers for the new XML parser.

After looking at the code change, I am still scratching my head. Maybe
you can shed more light from this?
 
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/parser/
guththila/guththila_xml_reader_wrapper.c?r1=525104&r2=549072&diff_format
=h

I appreciate your help.

Thanks

-----Original Message-----
From: Samisa Abeysinghe [mailto:samisa@wso2.com] 
Sent: Thursday, July 31, 2008 4:56 PM
To: Apache AXIS C User List
Subject: Re: Memory leak report for Axis2c 1.4

You could have a look at the rationale by looking at the svn log for 
that change.
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/

Thanks,
Samisa...

Hatim Daginawala wrote:
> I have tried and it seems to be working for my test program. However,
I
> would like to understand why the code was commented out. That may help
> me evaluate the risk.
>
> Thanks
>
> -----Original Message-----
> From: Samisa Abeysinghe [mailto:samisa@wso2.com] 
> Sent: Thursday, July 31, 2008 4:12 PM
> To: Apache AXIS C User List
> Subject: Re: Memory leak report for Axis2c 1.4
>
> Hatim Daginawala wrote:
>   
>> Is it safe to uncomment AXIS2_FREE call to avoid memory leaks?
>>
>>     
>
> You can try :)
>
> Samisa...
>
>   
>>  
>>
>> This leak still exists in 1.5 also.
>>
>>  
>>
>>
>>     
>
------------------------------------------------------------------------
>   
>> *From:* Milinda Pathirage [mailto:milinda.pathirage@gmail.com]
>> *Sent:* Thursday, May 15, 2008 10:01 PM
>> *To:* Apache AXIS C User List
>> *Subject:* Re: Memory leak report for Axis2c 1.4
>>
>>  
>>
>> Hi all,
>> I think this leak only exists in Windows. This is caused by following

>> code.
>>
>> #ifdef WIN32
>>         attr_name_str = axutil_string_create(env, attr_name);
>>         axiom_xml_reader_xml_free(om_builder->parser, env,
attr_name);
>> #else
>>
>> There are so many places in om_stax_builder.c where we have used
above
>>     
>
>   
>> kind of logic. Because we have comment out the reported code block:
>>
>> void AXIS2_CALL
>> guththila_xml_reader_wrapper_xml_free(
>>     axiom_xml_reader_t * parser,
>>     const axutil_env_t * env,
>>     void *data)
>> {
>>     /*if (data)
>>        AXIS2_FREE(env->allocator, data); */
>> }
>>
>> in guththila wrapper, it caused memory leaks in windows but not in
>>     
> Linux.
>   
>> Thanks
>> Milinda.
>>
>> On Fri, May 16, 2008 at 4:04 AM, Samisa Abeysinghe <samisa@wso2.com 
>> <ma...@wso2.com>> wrote:
>>
>> Steven Zhang wrote:
>>
>> Hi:
>> I just finded memory leak in Axis2 1.4 GUTHTHILA:
>> 1. guththila_xml_read_wrapper.c: 
>> guththila_xml_reader_wrapper_xml_free(), line 581, call to 
>> AXIS2_FREE() for string buffer was commented, cause tens K memory
leak
>>     
>
>   
>> for each request. Why this one is commented?
>>
>> 2. guththila_xml_writer.c: 
>> guththila_write_empty_element_with_prefix_and_namespace(), line 1694.

>> When nmsp_found is FALSE, namesp pointer will be pushed into stack, 
>> however when it's FALSE, namesp pointer will not be used and not be
>>     
> freed.
>   
>>  
>>
>> I thought we fixed all the leaks before the release. What is the code

>> you are using to test for leaks? Did you try with echo sample?
>>
>> Samisa...
>>
>>
>> Am I correct?
>>
>> Thanks.
>> Steven Zhang
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org 
>> <ma...@ws.apache.org>
>> For additional commands, e-mail: axis-c-user-help@ws.apache.org 
>> <ma...@ws.apache.org>
>>
>>
>>     
>
------------------------------------------------------------------------
>   
>> No virus found in this incoming message.
>> Checked by AVG. Version: 8.0.100 / Virus Database: 269.23.16/1434 - 
>> Release Date: 5/15/2008 7:24 AM
>>  
>>
>>
>>
>> -- 
>> Samisa Abeysinghe Director, Engineering; WSO2 Inc.
>>
>> http://www.wso2.com/ - "The Open Source SOA Company"
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org 
>> <ma...@ws.apache.org>
>> For additional commands, e-mail: axis-c-user-help@ws.apache.org 
>> <ma...@ws.apache.org>
>>
>>
>>
>>
>> -- 
>> http://inf-dimensions.blogspot.com "Infinite Dimensions"
>> http://wsaxc.blogspot.com "Web Services With Axis2/C"
>>
>>
>>     
>
------------------------------------------------------------------------
>   
>> ---------------------------------------------------
>> Confidentiality Notice: This electronic mail transmission is 
>> confidential,
>> may be privileged and should be read or retained only by the intended
>> recipient. If you have received this transmission in error, please
>> immediately notify the sender and delete it from your system.
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com 
>> Version: 8.0.138 / Virus Database: 270.5.7/1581 - Release Date:
>>     
> 7/30/2008 6:56 AM
>   
>>   
>>     
>
>
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org



---------------------------------------------------
Confidentiality Notice:  This electronic mail transmission is confidential, 
may be privileged and should be read or retained only by the intended
recipient.  If you have received this transmission in error, please
immediately notify the sender and delete it from your system.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org