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 ji...@apache.org on 2004/05/14 18:05:56 UTC
[jira] Created: (XERCESC-1213) delete XercesDOMParser object does not release memory under Sun Solaris
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1213
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1213
Summary: delete XercesDOMParser object does not release memory under Sun Solaris
Type: Bug
Status: Unassigned
Priority: Critical
Project: Xerces-C++
Components:
Non-Validating Parser
Versions:
2.3.0
Assignee:
Reporter: Kirill Shiff
Created: Fri, 14 May 2004 9:05 AM
Updated: Fri, 14 May 2004 9:05 AM
Environment: Sun Solaris Xerces 2.3
Description:
For following example Xerces does not release memory by delete m_pParser (nother by Terminate()) . It happends on Sun Solaris. Under windows it works OK.
however for i > 0 there is no allocated memory increase...
XMLPlatformUtils::Initialize();
for(long i = 0; i < 5; i++)
{
DOMNode* m_pRoot = 0;
DOMDocument* m_pDOMDocument = 0;
XercesDOMParser* m_pParser = new XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser();
m_pParser->setDoNamespaces(true);
m_pParser->setValidationScheme(AbstractDOMParser::Val_Auto);
m_pParser->setExpandEntityReferences(false);
m_pParser->setIncludeIgnorableWhitespace(false);
m_pParser->useCachedGrammarInParse(false);
m_pParser->parse(xmlFile);
m_pDOMDocument = m_pParser->getDocument();
....
m_pRoot = m_pDOMDocument->getFirstChild();
m_pParser->resetDocumentPool();
m_pParser->resetCachedGrammarPool();
delete m_pParser, m_pParser = 0;
}
XMLPlatformUtils::Terminate();
---------------------------------------------------------------------
JIRA INFORMATION:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
[jira] Resolved: (XERCESC-1213) delete XercesDOMParser object does not release memory under Sun Solaris
Posted by xe...@xml.apache.org.
Message:
The following issue has been resolved as INVALID.
Resolver: cargilld
Date: Tue, 12 Oct 2004 9:41 AM
Marking invalid as per previous comment from Dallas.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1213
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1213
Summary: delete XercesDOMParser object does not release memory under Sun Solaris
Type: Bug
Status: Resolved
Priority: Critical
Resolution: INVALID
Project: Xerces-C++
Components:
Non-Validating Parser
Versions:
2.3.0
Assignee:
Reporter: Kirill Shiff
Created: Fri, 14 May 2004 9:05 AM
Updated: Tue, 12 Oct 2004 9:41 AM
Environment: Sun Solaris Xerces 2.3
Description:
For following example Xerces does not release memory by delete m_pParser (nother by Terminate()) . It happends on Sun Solaris. Under windows it works OK.
however for i > 0 there is no allocated memory increase...
XMLPlatformUtils::Initialize();
for(long i = 0; i < 5; i++)
{
DOMNode* m_pRoot = 0;
DOMDocument* m_pDOMDocument = 0;
XercesDOMParser* m_pParser = new XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser();
m_pParser->setDoNamespaces(true);
m_pParser->setValidationScheme(AbstractDOMParser::Val_Auto);
m_pParser->setExpandEntityReferences(false);
m_pParser->setIncludeIgnorableWhitespace(false);
m_pParser->useCachedGrammarInParse(false);
m_pParser->parse(xmlFile);
m_pDOMDocument = m_pParser->getDocument();
....
m_pRoot = m_pDOMDocument->getFirstChild();
m_pParser->resetDocumentPool();
m_pParser->resetCachedGrammarPool();
delete m_pParser, m_pParser = 0;
}
XMLPlatformUtils::Terminate();
---------------------------------------------------------------------
JIRA INFORMATION:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
[jira] Reopened: (XERCESC-1213) delete XercesDOMParser object does not release memory under Sun Solaris
Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
[ http://nagoya.apache.org/jira/browse/XERCESC-1213?page=history ]
Alberto Massari reopened XERCESC-1213:
--------------------------------------
> delete XercesDOMParser object does not release memory under Sun Solaris
> -----------------------------------------------------------------------
>
> Key: XERCESC-1213
> URL: http://nagoya.apache.org/jira/browse/XERCESC-1213
> Project: Xerces-C++
> Type: Bug
> Components: Non-Validating Parser
> Versions: 2.3.0
> Environment: Sun Solaris Xerces 2.3
> Reporter: Kirill Shiff
> Priority: Critical
>
> For following example Xerces does not release memory by delete m_pParser (nother by Terminate()) . It happends on Sun Solaris. Under windows it works OK.
> however for i > 0 there is no allocated memory increase...
> XMLPlatformUtils::Initialize();
> for(long i = 0; i < 5; i++)
> {
> DOMNode* m_pRoot = 0;
> DOMDocument* m_pDOMDocument = 0;
> XercesDOMParser* m_pParser = new XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser();
> m_pParser->setDoNamespaces(true);
> m_pParser->setValidationScheme(AbstractDOMParser::Val_Auto);
> m_pParser->setExpandEntityReferences(false);
> m_pParser->setIncludeIgnorableWhitespace(false);
> m_pParser->useCachedGrammarInParse(false);
> m_pParser->parse(xmlFile);
> m_pDOMDocument = m_pParser->getDocument();
> ....
> m_pRoot = m_pDOMDocument->getFirstChild();
> m_pParser->resetDocumentPool();
> m_pParser->resetCachedGrammarPool();
> delete m_pParser, m_pParser = 0;
> }
> XMLPlatformUtils::Terminate();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.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
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
[jira] Commented: (XERCESC-1213) delete XercesDOMParser object does not release memory under Sun Solaris
Posted by xe...@xml.apache.org.
The following comment has been added to this issue:
Author: Kirill Shiff
Created: Fri, 15 Oct 2004 12:37 PM
Body:
I retested this case with compilation options for a multi-threaded app "-mt" for version 2.3 and 2.6 - problem STILL EXISTS :( ... Could somebody advise?
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XERCESC-1213?page=comments#action_54223
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1213
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1213
Summary: delete XercesDOMParser object does not release memory under Sun Solaris
Type: Bug
Status: Resolved
Priority: Critical
Resolution: INVALID
Project: Xerces-C++
Components:
Non-Validating Parser
Versions:
2.3.0
Assignee:
Reporter: Kirill Shiff
Created: Fri, 14 May 2004 9:05 AM
Updated: Fri, 15 Oct 2004 12:37 PM
Environment: Sun Solaris Xerces 2.3
Description:
For following example Xerces does not release memory by delete m_pParser (nother by Terminate()) . It happends on Sun Solaris. Under windows it works OK.
however for i > 0 there is no allocated memory increase...
XMLPlatformUtils::Initialize();
for(long i = 0; i < 5; i++)
{
DOMNode* m_pRoot = 0;
DOMDocument* m_pDOMDocument = 0;
XercesDOMParser* m_pParser = new XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser();
m_pParser->setDoNamespaces(true);
m_pParser->setValidationScheme(AbstractDOMParser::Val_Auto);
m_pParser->setExpandEntityReferences(false);
m_pParser->setIncludeIgnorableWhitespace(false);
m_pParser->useCachedGrammarInParse(false);
m_pParser->parse(xmlFile);
m_pDOMDocument = m_pParser->getDocument();
....
m_pRoot = m_pDOMDocument->getFirstChild();
m_pParser->resetDocumentPool();
m_pParser->resetCachedGrammarPool();
delete m_pParser, m_pParser = 0;
}
XMLPlatformUtils::Terminate();
---------------------------------------------------------------------
JIRA INFORMATION:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
[jira] Commented: (XERCESC-1213) delete XercesDOMParser object does not release memory under Sun Solaris
Posted by ji...@apache.org.
The following comment has been added to this issue:
Author: Alberto Massari
Created: Fri, 14 May 2004 9:11 AM
Body:
The syntax
delete m_pParser, m_pParser = 0;
seems suspicious to me; I cannot check with the C++ grammar book, but it could be the case that the Solaris compiler throws away the "delete m_pParser" part of the statement.
Try with a more standard
delete m_pParser;
m_pParser = 0;
Alberto
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XERCESC-1213?page=comments#action_35557
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1213
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1213
Summary: delete XercesDOMParser object does not release memory under Sun Solaris
Type: Bug
Status: Unassigned
Priority: Critical
Project: Xerces-C++
Components:
Non-Validating Parser
Versions:
2.3.0
Assignee:
Reporter: Kirill Shiff
Created: Fri, 14 May 2004 9:05 AM
Updated: Fri, 14 May 2004 9:11 AM
Environment: Sun Solaris Xerces 2.3
Description:
For following example Xerces does not release memory by delete m_pParser (nother by Terminate()) . It happends on Sun Solaris. Under windows it works OK.
however for i > 0 there is no allocated memory increase...
XMLPlatformUtils::Initialize();
for(long i = 0; i < 5; i++)
{
DOMNode* m_pRoot = 0;
DOMDocument* m_pDOMDocument = 0;
XercesDOMParser* m_pParser = new XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser();
m_pParser->setDoNamespaces(true);
m_pParser->setValidationScheme(AbstractDOMParser::Val_Auto);
m_pParser->setExpandEntityReferences(false);
m_pParser->setIncludeIgnorableWhitespace(false);
m_pParser->useCachedGrammarInParse(false);
m_pParser->parse(xmlFile);
m_pDOMDocument = m_pParser->getDocument();
....
m_pRoot = m_pDOMDocument->getFirstChild();
m_pParser->resetDocumentPool();
m_pParser->resetCachedGrammarPool();
delete m_pParser, m_pParser = 0;
}
XMLPlatformUtils::Terminate();
---------------------------------------------------------------------
JIRA INFORMATION:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org