Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-470

Daffodil crashes when a test results in an empty infoset

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: s6
    • Fix Version/s: s10
    • Component/s: Back End
    • Labels:
      None
    • Environment:
      CentOS 6, OpenJDK 1.6

      Description

      In daffodil-test/src/test/scala-debug/daffodil/section13/nillable/TestNillableDebug.scala, test_empty_infoset causes Daffodil to crash, giving this stack trace:

      UTF-8 text starting at byte 0 is: (catblablahblah)
      Data (hex) starting at byte 0 is: (0x636174626C61626C6168626C6168)
      [info] - test_empty_infoset *** FAILED ***
      [info] java.lang.IndexOutOfBoundsException: 0
      [info] at scala.collection.LinearSeqOptimized$class.apply(LinearSeqOptimized.scala:51)
      [info] at scala.collection.immutable.List.apply(List.scala:76)
      [info] at daffodil.tdml.DFDLInfoset.contents(TDMLRunner.scala:825)
      [info] at daffodil.tdml.Infoset.contents(TDMLRunner.scala:820)
      [info] at daffodil.tdml.ParserTestCase.verifyParseInfoset(TDMLRunner.scala:338)
      [info] at daffodil.tdml.ParserTestCase.runParseExpectSuccess(TDMLRunner.scala:426)
      [info] at daffodil.tdml.ParserTestCase.runProcessor(TDMLRunner.scala:300)
      [info] at daffodil.tdml.TestCase.run(TDMLRunner.scala:254)
      [info] at daffodil.tdml.DFDLTestSuite.runOneTestNoTDMLValidation(TDMLRunner.scala:134)
      [info] at daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:114)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jadams Joshua Adams
                Reporter:
                jadams Joshua Adams
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Tasks