You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Ramanjaneyulu malisetti <ra...@hotmail.com> on 2007/12/27 15:10:56 UTC

XMLPlatformUtils::Initialize - Memory leaks

Hi,
 
  We are using Xerces-2.6.0 for XML parsing. Purifier shows many memory leaks in XMLPlatformUtils::Initialize(). I understand from forum that many leaks are fixed in latest version of Xerces. We can not afford moving to latest release of xerces.
 
Can anybody help us what is the best approach to merge any fixes related to memory leaks back to 2.6.0.
 
Regards
Raman
_________________________________________________________________
Post free property ads on Yello Classifieds now! www.yello.in
http://ss1.richmedia.in/recurl.asp?pid=221

Re: XMLPlatformUtils::Initialize - Memory leaks

Posted by David Bertoni <db...@apache.org>.
Ramanjaneyulu malisetti wrote:
> 
> Hi Alberto,
>                      Yes I do. I read in forums that there are many 
> memory leaks fixed after 2.6.0. Are they related to this scenario.
If you could point us to these forums, it would help.  It doesn't do much 
good for people to post in forums that there are memory leaks, but not 
report them in our bug database.

>  
> I did diff of 2.6 and 2.8 source code. I see at many places memory is 
> alloced and dealloced through fMemoryManager.
>  

Unless you use the pluggable memory management in a particular way, these
changes will not affect you. Also, many of the leaks that were plugged
occur only when exceptions are thrown in certain circumstances, so you are
unlikely to encounter them. It would not make much sense for you to
back-port all of these changes to your code, especially if you're worried
about moving to the latest release.

> If this can address this issue. Merging relavent sections of code from 
> 2.8 to 2.6 make sense?

You should first attempt to diagnose the leaks through Purify to see if 
there is already a fix in 2.8 or 3.0.  If there is, you can back-port the 
change to 2.6.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


RE: XMLPlatformUtils::Initialize - Memory leaks

Posted by Ramanjaneyulu malisetti <ra...@hotmail.com>.
Thank you, I'll do this way.
 
Regards
Raman
> Date: Thu, 27 Dec 2007 17:22:48 +0100> From: amassari@datadirect.com> To: c-dev@xerces.apache.org> Subject: Re: XMLPlatformUtils::Initialize - Memory leaks> > Hi Raman,> you can backport changes from 2.8 to 2.6, but you must be sure you are > doing the right thing; a better approach would be using your tool > (Purify?) to find out where the leak is created, and either fixing it in > your copy of Xerces, or digging in the commit history for that file to > locate the changeset that fixed it.> > Alberto> > Ramanjaneyulu malisetti wrote:> >> > Hi Alberto,> > Yes I do. I read in forums that there are many > > memory leaks fixed after 2.6.0. Are they related to this scenario.> > > > I did diff of 2.6 and 2.8 source code. I see at many places memory is > > alloced and dealloced through fMemoryManager.> > > > If this can address this issue. Merging relavent sections of code from > > 2.8 to 2.6 make sense?> > > > Regards> > Raman> >> > > Date: Thu, 27 Dec 2007 15:41:22 +0100> > > From: amassari@datadirect.com> > > To: c-dev@xerces.apache.org> > > Subject: Re: XMLPlatformUtils::Initialize - Memory leaks> > >> > > Hi Raman,> > > do you call XMLPlatformUtils::Terminate before your program ends?> > >> > > Alberto> > >> > > Ramanjaneyulu malisetti wrote:> > > > Hi,> > > >> > > > We are using Xerces-2.6.0 for XML parsing. Purifier shows many> > > > memory leaks in XMLPlatformUtils::Initialize(). I understand from> > > > forum that many leaks are fixed in latest version of Xerces. We can> > > > not afford moving to latest release of xerces.> > > >> > > > Can anybody help us what is the best approach to merge any fixes> > > > related to memory leaks back to 2.6.0.> > > >> > > > Regards> > > > Raman> > > >> > >> > >> > > ---------------------------------------------------------------------> > > To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org> > > For additional commands, e-mail: c-dev-help@xerces.apache.org> > >> > > > ---------------------------------------------------------------------> To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org> For additional commands, e-mail: c-dev-help@xerces.apache.org> 
_________________________________________________________________
Post free property ads on Yello Classifieds now! www.yello.in
http://ss1.richmedia.in/recurl.asp?pid=221

Re: XMLPlatformUtils::Initialize - Memory leaks

