Skip to content

Injected abend takes the exit of the level that issued the command (Part of #6882) - #6884

Merged
squid-shepherd[bot] merged 5 commits into
mainfrom
churn/6882-20261028T1040Z
Oct 28, 2026
Merged

squid-shepherd[bot] merged 5 commits into
mainfrom
churn/6882-20261028T1040Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6882 (item 2: a LINKed program's own HANDLE ABEND exit for an injected abend). Checklist: partial -- the LINKed HANDLE ABEND item is done here; the other items are separate slices.

What

The Java CicsTask resolved an injected abend (CMD FILE NTH -1 0 ABCODE) against the root task, so the exit search started at level 1 instead of the level of the program that issued the command. A LINKed program's own active HANDLE ABEND exit was never found: the root's exit (or none) took the abend, and the callee's port, which reads task.abendExit() on its own task, saw null.

Fix: the root records the task whose program is executing (running, set around programs.run in link() / run(), restored in finally); injected() runs abend on that task and sets unwoundTo there. IBM: the search starts "at the logical level of the application program in which the abend occurred".

Proof

  • New unit test test_an_injected_abend_goes_to_the_exit_of_the_level_that_issued_the_command (callee exit / unwind to the caller / none); fails without the fix.
  • New CBSA scenario delete-customer-read-abends-afcr in cbsa-bnk1dcs (INQCUST, linked by DELCUS, linked by BNK1DCS, abends AFCR on its READ): 9/9 events equal, cbsa-bnk1dcs PROVED with --faults all.
  • Re-proved with det_port.py run --faults all: cbsa-inqacccu, cbsa-xfrfun, cbsa-dbcrfun, cbsa-inqacc, cbsa-inqcust, zecs-zecs000, carddemo-cardupdate: all PROVED.

Class / Sibling gaps

Class: an injected abend resolved against the wrong task level. Every command routed through CicsTask.injected with an ABCODE plan shares the fix (file control READ/READNEXT/READPREV/STARTBR/ENDBR/WRITE/REWRITE/DELETE; LINK's abend plan fires in the caller and was already right). Sibling gaps: the planned Db2 AD2Z abend (X73) is injected on the stub/translator side, not through injected; no burned program is known to need it at a LINKed level, so left unchanged. The other #6882 items (SET TERMINAL, container/RUN TRANSID faults, GenApp seams) are different mechanisms.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6884 @ e8e3103: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40676593264/job/122789356017
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases genapp-lgsetup --work /tmp/gitgalaxy-scratch/ci-digest/sweep
det cases not proven: genapp-lgsetup
errors:
det genapp-lgsetup NOT PROVEN not proven; 2 scenarios cover 1/1 paragraphs and 2/2 branches
##[error]Process completed with exit code 1.
log tail:
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
With the provided path, there will be 180 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-ledger.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 155979
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 433342ca7b0bded2dc5d84d92629c09ca1d864a69aabda317cdc3a277910de80
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12811674444
Artifact det-sweep-ledger has been successfully uploaded! Final size is 155979 bytes. Artifact ID is 12811674444
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40676593264/artifacts/12811674444
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/c82879b0-046e-40ac-ae6d-b1458d5922f6' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 28, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (38a4b69) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-shepherd
squid-shepherd Bot disabled auto-merge October 28, 2026 11:42
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 28, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 11:45
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant