Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-74

DOMCount fails on xml files that contains DTD

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Incomplete
    • 1.4
    • None
    • None
    • Operating System: Solaris
      Platform: Sun
    • 2079

    Description

      When I ran the DOMCount example with -n personal.xml
      where personal.xml is the file from samples/data directory,
      I get the following error:

      Program received signal SIGBUS, Bus error.
      0xef5ffc88 in DTDValidator::scanExtSubsetDecl (this=0xeffffba8,
      inIncludeSect=false) at DTDValidator2.cpp:2648
      2648 fDocTypeHandler->endExtSubset();
      (gdb) where
      #0 0xef5ffc88 in DTDValidator::scanExtSubsetDecl (this=0xeffffba8,
      inIncludeSect=false) at DTDValidator2.cpp:2648
      #1 0xef5fc9c4 in DTDValidator::scanDocTypeDecl (this=0x2dc10,
      reuseValidator=false) at DTDValidator2.cpp:1684
      #2 0xef5eef60 in DTDValidator::scanDTD () at DTDValidator.cpp:791
      #3 0xef6c4b0c in XMLScanner::scanStartTag (this=0x3c, gotData=@0x4f530)
      at XMLScanner.cpp:1907
      I compiled the xml source and the sample with the following setting:

      xml - 3.1.1 (tried with both xerces-c tar file and xml4c tar file and got the
      same result).

      Solaris 2.6
      gcc with g++ - 2.7.2.3
      with -g and not optimized. (no -O).
      single threaded.
      The compiler options from the build log looks like:
      g++ -fPIC -fhandle-exceptions -instances=static -DSOLARIS -DAPP_NO_THREADS -c -g
      -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER

      I got one error during compilation in RangeImpl.cpp : 1621
      and I changed it from
      if (fRemoveChild == node) return; to

      if (fRemoveChild.fImpl == node) return;
      It compiled file and then I compiled the sample fine too.

      When I run the DOMCount, DOMPrint against the personal.xml
      samples/data directory or any xml files that contains DTD
      I get this bus error.

      When I run it against a xml file that does not have any DTD, it works fine.
      I appreciate your help on this.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lthiruve@tivoli.com Lakshmi Thiruvengada
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: