step-examples/12-1c-syntax/Ls055.stp
Sources
- Pattern-mined from ricosjp/ruststep combinator.rs::comment (`tag("/*") ... tag("*/")` fails if the closer is missing) (Apache-2.0/MIT — pattern only, no bytes copied)
- ISO 10303-21 §6.3 (comment syntax)
Description
ISO 10303-21 §6.3 block comments are delimited by an opening `/*` and a closing `*/`. A parser that requires the closer fails if it is missing; an unterminated comment consumes every byte to end-of-file, silently swallowing the section terminators (`ENDSEC` / `END-ISO-10303-21;`). The fixture opens a comment in the DATA section after a valid CARTESIAN_POINT and never closes it, so the remainder of the file — including the close bookend — is eaten. A conformant reader must reject with an unterminated-comment diagnostic; it must not hang or silently drop the tail.
Reproducer recipe
`#1=CARTESIAN_POINT('origin',(0.,0.,0.));` followed by `/* note ...` with no closing `*/` before EOF.
Expected kernel behavior
Reject with an unterminated-comment diagnostic; never hang, and never silently drop the swallowed file tail.
Notes
**See also**: Ls056. **OCC behavior**: rejects with a parse diagnostic (`Undefined Parsing: ... Incorrect...`) on both `occt_heal_on`/`occt_heal_off` and `gmsh_autofix_on`/`gmsh_autofix_off` — matches this entry's own "Expected kernel behavior" (reject with an unterminated-comment diagnostic; never hang, never silently drop the tail). Synonyms: "unterminated comment", "missing */ closer", "comment runs to EOF", "STEP comment never closed", "dangling /* opener". Provenance tier: bytes-only. DRIFT audit 2026-07-12: live-verified (macOS OCP/OCCT 7.8.1, matching CI-Linux) — corrected the placeholder `empty/empty` guess to the observed `reject/reject`, which is the spec-conformant behavior this entry asks for.
Expected validation
occt=reject/reject gmsh=reject ifc=schema_n/a
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
count(b'/*') > count(b'*/')not_contains(b'END-ISO-10303-21;')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Ls055: unterminated block comment consumes the rest of the file; ISO 10303-21 6.3 block comments open with slash-star and close with star-slash; the fixture opens a comment in the DATA section and never closes it, so every byte to end-of-file is consumed as comment text, silently swallowing the ENDSEC and END-ISO-10303-21 section terminators; expected kernel behavior: reject with an unterminated-comment diagnostic; the reader must not hang or silently drop the file tail; synonyms: unterminated comment, missing star-slash closer, comment runs to EOF, STEP comment never closed, dangling slash-star; the unterminated comment is the defect carrier */ 3HEADER; 4FILE_DESCRIPTION(('Ls055'),'2;1'); 5FILE_NAME('Ls055.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 10/* Defect: this comment is opened but NEVER closed. A conformant reader 11 must reject with an unterminated-comment diagnostic (ISO 10303-21 6.3). 12 From the opening slash-star to end of file everything is consumed as 13 comment text, including what should have been the section terminators. 14#2=DIRECTION('never-parsed',(1.,0.,0.));