The following comment has been added to this issue: Author: Jesse Pelton Created: Wed, 14 Apr 2004 11:22 AM Body: I think this is not a bug. See http://xml.apache.org/xerces-c/faq-parse.html#faq-6. --------------------------------------------------------------------- View this comment: http://issues.apache.org/jira/browse/XERCESC-1194?page=comments#action_35028
--------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/XERCESC-1194 Here is an overview of the issue: --------------------------------------------------------------------- Key: XERCESC-1194 Summary: MemBufInputSource constructor produces a core on linux but not on solaris (was:Bugzilla#28385) Type: Bug Status: Unassigned Priority: Minor Project: Xerces-C++ Components: DOM Versions: 2.4.0 Assignee: Reporter: Shane Curcuru Created: Wed, 14 Apr 2004 11:11 AM Updated: Wed, 14 Apr 2004 11:22 AM Environment: any linux; not on solaris Description: (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 --------------------------------------------------------------------- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]