[jira] [Commented] (XERCESC-2219) XMLReader constructor: memory leak when refreshRawBuffer() throws
[ https://issues.apache.org/jira/browse/XERCESC-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17613126#comment-17613126 ] Roger Leigh commented on XERCESC-2219: -- Yes, this was applied. > XMLReader constructor: memory leak when refreshRawBuffer() throws > - > > Key: XERCESC-2219 > URL: https://issues.apache.org/jira/browse/XERCESC-2219 > Project: Xerces-C++ > Issue Type: Bug >Affects Versions: 3.2.3 >Reporter: Roger Leigh >Assignee: Scott Cantor >Priority: Major > Fix For: 4.0.0, 3.2.4 > > > See https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37529 on GDAL > The backtrace of the exception that caused the memory leak was: > {noformat} > Catchpoint 1 (exception thrown), 0x75547672 in __cxa_throw () from > /lib/x86_64-linux-gnu/libstdc++.so.6 > (gdb) bt > 0 0x75547672 in __cxa_throw () from > /lib/x86_64-linux-gnu/libstdc++.so.6 > 1 0x724447c4 in xercesc_4_0::PosixFileMgr::fileRead (this= out>, f=, byteCount=, buffer=, > manager=0x556df730) >at xercesc/util/FileManagers/PosixFileMgr.cpp:160 > 2 0x724e6ec2 in xercesc_4_0::XMLReader::refreshRawBuffer > (this=0x557e49f8) at xercesc/internal/XMLReader.cpp:1891 > 3 0x724e70d4 in xercesc_4_0::XMLReader::XMLReader > (this=0x557e49f8, pubId=, sysId=0x55750920 u"/", > streamToAdopt=0x5574e838, from=, >type=xercesc_4_0::XMLReader::Type_General, > source=xercesc_4_0::XMLReader::Source_External, throwAtEnd=false, > calculateSrcOfs=false, lowWaterMark=100, > version=xercesc_4_0::XMLReader::XMLV1_0, >manager=0x556df730) at xercesc/internal/XMLReader.cpp:130 > 4 0x724ced75 in xercesc_4_0::ReaderMgr::createReader > (this=this@entry=0x557896d8, src=..., > refFrom=refFrom@entry=xercesc_4_0::XMLReader::RefFrom_NonLiteral, >type=type@entry=xercesc_4_0::XMLReader::Type_General, > source=source@entry=xercesc_4_0::XMLReader::Source_External, > calcSrcOfs=false, lowWaterMark=100) at ./xercesc/sax/InputSource.hpp:314 > 5 0x724cb0af in xercesc_4_0::IGXMLScanner::scanReset > (this=0x55789608, src=...) at xercesc/internal/IGXMLScanner2.cpp:1286 > 6 0x724c36e9 in xercesc_4_0::IGXMLScanner::scanDocument > (this=0x55789608, src=...) at xercesc/internal/IGXMLScanner.cpp:198 > 7 0x7250abaf in xercesc_4_0::AbstractDOMParser::parse > (this=0x7fffc2d0, source=...) at xercesc/parsers/AbstractDOMParser.cpp:545 > 8 0x724cbdbe in xercesc_4_0::IGXMLScanner::resolveSchemaGrammar > (this=0x55792f78, loc=0x557dd694 u"/", uri=0x55737180 u"`", > ignoreLoadSchema=) >at xercesc/internal/IGXMLScanner2.cpp:1895 > 0x724cce7c in xercesc_4_0::IGXMLScanner::parseSchemaLocation > (this=0x55792f78, schemaLocationStr=, > ignoreLoadSchema=false) at ./xercesc/framework/XMLBuffer.hpp:171 > 10 0x724cd182 in > xercesc_4_0::IGXMLScanner::scanRawAttrListforNameSpaces > (this=this@entry=0x55792f78, attCount=attCount@entry=9) at > xercesc/internal/IGXMLScanner2.cpp:1649 > 11 0x724c22cb in xercesc_4_0::IGXMLScanner::scanStartTagNS > (this=0x55792f78, gotData=@0x7fffc91f: true) at > xercesc/internal/IGXMLScanner.cpp:2213 > 12 0x724c3522 in xercesc_4_0::IGXMLScanner::scanContent > (this=0x55792f78) at xercesc/internal/IGXMLScanner.cpp:890 > 13 0x724c3760 in xercesc_4_0::IGXMLScanner::scanDocument > (this=0x55792f78, src=...) at xercesc/internal/IGXMLScanner.cpp:217 > 14 0x725158e3 in xercesc_4_0::SAX2XMLReaderImpl::parse > (this=0x55731828, source=...) at xercesc/parsers/SAX2XMLReaderImpl.cpp:409 > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org
[jira] [Commented] (XERCESC-2219) XMLReader constructor: memory leak when refreshRawBuffer() throws
[ https://issues.apache.org/jira/browse/XERCESC-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17613095#comment-17613095 ] Scott Cantor commented on XERCESC-2219: --- Another ABI change, this will have to be reverted and attacked a different way. Using internal static functions for cleanup in the interim releases is usually the best workaround for this kind of thing. > XMLReader constructor: memory leak when refreshRawBuffer() throws > - > > Key: XERCESC-2219 > URL: https://issues.apache.org/jira/browse/XERCESC-2219 > Project: Xerces-C++ > Issue Type: Bug >Affects Versions: 3.2.3 >Reporter: Roger Leigh >Assignee: Roger Leigh >Priority: Major > Fix For: 4.0.0, 3.2.4 > > > See https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37529 on GDAL > The backtrace of the exception that caused the memory leak was: > {noformat} > Catchpoint 1 (exception thrown), 0x75547672 in __cxa_throw () from > /lib/x86_64-linux-gnu/libstdc++.so.6 > (gdb) bt > 0 0x75547672 in __cxa_throw () from > /lib/x86_64-linux-gnu/libstdc++.so.6 > 1 0x724447c4 in xercesc_4_0::PosixFileMgr::fileRead (this= out>, f=, byteCount=, buffer=, > manager=0x556df730) >at xercesc/util/FileManagers/PosixFileMgr.cpp:160 > 2 0x724e6ec2 in xercesc_4_0::XMLReader::refreshRawBuffer > (this=0x557e49f8) at xercesc/internal/XMLReader.cpp:1891 > 3 0x724e70d4 in xercesc_4_0::XMLReader::XMLReader > (this=0x557e49f8, pubId=, sysId=0x55750920 u"/", > streamToAdopt=0x5574e838, from=, >type=xercesc_4_0::XMLReader::Type_General, > source=xercesc_4_0::XMLReader::Source_External, throwAtEnd=false, > calculateSrcOfs=false, lowWaterMark=100, > version=xercesc_4_0::XMLReader::XMLV1_0, >manager=0x556df730) at xercesc/internal/XMLReader.cpp:130 > 4 0x724ced75 in xercesc_4_0::ReaderMgr::createReader > (this=this@entry=0x557896d8, src=..., > refFrom=refFrom@entry=xercesc_4_0::XMLReader::RefFrom_NonLiteral, >type=type@entry=xercesc_4_0::XMLReader::Type_General, > source=source@entry=xercesc_4_0::XMLReader::Source_External, > calcSrcOfs=false, lowWaterMark=100) at ./xercesc/sax/InputSource.hpp:314 > 5 0x724cb0af in xercesc_4_0::IGXMLScanner::scanReset > (this=0x55789608, src=...) at xercesc/internal/IGXMLScanner2.cpp:1286 > 6 0x724c36e9 in xercesc_4_0::IGXMLScanner::scanDocument > (this=0x55789608, src=...) at xercesc/internal/IGXMLScanner.cpp:198 > 7 0x7250abaf in xercesc_4_0::AbstractDOMParser::parse > (this=0x7fffc2d0, source=...) at xercesc/parsers/AbstractDOMParser.cpp:545 > 8 0x724cbdbe in xercesc_4_0::IGXMLScanner::resolveSchemaGrammar > (this=0x55792f78, loc=0x557dd694 u"/", uri=0x55737180 u"`", > ignoreLoadSchema=) >at xercesc/internal/IGXMLScanner2.cpp:1895 > 0x724cce7c in xercesc_4_0::IGXMLScanner::parseSchemaLocation > (this=0x55792f78, schemaLocationStr=, > ignoreLoadSchema=false) at ./xercesc/framework/XMLBuffer.hpp:171 > 10 0x724cd182 in > xercesc_4_0::IGXMLScanner::scanRawAttrListforNameSpaces > (this=this@entry=0x55792f78, attCount=attCount@entry=9) at > xercesc/internal/IGXMLScanner2.cpp:1649 > 11 0x724c22cb in xercesc_4_0::IGXMLScanner::scanStartTagNS > (this=0x55792f78, gotData=@0x7fffc91f: true) at > xercesc/internal/IGXMLScanner.cpp:2213 > 12 0x724c3522 in xercesc_4_0::IGXMLScanner::scanContent > (this=0x55792f78) at xercesc/internal/IGXMLScanner.cpp:890 > 13 0x724c3760 in xercesc_4_0::IGXMLScanner::scanDocument > (this=0x55792f78, src=...) at xercesc/internal/IGXMLScanner.cpp:217 > 14 0x725158e3 in xercesc_4_0::SAX2XMLReaderImpl::parse > (this=0x55731828, source=...) at xercesc/parsers/SAX2XMLReaderImpl.cpp:409 > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org
[jira] [Commented] (XERCESC-2219) XMLReader constructor: memory leak when refreshRawBuffer() throws
[ https://issues.apache.org/jira/browse/XERCESC-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17613008#comment-17613008 ] Scott Cantor commented on XERCESC-2219: --- Roger LeighI believe this was applied, so can be resolved? > XMLReader constructor: memory leak when refreshRawBuffer() throws > - > > Key: XERCESC-2219 > URL: https://issues.apache.org/jira/browse/XERCESC-2219 > Project: Xerces-C++ > Issue Type: Bug >Affects Versions: 3.2.3 >Reporter: Roger Leigh >Assignee: Roger Leigh >Priority: Major > Fix For: 4.0.0, 3.2.4 > > > See https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37529 on GDAL > The backtrace of the exception that caused the memory leak was: > {noformat} > Catchpoint 1 (exception thrown), 0x75547672 in __cxa_throw () from > /lib/x86_64-linux-gnu/libstdc++.so.6 > (gdb) bt > 0 0x75547672 in __cxa_throw () from > /lib/x86_64-linux-gnu/libstdc++.so.6 > 1 0x724447c4 in xercesc_4_0::PosixFileMgr::fileRead (this= out>, f=, byteCount=, buffer=, > manager=0x556df730) >at xercesc/util/FileManagers/PosixFileMgr.cpp:160 > 2 0x724e6ec2 in xercesc_4_0::XMLReader::refreshRawBuffer > (this=0x557e49f8) at xercesc/internal/XMLReader.cpp:1891 > 3 0x724e70d4 in xercesc_4_0::XMLReader::XMLReader > (this=0x557e49f8, pubId=, sysId=0x55750920 u"/", > streamToAdopt=0x5574e838, from=, >type=xercesc_4_0::XMLReader::Type_General, > source=xercesc_4_0::XMLReader::Source_External, throwAtEnd=false, > calculateSrcOfs=false, lowWaterMark=100, > version=xercesc_4_0::XMLReader::XMLV1_0, >manager=0x556df730) at xercesc/internal/XMLReader.cpp:130 > 4 0x724ced75 in xercesc_4_0::ReaderMgr::createReader > (this=this@entry=0x557896d8, src=..., > refFrom=refFrom@entry=xercesc_4_0::XMLReader::RefFrom_NonLiteral, >type=type@entry=xercesc_4_0::XMLReader::Type_General, > source=source@entry=xercesc_4_0::XMLReader::Source_External, > calcSrcOfs=false, lowWaterMark=100) at ./xercesc/sax/InputSource.hpp:314 > 5 0x724cb0af in xercesc_4_0::IGXMLScanner::scanReset > (this=0x55789608, src=...) at xercesc/internal/IGXMLScanner2.cpp:1286 > 6 0x724c36e9 in xercesc_4_0::IGXMLScanner::scanDocument > (this=0x55789608, src=...) at xercesc/internal/IGXMLScanner.cpp:198 > 7 0x7250abaf in xercesc_4_0::AbstractDOMParser::parse > (this=0x7fffc2d0, source=...) at xercesc/parsers/AbstractDOMParser.cpp:545 > 8 0x724cbdbe in xercesc_4_0::IGXMLScanner::resolveSchemaGrammar > (this=0x55792f78, loc=0x557dd694 u"/", uri=0x55737180 u"`", > ignoreLoadSchema=) >at xercesc/internal/IGXMLScanner2.cpp:1895 > 0x724cce7c in xercesc_4_0::IGXMLScanner::parseSchemaLocation > (this=0x55792f78, schemaLocationStr=, > ignoreLoadSchema=false) at ./xercesc/framework/XMLBuffer.hpp:171 > 10 0x724cd182 in > xercesc_4_0::IGXMLScanner::scanRawAttrListforNameSpaces > (this=this@entry=0x55792f78, attCount=attCount@entry=9) at > xercesc/internal/IGXMLScanner2.cpp:1649 > 11 0x724c22cb in xercesc_4_0::IGXMLScanner::scanStartTagNS > (this=0x55792f78, gotData=@0x7fffc91f: true) at > xercesc/internal/IGXMLScanner.cpp:2213 > 12 0x724c3522 in xercesc_4_0::IGXMLScanner::scanContent > (this=0x55792f78) at xercesc/internal/IGXMLScanner.cpp:890 > 13 0x724c3760 in xercesc_4_0::IGXMLScanner::scanDocument > (this=0x55792f78, src=...) at xercesc/internal/IGXMLScanner.cpp:217 > 14 0x725158e3 in xercesc_4_0::SAX2XMLReaderImpl::parse > (this=0x55731828, source=...) at xercesc/parsers/SAX2XMLReaderImpl.cpp:409 > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org