Tfa133 — Face with a counter-clockwise outer wire and two clockwise inner wires crashes the reader (SIGSEGV) as soon as the extra bound wire is present; loads cleanly with only the outer wire — orientation repair is never reached

§12.3c

crash topology

Sources

Description

Face with a counter-clockwise outer wire and two clockwise inner wires crashes the reader (SIGSEGV) as soon as the extra bound wire is present; loads cleanly with only the outer wire — orientation repair is never reached

Reproducer recipe

Expected kernel behavior

Decide each bound wire's role from geometry — point-in-face containment classification against the other wires of the same face — rather than trusting the declared `FACE_OUTER_BOUND`/`FACE_INNER_BOUND` labels or the raw winding direction, then reverse only the wires that disagree with the consensus and report each reversal. What must hold is the RELATIVE sense of outer and hole wires, not the absolute sense of any one of them; and reading a multi-bound face whose edges carry no pcurves must not terminate the process.

Notes

Corrected 2026-07-17 (truth-in-labeling audit): retitled/redescribed — original claimed orientation repair flips the outer wire's winding, breaking the inner wires' relative-consistency; that method is never reached because the file crashes (SIGSEGV) during shape translation before any wire-level healing pass runs. Isolation testing (stripping the extra bound wire) confirms the outer-bound-alone face loads cleanly; the crash is reproduced by restoring the additional wire. Part of the ~127-entry face-repair/small-face-check misnomer family — see `BACKLOG.md` Q14. Synonyms: "multi-bound face crashes reader, outer-alone loads clean", "inner wires crash reader regardless of relative winding, outer-alone loads clean".

