[ http://issues.apache.org/jira/browse/XERCESC-1194?page=comments#action_58629 ] David Bertoni commented on XERCESC-1194: ----------------------------------------
Adding a comment to a closed bug is not how you report a problem. Please post a message to the mailing list, or create a new bug report, and attach all of the information necessary to reproduce the problem. > MemBufInputSource constructor produces a core on linux but not on solaris > (was:Bugzilla#28385) > ---------------------------------------------------------------------------------------------- > > Key: XERCESC-1194 > URL: http://issues.apache.org/jira/browse/XERCESC-1194 > Project: Xerces-C++ > Type: Bug > Components: DOM > Versions: 2.4.0 > Environment: any linux; not on solaris > Reporter: Shane Curcuru > Priority: Minor > > (Manually transferred from Bugzilla#28385 Please address questions to > original reporter [EMAIL PROTECTED]) > There is a possible bug in Xerces-C 2.4.0 on linux platforms. This doesn't > occur with solaris. > The next small program code generates a segmentation fault: > #include <xercesc/util/PlatformUtils.hpp> > #include <xercesc/util/XMLString.hpp> > #include <xercesc/dom/DOM.hpp> > #include <xercesc/framework/MemBufInputSource.hpp> > static const char *xml_buff = > "<?xml version='1.0' encoding='ISO-8859-1' ?><root></root>"; > using namespace xercesc; > int main( int argc, char *argv[] ) > { > XMLPlatformUtils::Initialize( "es_ES" ); > MemBufInputSource > memDoc( (XMLByte *) xml_buff, strlen( xml_buff ), "tmp.xml", false ); > XMLPlatformUtils::Terminate(); > return 0; > } > If I alloc the MemBufInputSource with new, there is no problem. > Thanks and best regards -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]