[ 
https://issues.apache.org/jira/browse/DAFFODIL-2662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17492932#comment-17492932
 ] 

Mike Beckerle commented on DAFFODIL-2662:
-----------------------------------------

Can be reproduced (for those with access) using 
[email protected]:mbeckerle/p8-schema.git branch 
daf-2662-deadlock. 

Suggests the changes in DAFFODIL-2626 (note not a typo. This one is 2662, that 
one is 2626) aggravated the unparser deadlock behavior for this test. 

We may in fact need the "just turn off alignment fill" flag discusssed in that 
(now closed) ticket. 

 

> cyclic deadlock regression
> --------------------------
>
>                 Key: DAFFODIL-2662
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2662
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End, Middle "End"
>    Affects Versions: 3.3.0
>            Reporter: Mike Beckerle
>            Priority: Major
>
> Affects 3.3.0-SNAPSHOTS since 9043425760dae277eff36087a2e715c70793db9c
> (alignment/deadlock fix)
> I got this backtrace running P8 testResync1c in roundTrip="onePass" mode. 
>  
> {code:java}
> org.apache.daffodil.tdml.TDMLExceptionImpl: (Implementation: daffodil) 
> SuspensionDeadlockException: Runtime Schema Definition Error: 
> Expressions/Unparsers are circularly deadlocked (mutually defined):
>  - AlignmentFillUnparserSuspendableOperation for sequence[1]
>  - AlignmentFillUnparserSuspendableOperation for sequence[1]
>  - AlignmentFillUnparserSuspendableOperation for sequence[1]
>  - AlignmentFillUnparserSuspendableOperation for messagePriority
>  - AlignmentFillUnparserSuspendableOperation for routingData
>  - SuspendableExpression(dfdl:newVariableInstance, expr={ 
> CDSHeader/messageLength })
>  - AlignmentFillUnparserSuspendableOperation for length
>  - target length for TOMSMessage expr <EvaluatableExpression 
> eName='TOMSMessage' expr='{                        xs:unsignedInt(            
>               $p8:messageLength - ( 15 + dfdl:valueLength( ../TOMSHeader, 
> "bytes" ))                           ) }' />
>  - AlignmentFillUnparserSuspendableOperation for sequence[1]
>  - SimpleTypeRetryUnparserSuspendableOperation for messageLength
>  - AlignmentFillUnparserSuspendableOperation for sequence[1]
>  - AlignmentFillUnparserSuspendableOperation for TTL
> Schema context: messageLength Location line 60 column 8 in 
> file:/home/mbeckerle/Documents/dataiti/git/dfdl-schemas/dfdl-p8/target/classes/com/owlcyberdefense/p8/xsd/headers.dfdl.xsd
> Data location was preceding byte 124    at 
> org.apache.daffodil.tdml.TDMLException$.apply(TDMLException.scala:32)
>     at 
> org.apache.daffodil.tdml.ParserTestCase.doOnePassRoundTripUnparseExpectSuccess(TDMLRunner.scala:1145){code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to