Expected validation

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

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2HEADER;
3FILE_DESCRIPTION(('Tfa133 FixOrientation outer-bound-but-inner-correct'),'2;1');
4FILE_NAME('Tfa133.stp','2026-06-15T00:00:00',(''),(''),
5  'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=APPLICATION_CONTEXT('automotive design');
10#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2009,#1);
11/* Tfa133 - FixOrientation.outer-bound-but-inner-correct
12 * Defect: Outer bound has wrong winding but inner bounds are correct.
13 * FixOrientation flips outer but breaks inner-relative winding.
14 * Trigger: Face with counter-clockwise outer (wrong) and clockwise inners (right).
15 */
16#10=CARTESIAN_POINT('origin',(0.0,0.0,0.0));
17#11=DIRECTION('z',(0.0,0.0,1.0));
18#12=DIRECTION('x',(1.0,0.0,0.0));
19#13=AXIS2_PLACEMENT_3D('placement',#10,#11,#12);
20/* Outer wire: counter-clockwise (incorrect) */
21#20=CARTESIAN_POINT('p0',(0.0,0.0,0.0));
22#21=CARTESIAN_POINT('p1',(0.0,20.0,0.0));
23#22=CARTESIAN_POINT('p2',(20.0,20.0,0.0));
24#23=CARTESIAN_POINT('p3',(20.0,0.0,0.0));
25/* Inner wire 1: clockwise (correct relative to ccw outer) */
26#24=CARTESIAN_POINT('p4',(2.0,2.0,0.0));
27#25=CARTESIAN_POINT('p5',(2.0,8.0,0.0));
28#26=CARTESIAN_POINT('p6',(8.0,8.0,0.0));
29#27=CARTESIAN_POINT('p7',(8.0,2.0,0.0));
30/* Inner wire 2: clockwise (correct relative to ccw outer) */
31#28=CARTESIAN_POINT('p8',(12.0,12.0,0.0));
32#29=CARTESIAN_POINT('p9',(12.0,18.0,0.0));
33#30=CARTESIAN_POINT('p10',(18.0,18.0,0.0));
34#31=CARTESIAN_POINT('p11',(18.0,12.0,0.0));
35/* Vertices */
36#40=VERTEX_POINT('v0',#20);
37#41=VERTEX_POINT('v1',#21);
38#42=VERTEX_POINT('v2',#22);
39#43=VERTEX_POINT('v3',#23);
40#44=VERTEX_POINT('v4',#24);
41#45=VERTEX_POINT('v5',#25);
42#46=VERTEX_POINT('v6',#26);
43#47=VERTEX_POINT('v7',#27);
44#48=VERTEX_POINT('v8',#28);
45#49=VERTEX_POINT('v9',#29);
46#50=VERTEX_POINT('v10',#30);
47#51=VERTEX_POINT('v11',#31);
48/* Outer wire edges (ccw: 0→1→2→3→0) */
49#60=DIRECTION('d0',(0.0,1.0,0.0));
50#61=VECTOR('v_out0',#60,20.0);
51#62=LINE('l0',#20,#61);
52#63=DIRECTION('d1',(1.0,0.0,0.0));
53#64=VECTOR('v_out1',#63,20.0);
54#65=LINE('l1',#21,#64);
55#66=DIRECTION('d2',(0.0,-1.0,0.0));
56#67=VECTOR('v_out2',#66,20.0);
57#68=LINE('l2',#22,#67);
58#69=DIRECTION('d3',(-1.0,0.0,0.0));
59#70=VECTOR('v_out3',#69,20.0);
60#71=LINE('l3',#23,#70);
61#72=EDGE_CURVE('e0',#40,#41,#62,.T.);
62#73=EDGE_CURVE('e1',#41,#42,#65,.T.);
63#74=EDGE_CURVE('e2',#42,#43,#68,.T.);
64#75=EDGE_CURVE('e3',#43,#40,#71,.T.);
65/* Inner wire 1 edges (cw: 4→5→6→7→4) */
66#76=DIRECTION('d4',(0.0,1.0,0.0));
67#77=VECTOR('v_in10',#76,6.0);
68#78=LINE('l4',#24,#77);
69#79=DIRECTION('d5',(1.0,0.0,0.0));
70#80=VECTOR('v_in11',#79,6.0);
71#81=LINE('l5',#25,#80);
72#82=DIRECTION('d6',(0.0,-1.0,0.0));
73#83=VECTOR('v_in12',#82,6.0);
74#84=LINE('l6',#26,#83);
75#85=DIRECTION('d7',(-1.0,0.0,0.0));
76#86=VECTOR('v_in13',#85,6.0);
77#87=LINE('l7',#27,#86);
78#88=EDGE_CURVE('e4',#44,#45,#78,.T.);
79#89=EDGE_CURVE('e5',#45,#46,#81,.T.);
80#90=EDGE_CURVE('e6',#46,#47,#84,.T.);
81#91=EDGE_CURVE('e7',#47,#44,#87,.T.);
82/* Inner wire 2 edges (cw: 8→9→10→11→8) */
83#92=DIRECTION('d8',(0.0,1.0,0.0));
84#93=VECTOR('v_in20',#92,6.0);
85#94=LINE('l8',#28,#93);
86#95=DIRECTION('d9',(1.0,0.0,0.0));
87#96=VECTOR('v_in21',#95,6.0);
88#97=LINE('l9',#29,#96);
89#98=DIRECTION('d10',(0.0,-1.0,0.0));
90#99=VECTOR('v_in22',#98,6.0);
91#100=LINE('l10',#30,#99);
92#101=DIRECTION('d11',(-1.0,0.0,0.0));
93#102=VECTOR('v_in23',#101,6.0);
94#103=LINE('l11',#31,#102);
95#104=EDGE_CURVE('e8',#48,#49,#94,.T.);
96#105=EDGE_CURVE('e9',#49,#50,#97,.T.);
97#106=EDGE_CURVE('e10',#50,#51,#100,.T.);
98#107=EDGE_CURVE('e11',#51,#48,#103,.T.);
99/* Oriented edges */
100#110=ORIENTED_EDGE('oe0',*,*,#72,.T.);
101#111=ORIENTED_EDGE('oe1',*,*,#73,.T.);
102#112=ORIENTED_EDGE('oe2',*,*,#74,.T.);
103#113=ORIENTED_EDGE('oe3',*,*,#75,.T.);
104#114=ORIENTED_EDGE('oe4',*,*,#88,.T.);
105#115=ORIENTED_EDGE('oe5',*,*,#89,.T.);
106#116=ORIENTED_EDGE('oe6',*,*,#90,.T.);
107#117=ORIENTED_EDGE('oe7',*,*,#91,.T.);
108#118=ORIENTED_EDGE('oe8',*,*,#104,.T.);
109#119=ORIENTED_EDGE('oe9',*,*,#105,.T.);
110#120=ORIENTED_EDGE('oe10',*,*,#106,.T.);
111#121=ORIENTED_EDGE('oe11',*,*,#107,.T.);
112/* Edge loops */
113#130=EDGE_LOOP('outer',(#110,#111,#112,#113));
114#131=EDGE_LOOP('inner1',(#114,#115,#116,#117));
115#132=EDGE_LOOP('inner2',(#118,#119,#120,#121));
116/* Face bounds */
117#140=FACE_OUTER_BOUND('outer',#130,.T.);
118#141=FACE_INNER_BOUND('inner1',#131,.T.);
119#142=FACE_INNER_BOUND('inner2',#132,.T.);
120/* Geometry */
121#150=PLANE('plane',#13);
122/* Face with reversed outer and correct inners */
123#160=ADVANCED_FACE('mixed-winding',(#140,#141,#142),#150,.T.);
124#170=OPEN_SHELL('shell',(#160));
125/* Mandatory PRODUCT chain */
126#9000=PRODUCT_CONTEXT('',#1,'mechanical');
127#9001=PRODUCT('Tfa133','Tfa133','',(#9000));
128#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
129#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
130#9004=PRODUCT_DEFINITION('','',#9002,#9003);
131#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
132#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
133#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
134#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
135#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
136#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
137#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#170));
138#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
139#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
140ENDSEC;
141END-ISO-10303-21;