Repository navigation
det-port: a LINKed typed COMMAREA no longer rewrites the sign of an untouched field (Fixes #7485) - #7588
Conversation
…eld the program never touched (Part of #7485) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #7588 @ 3c223c1: 2 failed check(s) == full-suite (failure) -- real == full-suite part 1/3 (failure) -- real |
…e 121st to name case.json (Part of #7485) The suite_select planner caps name hits at 120; the word case.json in this test pushed asynccc-crdtchk and zecs-zecs001 case.json plans to full. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (639ca70) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
1 similar comment
|
No description provided. |
Fixes #7485. Part of the survivor work on mutant
eea30fe38b(itsequivalentverdict is refuted by this cause).What
A det port's typed COMMAREA handling read signed DISPLAY fields (
fill_/out_, throughCobol.num->Zoned.operand, GnuCOBOL's PUT_SIGN) from the same storage whose bytes then travel to the other program. A read of a field the program never touched (spaces) wrote a sign into it. Three sites, one mechanism:program.pycaBack(LINKed callee,task.linkArea()): the storage is copied to the link area BEFORE the typedfill_.program.pyhandleCall(CALL BY REFERENCE areas):areas_outruns before thefill_of the objects.cics_program.pyLINK sender: the DTO is read from a secondCobol.commarea(...)copy, so the bytes passed by reference (w.bytes) are not rewritten (found by the new e2e test: after the callee fix the sender still sent{).Class / Sibling gaps
Class: a typed-DTO codec read (
fill_/out_) that mutates the storage it reads (PUT_SIGN on a signed DISPLAY field holding non-digits), next to a raw-bytes copy out of that same storage. Members fixed here: LINK callee write-back, CALL areas write-back, LINK sender. Tests cover overpunch trailing (S9(10)V99),SIGN LEADING,SIGN TRAILING SEPARATE,SIGN LEADING SEPARATE(static ordering test plus e2e against GnuCOBOL with the sender sending spaces; 8 pass, all 8 fail without the fix).Sibling gaps (not fixed here; read the program's OWN storage, so the effect is on the program's later reads, not a returned area):
cics.py:772(out_{cls}({f}.storage(), ...), RETURN/XCTL-style DTO of a program's own field) andgen.py:3092(out_{cls}of a CALL argument), plusin_after-LINK/areas_inpaths untouched. Whether either reproduces on a burned-estate program is unchecked; CBSA ABNDPROC / UPDACC (burned) are the programs that needed this fix. Evidence is GnuCOBOL, not z/OS.Evidence
tests/cobol_mainframe/test_link_commarea_untouched_sign_7485.py: 4 static pass;EQUIVALENCE_E2E=18 pass (Docker GnuCOBOL), 8 fail on origin/main code.test_link_commarea_bytes_4806.pye2e (same file area) still passes.det_port.py check: 167 of 262 ports changed (all LINKed/CALLed programs with a typed area, 2-12 lines each: the reordered write-back). All 167 re-proved withdet_port.py runagainst GnuCOBOL: 167 PROVED, 0 failed.pr_gates --fast: 9/9 pass;--ratchets --only-ratchets timepass; pinned ruff 0.17.2 format clean; plainpytestfrom/tmppasses. The static test isslow-marked (its module fixture builds the generated project once, ~17 s).gitgalaxy/coreorstandardschange; the translator is not a golden input).Cross-repo
None.
Lessons for agents
01 DFHCOMMAREA.written inline in the source: the CICS stub finds DFHCOMMAREA by scanning the source text (a COPY'd one SIGSEGVs).fill_/out_reads mutate the storage they read (PUT_SIGN): any raw-bytes copy of that storage must happen before, or from a copy of, the typed read.🤖 Generated with Claude Code