Skip to content

det: ca-xctl-versions length-range: XCTL COMMAREA bytes past the DTO are refused (#4009); the COMP-5 VALUE half is fixed #4501

Closed

Description

@squid-protocol

Problem

Found while proving #4413 through cics-crucible. With RECEIVE now translated, the det translator ports ca-xctl-versions CAXA whole (11/11 statements, 0 holes), and 3 of its 4 scenarios pass the hand-written logs. The fourth, length-range, fails:

ca-xctl-versions/length-range/java-ported task 1 (CA02) event 2: length 32767 expected, got -12534

CAXA declares 01 WS-BIGLEN PIC S9(4) COMP-5 VALUE 32767. and issues EXEC CICS XCTL PROGRAM('CAXB') COMMAREA(WS-BIG) LENGTH(WS-BIGLEN). The det port reads the item as Cobol.num(f6_WS_BIGLEN, CS).intValue() over Field.binary(s_WS_BIGLEN, 0, 4, 0, true, true) and passes -12534, not 32767. A COMP-5 halfword holds 32767 (IBM: COMP-5 is not limited by its PICTURE), and the cobol-stub side passes the same scenario.

Repro

Det-translate the case's programs onto the case's generated project (the overlay script from #4413's PR, or port_runner run --backend det), then:
python tests/tools/cics_crucible.py --cases ca-xctl-versions --sides java-ported --ports <det overlays> --offline

Acceptance

  • A COMP-5 item whose VALUE exceeds its PICTURE's digits keeps its value in the det port (image and read), as the stub side does.
  • ca-xctl-versions length-range passes with the det port.

Activity

  1. added
    bug
    legacy-modernization
    on Oct 5, 2026
  2. changed the title [-]det: S9(4) COMP-5 VALUE 32767 reads back as -12534 (XCTL LENGTH in ca-xctl-versions)[/-] [+]det: ca-xctl-versions length-range: XCTL COMMAREA bytes past the DTO are refused (#4009); the COMP-5 VALUE half is fixed[/+] on Oct 6, 2026
  3. squid-protocol commented on Oct 6, 2026

    @squid-protocol
    OwnerAuthor

    Retitled: the COMP-5 half (S9(4) COMP-5 VALUE 32767 read back as -12534) is fixed by #4571 (COMP-5 now holds its native binary capacity, little-endian as GnuCOBOL does). What remains is the length-range scenario itself: CAXA passes LENGTH 32767 over a COMMAREA larger than the DTO, which the det port now refuses by name ("commarea bytes past DTO", tracked under #4009) instead of passing a wrong length. This issue stays open for modelling those bytes and proving length-range with the det port.

    🤖 Generated with Claude Code

  4. added
    scope:core
    era:2
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugera:2legacy-modernizationpriority: mediumscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions