Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2385

newVariableInstance has issues with suspensions during unparse

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.0
    • 3.1.0
    • Back End
    • None

    Description

      While doing some work for a customer schema I ran into an issue where I was using newVariableInstance and setting a variable based on the value of another element. This other element has an outputValueCalc that performs dfdl:valueLength() on a section of data.

      I believe what is happening is that the newVariableInstance starts its scope and tries to set its variable but suspends until the dfdl:valueLength() call can be resolved. In the meantime there is another call to NVI and setVariable on the same variable which results in the variable being set twice and causing an error. Removing the outputValueCalc resolves this issue, which leads me to believe that the suspension is resulting in the variable stack getting clobbered.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jadams_tresys Josh Adams
            jadams_tresys Josh Adams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment