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

Segmentation fault in getPooledString

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Invalid
    • 2.7.0
    • None
    • DOM
    • AIX 6.1, powerpc, IBM XL C/C++ for AIX, V10.1

    Description

      Segmentation fault in getPooledString after call to 'createSPE'.

      ---------------------------------------------------------------------
      ...
      // This string hasn't been seen before. Add it to the pool.
      *pspe = spe = createSPE(in, fDoc);
      return spe->fString;
      }
      ---------------------------------------------------------------------

      Reproducible in my environment unless built with debugging symbols (-d).

      Steps to reproduce:

      • build xerces-c_2_7_0 on AIX 6.1 with IBM XL C/C++ for AIX, V10.1 (32 or 64 bit)
      • build sample programs
      • execute for example CreateDOMDocument to get segfault

      $dbx -d 10000 -C core
      Type 'help' for help.
      [Object file is not specified. Using "CreateDOMDocument" as an object file]
      warning: The core file is not a fullcore. Some info may
      not be available.
      [using memory image in core]
      reading symbolic information ...

      Segmentation fault in getPooledString__Q2_11xercesc_2_713DOMStringPoolFPCUs at 0xd50d8e24
      0xd50d8e24 (getPooledString__Q2_11xercesc_2_713DOMStringPoolFPCUs+0xa4) 907f0000 stw r3,0x0(r31)
      (dbx) where
      getPooledString__Q2_11xercesc_2_713DOMStringPoolFPCUs() at 0xd50d8e24
      DOMDocumentImpl.getPooledString(const unsigned short*)() at 0xd4e88d70
      DOMElementImpl.DOMElementImpl(xercesc_2_7::DOMDocument*,const unsigned short*)() at 0xd50e8fa8
      DOMElementNSImpl.DOMElementNSImpl(xercesc_2_7::DOMDocument*,const unsigned short*,const unsigned short*)() at 0xd50e77a4
      DOMDocumentImpl.createElementNS(const unsigned short*,const unsigned short*)() at 0xd4e7aec4
      DOMDocumentImpl.DOMDocumentImpl(const unsigned short*,const unsigned short*,xercesc_2_7::DOMDocumentType*,xercesc_2_7::MemoryManager
      *)() at 0xd4e7acf0
      DOMImplementationImpl.createDocument(const unsigned short*,const unsigned short*,xercesc_2_7::DOMDocumentType*,xercesc_2_7::MemoryMa
      nager*)() at 0xd4e908c4
      unnamed block in main(argC = 1, = "/\362)^P"), line 140 in "CreateDOMDocument.cpp"
      unnamed block in main(argC = 1, = "/\362)^P"), line 140 in "CreateDOMDocument.cpp"
      main(argC = 1, = "/\362)^P"), line 140 in "CreateDOMDocument.cpp"

      Attachments

        Activity

          People

            Unassigned Unassigned
            olov.brotell@se.consafelogistics.com Olov Brötell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: