step-examples/12-1c-syntax/In012.stp
Sources
- OCCT Transfer_TransferDeadLoop.hxx (uncovered class evidence)
Sender
deduced — OCCT uncovered-class sweep
Description
The transfer engine detects a dependency cycle (entity A references B references C references A) and raises a dead-loop exception. Bug-reporter language: "STEP file has cycle", "circular reference", "kernel detects loop".
Reproducer recipe
A `MAPPED_ITEM` whose `mapping_source` resolves through a chain that eventually re-references the original entity.
Expected kernel behavior
Detect cycle; reject the file; emit the cycle path in the diagnostic.
Notes
Synonyms: "circular dependency", "STEP cycle". Provenance tier: runtime-only; the bytes can encode a reference cycle, but the catalogued defect is the kernel's transfer-time watchdog firing (or failing to fire). Whether the kernel produces the dead-loop diagnostic vs. recursing forever is a runtime behavior, not a property of the file content. A behavioral test against a transfer engine is the appropriate venue. Synonyms: "STEP entity reference cycle", "circular references in STEP DATA", "kernel detects loop in STEP", "watchdog fires on STEP cycle", "dependency cycle entity references".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
runtime-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'DATA;')contains(b'HEADER;')count(b'ENDSEC;') >= 2
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* In012: Transfer watchdog fires: dependency cycle in entity references; OCCT Transfer_TransferDeadLoop.hxx (uncovered class evidence); the transfer engine detects a dependency cycle â entity A references B references C references A â and raises a dead-loop exception; defect: a MAPPED_ITEM whose mapping_source resolves through a chain that eventually re-references the original entity, creating a cycle; receiver must detect cycle and reject the file; emit the cycle path in the diagnostic: A->B->C->A; never recurse forever on a circular reference; must not silently accept a cyclic STEP file with empty result; bug-reporter synonyms: STEP file has cycle, circular reference, kernel detects loop, STEP entity reference cycle, circular references in STEP DATA, watchdog fires on STEP cycle, dependency cycle entity references; GEOMETRIC_CURVE_SET IS NOT used â reference cycle is the defect carrier */ 3HEADER; 4FILE_DESCRIPTION(('In012'),'2;1'); 5FILE_NAME('In012.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9/* Cyclic reference chain: #10 -> #11 -> #12 -> #10 */ 10/* REPRESENTATION_MAP: (origin, mapped_rep) */ 11#10=REPRESENTATION_MAP(#20,#11); 12#11=REPRESENTATION_MAP(#21,#12); 13#12=REPRESENTATION_MAP(#22,#10); 14/* CARTESIAN_POINT origins used as placement proxies */ 15#20=CARTESIAN_POINT('origin_a',(0.0,0.0,0.0)); 16#21=CARTESIAN_POINT('origin_b',(1.0,0.0,0.0)); 17#22=CARTESIAN_POINT('origin_c',(2.0,0.0,0.0)); 18ENDSEC; 19END-ISO-10303-21;