Repository navigation
det: a LINKed program's COMMAREA writes survive its abend (#4534) - #4541
Merged
Merged
Conversation
A local LINK passes the caller's own storage, so what the linked program wrote before an abend ended it stays visible to the caller (e.g. in the caller's HANDLE ABEND exit). The det port copied the COMMAREA back (caBack) only on RETURN / GOBACK. Every abend that ends the program -- ABEND, an unhandled condition's default abend, an abend below unwound past a LINK -- now ends it through abended(), which runs caBack first at a LINK level (level > 1). Level 1 (a transaction, a DPL mirror task) is unchanged: no local caller shares its COMMAREA. cics-crucible hc-abend-link sub-unhandled now passes on the det port. Closes #4534 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
Contributor
squid-protocol
marked this pull request as ready for review
October 6, 2026 06:57
This was referenced Oct 6, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4534
Problem
A local LINK passes the caller's own storage, so whatever the LINKed program wrote to its COMMAREA before an abend ended it stays visible to the caller (for example in the caller's HANDLE ABEND exit). The det port copied the COMMAREA back (
caBack) only on RETURN or GOBACK, so those writes were lost. This was cics-cruciblehc-abend-linksub-unhandled:mXAEYHccame out wheremXAEYHcswas expected.Fix (det/cics.py, det/program.py)
Every abend that ends the program now ends it through a new member
abended(), which runscaBackfirst when the program runs at a LINK level (task.level() > 1). That covers three cases:EXEC CICS ABENDwith no exit at this levelcondition())Level 1 (a transaction, or a DPL mirror task) is unchanged, because no local caller shares its COMMAREA. Remote DPL semantics stay out of scope. The generator's
handleLinkfaçade is the DPL mirror path at level 1, so it doesn't share this path and is unchanged.Evidence
hc-abend-linkis 5/5 java-ported (was 4/5). Every other case and every fail reason is unchanged.cics_crucible --cion pinned v0.2.0: 152 pass / 44 fail, the same as main (rc 0).proof_sweep.py --det-only --skip-db2): "sweep: as expected".pr_gates.py --ratchets: 6/6 pass, including port-surface.pr_gates.py: 7/7 pass, including golden and the full suite. After the last merge of main,--fastpasses 5/5 and the ratchets pass 6/6.test_det_translate.pyfail without the fix.🤖 Generated with Claude Code
https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR