Tfa106 — FACE_INNER_BOUND wrapping a single, non-closed edge crashes the reader (SIGSEGV) — same class as Tfa085/Tfa118, not a FixLoopWire merge-logic bug

§12.3c

crash topology

Sources

Description

FACE_INNER_BOUND wrapping a single, non-closed edge crashes the reader (SIGSEGV) — same class as Tfa085/Tfa118, not a FixLoopWire merge-logic bug

Reproducer recipe

Expected kernel behavior

Reject with a diagnostic naming each FACE_INNER_BOUND whose EDGE_LOOP wraps exactly one non-closed edge (entities #73 and #93): a bound wire must close back to its own start vertex, and a single-edge EDGE_LOOP that does not do so must be detected and rejected with a diagnostic before the face is built, rather than crash the reader — dropping the malformed bounds and building the face from the outer wire alone is an acceptable fallback provided the diagnostic still names each bad bound.

Notes

Corrected 2026-07-16 (truth-in-labeling audit): retitled/redescribed — original claimed `FixLoopWire`'s nested-loop merge logic loses containment information; that method is never reached (crash occurs first). **See also**: Tfa085, Tfa118 (same single-edge-bound crash family). Synonyms: "single-edge inner bound crash concentric wires", "non-closed nested bound segfault".

Expected validation

occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a

Cross-references

Tfa085, Tfa118

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tfa106 - ShapeFix_Face.FixLoopWire concentric inner wires
3 * Face with two inner wires that are concentric (one fully inside the other).
4 * FixLoopWire's nested-loop detection logic merges them but loses the topological information.
5 */
6HEADER;
7FILE_DESCRIPTION(('Tfa106 test case','Face with concentric inner wires (nested containment)'),'2;1');
8FILE_NAME('Tfa106.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','','');
9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
10ENDSEC;
11DATA;
12#1=APPLICATION_CONTEXT('automotive_design');
13#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
14/* === Outer boundary: 20x20 square at z=0 === */
15#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#11=DIRECTION('',(0.0,0.0,1.0));#12=DIRECTION('',(1.0,0.0,0.0));
17#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);#14=PLANE('outer_plane',#13);
18#20=CARTESIAN_POINT('',(0.0,0.0,0.0));#21=VERTEX_POINT('',#20);
19#22=CARTESIAN_POINT('',(20.0,0.0,0.0));#23=VERTEX_POINT('',#22);
20#24=CARTESIAN_POINT('',(20.0,20.0,0.0));#25=VERTEX_POINT('',#24);
21#26=CARTESIAN_POINT('',(0.0,20.0,0.0));#27=VERTEX_POINT('',#26);
22#30=DIRECTION('',(1.0,0.0,0.0));#31=VECTOR('',#30,1.0);#32=LINE('',#20,#31);
23#33=EDGE_CURVE('outer_e1',#21,#23,#32,.T.);
24#34=DIRECTION('',(0.0,1.0,0.0));#35=VECTOR('',#34,1.0);#36=LINE('',#22,#35);
25#37=EDGE_CURVE('outer_e2',#23,#25,#36,.T.);
26#38=DIRECTION('',(-1.0,0.0,0.0));#39=VECTOR('',#38,1.0);#40=LINE('',#24,#39);
27#41=EDGE_CURVE('outer_e3',#25,#27,#40,.T.);
28#42=DIRECTION('',(0.0,-1.0,0.0));#43=VECTOR('',#42,1.0);#44=LINE('',#26,#43);
29#45=EDGE_CURVE('outer_e4',#27,#21,#44,.T.);
30#50=ORIENTED_EDGE('oe1',*,*,#33,.T.);#51=ORIENTED_EDGE('oe2',*,*,#37,.T.);
31#52=ORIENTED_EDGE('oe3',*,*,#41,.T.);#53=ORIENTED_EDGE('oe4',*,*,#45,.T.);
32#54=EDGE_LOOP('outer_loop',(#50,#51,#52,#53));
33#55=FACE_OUTER_BOUND('',#54,.T.);
34/* === Inner wire 1: small circle centered at (10,10), radius 2 === */
35#60=CARTESIAN_POINT('',(10.0,10.0,0.0));
36#61=AXIS2_PLACEMENT_3D('',#60,#11,#12);
37#62=CIRCLE('inner_circ1',#61,2.0);
38#70=CARTESIAN_POINT('',(12.0,10.0,0.0));#71=VERTEX_POINT('',#70);
39#72=EDGE_CURVE('inner_arc1',#71,#71,#62,.T.);
40#73=ORIENTED_EDGE('inner_oe1',*,*,#72,.T.);
41#74=EDGE_LOOP('inner_loop1_concentric',(#73));
42#75=FACE_INNER_BOUND('',#74,.T.);
43/* === Inner wire 2: larger concentric circle, radius 4 === */
44#80=CIRCLE('inner_circ2',#61,4.0);
45#90=CARTESIAN_POINT('',(14.0,10.0,0.0));#91=VERTEX_POINT('',#90);
46#92=EDGE_CURVE('inner_arc2',#91,#91,#80,.T.);
47#93=ORIENTED_EDGE('inner_oe2',*,*,#92,.T.);
48#94=EDGE_LOOP('inner_loop2_outer_concentric',(#93));
49#95=FACE_INNER_BOUND('',#94,.T.);
50/* === Face combining outer + both inner wires === */
51#100=ADVANCED_FACE('tfa106_nested_inner',(#55,#75,#95),#14,.T.);
52/* === Mandatory product chain === */
53#9000=PRODUCT_CONTEXT('',#1,'mechanical');
54#9001=PRODUCT('Tfa106','Tfa106','',(#9000));
55#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
56#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
57#9004=PRODUCT_DEFINITION('','',#9002,#9003);
58#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
59#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
60#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
61#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
62#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
63#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
64#9021=OPEN_SHELL('shell',(#100));
65#9022=SHELL_BASED_SURFACE_MODEL('sbsm',(#9021));
66#9023=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9022),#9010);
67#9024=SHAPE_DEFINITION_REPRESENTATION(#9005,#9023);
68ENDSEC;
69END-ISO-10303-21;