Posted by Alberto Massari <am...@datadirect.com>.
Hi Raman,
you can backport changes from 2.8 to 2.6, but you must be sure you are 
doing the right thing; a better approach would be using your tool 
(Purify?) to find out where the leak is created, and either fixing it in 
your copy of Xerces, or digging in the commit history for that file to 
locate the changeset that fixed it.

Alberto

Ramanjaneyulu malisetti wrote:
>
> Hi Alberto,
>                      Yes I do. I read in forums that there are many 
> memory leaks fixed after 2.6.0. Are they related to this scenario.
>  
> I did diff of 2.6 and 2.8 source code. I see at many places memory is 
> alloced and dealloced through fMemoryManager.
>  
> If this can address this issue. Merging relavent sections of code from 
> 2.8 to 2.6 make sense?
>  
> Regards
> Raman
>
> > Date: Thu, 27 Dec 2007 15:41:22 +0100
> > From: amassari@datadirect.com
> > To: c-dev@xerces.apache.org
> > Subject: Re: XMLPlatformUtils::Initialize - Memory leaks
> >
> > Hi Raman,
> > do you call XMLPlatformUtils::Terminate before your program ends?
> >
> > Alberto
> >
> > Ramanjaneyulu malisetti wrote:
> > > Hi,
> > >
> > > We are using Xerces-2.6.0 for XML parsing. Purifier shows many
> > > memory leaks in XMLPlatformUtils::Initialize(). I understand from
> > > forum that many leaks are fixed in latest version of Xerces. We can
> > > not afford moving to latest release of xerces.
> > >
> > > Can anybody help us what is the best approach to merge any fixes
> > > related to memory leaks back to 2.6.0.
> > >
> > > Regards
> > > Raman
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
> > For additional commands, e-mail: c-dev-help@xerces.apache.org
> >



---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


RE: XMLPlatformUtils::Initialize - Memory leaks

Posted by Ramanjaneyulu malisetti <ra...@hotmail.com>.
Hi Alberto,
                     Yes I do. I read in forums that there are many memory leaks fixed after 2.6.0. Are they related to this scenario. 
 
I did diff of 2.6 and 2.8 source code. I see at many places memory is alloced and dealloced through fMemoryManager.
 
If this can address this issue. Merging relavent sections of code from 2.8 to 2.6 make sense?
 
Regards
Raman
> Date: Thu, 27 Dec 2007 15:41:22 +0100> From: amassari@datadirect.com> To: c-dev@xerces.apache.org> Subject: Re: XMLPlatformUtils::Initialize - Memory leaks> > Hi Raman,> do you call XMLPlatformUtils::Terminate before your program ends?> > Alberto> > Ramanjaneyulu malisetti wrote:> > Hi,> > > > We are using Xerces-2.6.0 for XML parsing. Purifier shows many > > memory leaks in XMLPlatformUtils::Initialize(). I understand from > > forum that many leaks are fixed in latest version of Xerces. We can > > not afford moving to latest release of xerces.> > > > Can anybody help us what is the best approach to merge any fixes > > related to memory leaks back to 2.6.0.> > > > Regards> > Raman> >> > ------------------------------------------------------------------------> > Detailed profiles 4 marriage! Only at Shaadi.com Try it! > > <http://ss1.richmedia.in/recurl.asp?pid=107>> > > > ---------------------------------------------------------------------> To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org> For additional commands, e-mail: c-dev-help@xerces.apache.org> 
_________________________________________________________________
Post free property ads on Yello Classifieds now! www.yello.in
http://ss1.richmedia.in/recurl.asp?pid=220

Re: XMLPlatformUtils::Initialize - Memory leaks

Posted by Alberto Massari <am...@datadirect.com>.
Hi Raman,
do you call XMLPlatformUtils::Terminate before your program ends?

Alberto

Ramanjaneyulu malisetti wrote:
> Hi,
>  
>   We are using Xerces-2.6.0 for XML parsing. Purifier shows many 
> memory leaks in XMLPlatformUtils::Initialize(). I understand from 
> forum that many leaks are fixed in latest version of Xerces. We can 
> not afford moving to latest release of xerces.
>  
> Can anybody help us what is the best approach to merge any fixes 
> related to memory leaks back to 2.6.0.
>  
> Regards
> Raman
>
> ------------------------------------------------------------------------
> Detailed profiles 4 marriage! Only at Shaadi.com Try it! 
> <http://ss1.richmedia.in/recurl.asp?pid=107>



---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org