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/14 20:12:48 UTC

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

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
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:11 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


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

Posted by "David Bertoni (JIRA)" <xe...@xml.apache.org>.
     [ 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 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

-- 
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] Closed: (XERCESC-1194) MemBufInputSource constructor produces a core on linux but not on solaris (was:Bugzilla#28385)

Posted by ji...@apache.org.
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


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

Posted by ji...@apache.org.
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 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


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

Posted by "Rollin Weeks (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESC-1194?page=comments#action_58626 ]
     
Rollin Weeks commented on XERCESC-1194:
---------------------------------------

I'm getting compile errors on RedHat 7.3 with GCC 3.4.1 trying to compile OpenPIX with XERCES.  The DocumentParser.cpp function (in VXI) calls MemBufInputSource for validation of a local document in a context where it needs to create a copy of the derived object.  The compiler says this is illegal, because the base class (inputSource) copy and assignment constructors are hidden.  None of the c++ compiler flags seem to make any difference for this error.

Rollin Weeks

> 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 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

-- 
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