You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org> on 2005/01/18 09:28:16 UTC

[jira] Created: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Memory leaks in XSD type classes - should define destructor to clean
--------------------------------------------------------------------

         Key: AXISCPP-384
         URL: http://issues.apache.org/jira/browse/AXISCPP-384
     Project: Axis-C++
        Type: Bug
  Components: Basic Architecture  
    Versions: current (nightly)    
 Environment: All platforms
    Reporter: Samisa Abeysinghe
     Fix For: 1.5 Alpha


There are numerous memory leaks in the classes in ws-axis\c\src\soap\xsd. This was revealed by purifier tools.

Especially the memory allocated inside serialize method is never deallocated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Re: [jira] Created: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Posted by Samisa Abeysinghe <sa...@gmail.com>.
There are many good tools, some open source and some commercial.

valgrind is a good open source one for Linux.

Thanks,
Samisa...


On 18 Jan 2005 14:40:37 +0600, Roshan Weerasuriya <ro...@opensource.lk> wrote:
> hi Samisa,
> 
> These "purifier tools" are they on linux. If so what is the tool you
> use?
> 
> Roshan
> 
> On Tue, 2005-01-18 at 14:28, Samisa Abeysinghe (JIRA) wrote:
> > Memory leaks in XSD type classes - should define destructor to clean
> > --------------------------------------------------------------------
> >
> >          Key: AXISCPP-384
> >          URL: http://issues.apache.org/jira/browse/AXISCPP-384
> >      Project: Axis-C++
> >         Type: Bug
> >   Components: Basic Architecture
> >     Versions: current (nightly)
> >  Environment: All platforms
> >     Reporter: Samisa Abeysinghe
> >      Fix For: 1.5 Alpha
> >
> >
> > There are numerous memory leaks in the classes in ws-axis\c\src\soap\xsd. This was revealed by purifier tools.
> >
> > Especially the memory allocated inside serialize method is never deallocated.
> 
>

Re: [jira] Created: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Posted by Roshan Weerasuriya <ro...@opensource.lk>.
hi Samisa,

These "purifier tools" are they on linux. If so what is the tool you
use?

Roshan

On Tue, 2005-01-18 at 14:28, Samisa Abeysinghe (JIRA) wrote:
> Memory leaks in XSD type classes - should define destructor to clean
> --------------------------------------------------------------------
> 
>          Key: AXISCPP-384
>          URL: http://issues.apache.org/jira/browse/AXISCPP-384
>      Project: Axis-C++
>         Type: Bug
>   Components: Basic Architecture  
>     Versions: current (nightly)    
>  Environment: All platforms
>     Reporter: Samisa Abeysinghe
>      Fix For: 1.5 Alpha
> 
> 
> There are numerous memory leaks in the classes in ws-axis\c\src\soap\xsd. This was revealed by purifier tools.
> 
> Especially the memory allocated inside serialize method is never deallocated.


[jira] Assigned: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-384?page=history ]

Samisa Abeysinghe reassigned AXISCPP-384:
-----------------------------------------

    Assign To: Adrian Dick

Adrian, I assigned you as per your request. Thanks.

> Memory leaks in XSD type classes - should define destructor to clean
> --------------------------------------------------------------------
>
>          Key: AXISCPP-384
>          URL: http://issues.apache.org/jira/browse/AXISCPP-384
>      Project: Axis-C++
>         Type: Bug
>   Components: Basic Architecture
>     Versions: current (nightly)
>  Environment: All platforms
>     Reporter: Samisa Abeysinghe
>     Assignee: Adrian Dick
>      Fix For: 1.5 Alpha

>
> There are numerous memory leaks in the classes in ws-axis\c\src\soap\xsd. This was revealed by purifier tools.
> Especially the memory allocated inside serialize method is never deallocated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Posted by "Johan Fischer (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-384?page=comments#action_57710 ]
     
Johan Fischer commented on AXISCPP-384:
---------------------------------------

Isn't it related to AXISCPP-359 ?

Cheers.


> Memory leaks in XSD type classes - should define destructor to clean
> --------------------------------------------------------------------
>
>          Key: AXISCPP-384
>          URL: http://issues.apache.org/jira/browse/AXISCPP-384
>      Project: Axis-C++
>         Type: Bug
>   Components: Basic Architecture
>     Versions: current (nightly)
>  Environment: All platforms
>     Reporter: Samisa Abeysinghe
>     Assignee: Adrian Dick
>      Fix For: 1.5 Alpha

