Repository navigation
COACCT01: recursive PERFORM without end stops at the PERFORM stack check on both sides (Part of #6967) - #6997
Merged
Merged
Conversation
…eck on both sides (Part of #6967) A failed MQCLOSE of the reply or error queue re-closes the input queue and PERFORMs 8000-TERMINATION again, without end. A case with perform_stack_check compiles the oracle with -fstack-check (libcob stops at 255 PERFORM frames); a det port with a PERFORM cycle stops at the same depth (PerformDepthExceeded); the scenario is judged up to the stop (register C20). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This was referenced Oct 29, 2026
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.
Part of #6967 (and #6072). CardDemo's COACCT01 8000-TERMINATION never resets a queue's open flag, so a failed MQCLOSE of the reply or error queue re-closes the closed input queue, takes WHEN OTHER and PERFORMs 8000 again, without end. Plain cobc died on SIGSEGV and the port on StackOverflowError, so those arms were unstated (register C20).
What changed
"perform_stack_check": truecompiles with-fstack-check; libcob then stops deterministically ("stack overflow, possible PERFORM depth exceeded", 255 PERFORM frames, rc 1) (equivalence_common.compile_options).det/program.pyperforms_cyclically(a PERFORM-graph cycle) makes the dispatcher throwPerformDepthExceededat the same depth. Acyclic ports are byte-identical.equivalence_cics.x6_judged).close-reply-fails(MQCLOSE nth 2) andclose-error-fails(nth 3), both reason 2009. Register C20 states the assumption: IBM leaves a recursive PERFORM unpredictable, and the stop and its depth are the oracle's, not z/OS's.Evidence
det_port.py run carddemo-coacct01: PROVED, 18 scenarios, 136/136 and 138/138 events equal (java and java-facade). Threshold found by measurement: one frame earlier or later leaves one MQCLOSE of difference.det_port.py check: 179/182 ports unchanged; the 3 listed (coacct01, codate01, copaua0c, the programs with a PERFORM cycle) re-proved: codate01 and copaua0c PROVED. No existing scenario reaches the guard.test_det_recursive_perform.py(cycle detection, opt-in flag): 6 passed, plainpytestfrom/tmptoo.audit_check.pyall clear;pr_gates --fast9/9,--ratchets9/9. det_sweep_coverage ledger refreshed for coacct01.Cross-repo: none. Overlap: PR #6952 (
det/program.py) and the equivalence_cics workers; origin/main merged before the push, change kept small there.Class / Sibling gaps
Class: an unbounded recursive PERFORM, whose two sides die by different, depth-dependent means (SIGSEGV vs StackOverflowError), so the event streams differ in length. Handled: COACCT01 (both arms). Sibling gaps: CODATE01 has the same shape (its reply/error close arms); it needs
perform_stack_checkand two scenarios cloned from this case (the port guard already applies). Thezos_probes.jsonprobec20-recursive-perform-returnsstill does not probe the endless case (z/OS only). No other burned program has a PERFORM cycle except COPAUA0C, whose scenarios do not reach the depth.Checklist: partial [c:5981f543] -- CODATE01's two close arms (same flag and scenarios) and the ladder/ledger refresh after them.
Remaining slices
close-reply-fails/close-error-failsand ladder refresh.Lessons for agents
-fstack-checkmakes libcob stop a runaway PERFORM at 255 frames with rc 1; the port's top-levelperform(0, n-1)is a frame the oracle has no equivalent of, so the guard isperformDepth >= 255. A cycle of two PERFORM frames hides a one-frame error: confirm the event count, not only "stops".det_port.py checklists a port when the translator emits new text for it, not only when it behaves differently; re-prove just those.🤖 Generated with Claude Code