You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2021/03/18 19:31:00 UTC

[jira] [Assigned] (DAFFODIL-2385) newVariableInstance has issues with suspensions during unparse

     [ https://issues.apache.org/jira/browse/DAFFODIL-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Beckerle reassigned DAFFODIL-2385:
---------------------------------------

    Assignee: Josh Adams

> newVariableInstance has issues with suspensions during unparse
> --------------------------------------------------------------
>
>                 Key: DAFFODIL-2385
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2385
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End
>    Affects Versions: 2.7.0
>            Reporter: Josh Adams
>            Assignee: Josh Adams
>            Priority: Major
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)