>
> There are numerous memory leaks in the classes in ws-axis\c\src\soap\xsd. This was revealed by purifier tools.
> Especially the memory allocated inside serialize method is never deallocated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-384?page=comments#action_57748 ]
     
Samisa Abeysinghe commented on AXISCPP-384:
-------------------------------------------

AXISCPP-359 is not the same but is related.
Worth having a look into that as well. 

AXISCPP-359 looks important for continuously running applications

> Memory leaks in XSD type classes - should define destructor to clean
> --------------------------------------------------------------------
>
>          Key: AXISCPP-384
>          URL: http://issues.apache.org/jira/browse/AXISCPP-384
>      Project: Axis-C++
>         Type: Bug
>   Components: Basic Architecture
>     Versions: current (nightly)
>  Environment: All platforms
>     Reporter: Samisa Abeysinghe
>     Assignee: Adrian Dick
>      Fix For: 1.5 Alpha

>
> There are numerous memory leaks in the classes in ws-axis\c\src\soap\xsd. This was revealed by purifier tools.
> Especially the memory allocated inside serialize method is never deallocated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-384?page=comments#action_57706 ]
     
Samisa Abeysinghe commented on AXISCPP-384:
-------------------------------------------

Additionally, have to use memory allocation best practices in allocating/deallocating memory.

> Memory leaks in XSD type classes - should define destructor to clean
> --------------------------------------------------------------------
>
>          Key: AXISCPP-384
>          URL: http://issues.apache.org/jira/browse/AXISCPP-384
>      Project: Axis-C++
>         Type: Bug
>   Components: Basic Architecture
>     Versions: current (nightly)
>  Environment: All platforms
>     Reporter: Samisa Abeysinghe
>      Fix For: 1.5 Alpha

>
> There are numerous memory leaks in the classes in ws-axis\c\src\soap\xsd. This was revealed by purifier tools.
> Especially the memory allocated inside serialize method is never deallocated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Posted by Samisa Abeysinghe <sa...@gmail.com>.
Hi Adrian,
    Assignment done!
Thanks,
Samisa...


On Tue, 18 Jan 2005 08:55:34 +0000, Adrian Dick <ad...@uk.ibm.com> wrote:
> 
> 
> Samisa,
> 
> If you assign this JIRA to me, I can tidy up the remaining XSD objects
> (plus the new ones I still need to add) following how you've corrected
> HexBinary.
> 
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com)
> 
> "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org> wrote on 18/01/2005
> 08:50:17:
> 
> >      [ http://issues.apache.org/jira/browse/AXISCPP-384?
> > page=comments#action_57707 ]
> >
> > Samisa Abeysinghe commented on AXISCPP-384:
> > -------------------------------------------
> >
> > Fixed HexBinary class
> >
> > > Memory leaks in XSD type classes - should define destructor to clean
> > > --------------------------------------------------------------------
> > >
> > >          Key: AXISCPP-384
> > >          URL: http://issues.apache.org/jira/browse/AXISCPP-384
> > >      Project: Axis-C++
> > >         Type: Bug
> > >   Components: Basic Architecture
> > >     Versions: current (nightly)
> > >  Environment: All platforms
> > >     Reporter: Samisa Abeysinghe
> > >      Fix For: 1.5 Alpha
> >
> > >
> > > There are numerous memory leaks in the classes in ws-
> > axis\c\src\soap\xsd. This was revealed by purifier tools.
> > > Especially the memory allocated inside serialize method is never
> > deallocated.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > If you think it was sent incorrectly contact one of the administrators:
> >    http://issues.apache.org/jira/secure/Administrators.jspa
> > -
> > If you want more information on JIRA, or have a bug to report see:
> >    http://www.atlassian.com/software/jira
> >
> 
>

Re: [jira] Commented: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Posted by Adrian Dick <ad...@uk.ibm.com>.



Samisa,

If you assign this JIRA to me, I can tidy up the remaining XSD objects
(plus the new ones I still need to add) following how you've corrected
HexBinary.


Adrian
_______________________________________
Adrian Dick (adrian.dick@uk.ibm.com)


"Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org> wrote on 18/01/2005
08:50:17:

>      [ http://issues.apache.org/jira/browse/AXISCPP-384?
> page=comments#action_57707 ]
>
> Samisa Abeysinghe commented on AXISCPP-384:
> -------------------------------------------
>
> Fixed HexBinary class
>
> > Memory leaks in XSD type classes - should define destructor to clean
> > --------------------------------------------------------------------
> >
> >          Key: AXISCPP-384
> >          URL: http://issues.apache.org/jira/browse/AXISCPP-384
> >      Project: Axis-C++
> >         Type: Bug
> >   Components: Basic Architecture
> >     Versions: current (nightly)
> >  Environment: All platforms
> >     Reporter: Samisa Abeysinghe
> >      Fix For: 1.5 Alpha
>
> >
> > There are numerous memory leaks in the classes in ws-
> axis\c\src\soap\xsd. This was revealed by purifier tools.
> > Especially the memory allocated inside serialize method is never
> deallocated.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> If you want more information on JIRA, or have a bug to report see:
>    http://www.atlassian.com/software/jira
>


[jira] Commented: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-384?page=comments#action_57707 ]
     
Samisa Abeysinghe commented on AXISCPP-384:
-------------------------------------------

Fixed HexBinary class

> Memory leaks in XSD type classes - should define destructor to clean
> --------------------------------------------------------------------
>
>          Key: AXISCPP-384
>          URL: http://issues.apache.org/jira/browse/AXISCPP-384
>      Project: Axis-C++
>         Type: Bug
>   Components: Basic Architecture
>     Versions: current (nightly)
>  Environment: All platforms
>     Reporter: Samisa Abeysinghe
>      Fix For: 1.5 Alpha

>
> There are numerous memory leaks in the classes in ws-axis\c\src\soap\xsd. This was revealed by purifier tools.
> Especially the memory allocated inside serialize method is never deallocated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Reopened: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-384?page=history ]
     
Samisa Abeysinghe reopened AXISCPP-384:
---------------------------------------

     Assign To: Samisa Abeysinghe  (was: Adrian Dick)

There seem to be some few more hidden leaks. I will try and fix those

> Memory leaks in XSD type classes - should define destructor to clean
> --------------------------------------------------------------------
>
>          Key: AXISCPP-384
>          URL: http://issues.apache.org/jira/browse/AXISCPP-384
>      Project: Axis-C++
>         Type: Bug
>   Components: Basic Architecture
>     Versions: current (nightly)
>  Environment: All platforms
>     Reporter: Samisa Abeysinghe
>     Assignee: Samisa Abeysinghe
>      Fix For: current (nightly)

>
> There are numerous memory leaks in the classes in ws-axis\c\src\soap\xsd. This was revealed by purifier tools.
> Especially the memory allocated inside serialize method is never deallocated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-384?page=history ]
     
Samisa Abeysinghe closed AXISCPP-384:
-------------------------------------

    Resolution: Fixed

Fixed some more leaks in Int, Integer, Float, Decimal, DateTime, Base64Binary and HexBinary classes

> Memory leaks in XSD type classes - should define destructor to clean
> --------------------------------------------------------------------
>
>          Key: AXISCPP-384
>          URL: http://issues.apache.org/jira/browse/AXISCPP-384
>      Project: Axis-C++
>         Type: Bug
>   Components: Basic Architecture
>     Versions: current (nightly)
>  Environment: All platforms
>     Reporter: Samisa Abeysinghe
>     Assignee: Samisa Abeysinghe
>      Fix For: current (nightly)

>
> There are numerous memory leaks in the classes in ws-axis\c\src\soap\xsd. This was revealed by purifier tools.
> Especially the memory allocated inside serialize method is never deallocated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXISCPP-384) Memory leaks in XSD type classes - should define destructor to clean

Posted by "Adrian Dick (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-384?page=history ]
     
Adrian Dick resolved AXISCPP-384:
---------------------------------

     Resolution: Fixed
    Fix Version: current (nightly)
                     (was: 1.5 Alpha)

All existing XSD objects have now had the suggested changes made, to prevent memory leaks.
I shall ensure the remaining XSD objects will be implemented to incorporate these suggestions.

> Memory leaks in XSD type classes - should define destructor to clean
> --------------------------------------------------------------------
>
>          Key: AXISCPP-384
>          URL: http://issues.apache.org/jira/browse/AXISCPP-384
>      Project: Axis-C++
>         Type: Bug
>   Components: Basic Architecture
>     Versions: current (nightly)
>  Environment: All platforms
>     Reporter: Samisa Abeysinghe
>     Assignee: Adrian Dick
>      Fix For: current (nightly)

>
> There are numerous memory leaks in the classes in ws-axis\c\src\soap\xsd. This was revealed by purifier tools.
> Especially the memory allocated inside serialize method is never deallocated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira