Pf024 — Self-intersection-healing tool enters infinite loop on `EDGE_LOOP` with crossed diagonals (out-of-range split index)

§12.10 (sub-class: multi-pass-healing)

P2 — spec deviation (no data loss)

crash performance

Sources

Description

Intersection-healing algorithm could infinite-loop on certain edges because a split-index range check was missing. Common trigger: an `EDGE_LOOP` with self-intersecting diagonals; for example four edges A→C, B→D, A→B, C→D in cross order forming an X-shape — exercises the missing bound on the split index.

Reproducer recipe

face whose intersection-tool encounters out-of-range split.

Expected kernel behavior

Heal and accept: bounded iteration with index range guard; coerce out-of-range indices to a safe ceiling, or reject with E_INDEX_OUT_OF_RANGE. Must not crash. Must not infinite loop.

Notes

Validation observed: this is a deliberately scaled-down representative; the structural pattern is present but the production-scale resource exhaustion / catastrophic timing is not exercised at fixture size. To trigger the documented kernel-crash, multiply the entity-replication factor by ~10^N as noted in the reproducer recipe. Provenance tier: runtime-only (Q5 reclassification 2026-07-01).

Expected validation

occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a

Provenance tier

runtime-only — defect not fully embodied in fixture bytes.

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Pf024: EDGE_LOOP with crossed diagonals forming X-shape: A→C, B→D, A→B, C→D; intersection-healing split-index range check missing; healer infinite-loops on out-of-range split index; the defect entity is emitted but sits unreachable from the shape-rep root (product chain roots a GEOMETRIC_CURVE_SET stub), so OCC loads only a 1-vertex stub (shape(1)); byte-present but oracle-invisible to the load-time shape-count oracles */
3HEADER;
4FILE_DESCRIPTION(('Pf024'),'2;1');
5FILE_NAME('Pf024.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=GEOMETRIC_CURVE_SET('',(#1));
12#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
13#9051=PRODUCT('Pf024','Pf024','',(#9050));
14#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
15#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
16#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
17#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
18#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
19#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
20#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
21#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
22#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
23#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#2),#9060);
24#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
25#9063=CARTESIAN_POINT('',(0.0,0.0,0.0));
26#9064=CARTESIAN_POINT('',(2.0,0.0,0.0));
27#9065=CARTESIAN_POINT('',(2.0,2.0,0.0));
28#9066=CARTESIAN_POINT('',(0.0,2.0,0.0));
29#9067=CARTESIAN_POINT('',(1.0,1.0,0.0));
30#9068=VERTEX_POINT('',#9063);
31#9069=VERTEX_POINT('',#9064);
32#9070=VERTEX_POINT('',#9065);
33#9071=VERTEX_POINT('',#9066);
34#9072=DIRECTION('',(0.707106781187,0.707106781187,0.0));
35#9073=VECTOR('',#9072,2.82842712475);
36#9074=LINE('',#9063,#9073);
37#9075=EDGE_CURVE('',#9068,#9070,#9074,.T.);
38#9076=DIRECTION('',(-0.707106781187,0.707106781187,0.0));
39#9077=VECTOR('',#9076,2.82842712475);
40#9078=LINE('',#9064,#9077);
41#9079=EDGE_CURVE('',#9069,#9071,#9078,.T.);
42#9080=DIRECTION('',(1.0,0.0,0.0));
43#9081=VECTOR('',#9080,2.0);
44#9082=LINE('',#9063,#9081);
45#9083=EDGE_CURVE('',#9068,#9069,#9082,.T.);
46#9084=DIRECTION('',(-1.0,0.0,0.0));
47#9085=VECTOR('',#9084,2.0);
48#9086=LINE('',#9065,#9085);
49#9087=EDGE_CURVE('',#9070,#9071,#9086,.T.);
50#9088=DIRECTION('',(0.0,-1.0,0.0));
51#9089=VECTOR('',#9088,2.0);
52#9090=LINE('',#9066,#9089);
53#9091=EDGE_CURVE('',#9071,#9068,#9090,.T.);
54#9092=ORIENTED_EDGE('',$,$,#9075,.T.);
55#9093=ORIENTED_EDGE('',$,$,#9079,.T.);
56#9094=ORIENTED_EDGE('',$,$,#9083,.T.);
57#9095=ORIENTED_EDGE('',$,$,#9087,.T.);
58#9096=ORIENTED_EDGE('',$,$,#9091,.T.);
59#9097=EDGE_LOOP('',(#9092,#9093,#9094,#9095,#9096));
60#9098=CARTESIAN_POINT('',(0.0,0.0,0.0));
61#9099=DIRECTION('',(0.0,0.0,1.0));
62#9100=DIRECTION('',(1.0,0.0,0.0));
63#9101=AXIS2_PLACEMENT_3D('',#9098,#9099,#9100);
64#9102=PLANE('',#9101);
65#9103=FACE_OUTER_BOUND('',#9097,.T.);
66#9104=ADVANCED_FACE('',(#9103),#9102,.T.);
67#9105=OPEN_SHELL('crossed_diag_shell',(#9104));
68#9106=SHELL_BASED_SURFACE_MODEL('crossed_diag_sbsm',(#9105));
69ENDSEC;
70END-ISO-10303-21;