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/04/15 17:15:43 UTC

[jira] Closed: (XERCESC-1194) MemBufInputSource constructor produces a core on linux but not on solaris (was:Bugzilla#28385)

Message:

   The following issue has been closed.

   Resolver: Neil Graham
       Date: Thu, 15 Apr 2004 8:13 AM

As Jesse points out, this is not a legitimate bug.  
---------------------------------------------------------------------
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: Closed
   Priority: Minor
 Resolution: WON'T FIX

    Project: Xerces-C++
 Components: 
             DOM
   Versions:
             2.4.0

   Assignee: 
   Reporter: Shane Curcuru

    Created: Wed, 14 Apr 2004 11:11 AM
    Updated: Thu, 15 Apr 2004 8:13 AM
Environment: any linux; not on solaris

Description:
(Manually transferred from Bugzilla#28385  Please address questions to original reporter jmf@abysal.com)

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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org