Tfa119 — Outer wire's LINE curves use non-conformant Part21 syntax (point argument wrapped in a spurious aggregate) and fail to build; combined with a live inner wire, the reader crashes (SIGSEGV) before any twisted-face checking classification

§12.3c

crash topology

Sources

Description

Outer wire's LINE curves use non-conformant Part21 syntax (point argument wrapped in a spurious aggregate) and fail to build; combined with a live inner wire, the reader crashes (SIGSEGV) before any twisted-face checking classification

Reproducer recipe

Expected kernel behavior

Reject with a diagnostic naming the outer wire's LINE entities whose point argument is wrapped in a non-conformant aggregate (LINE('name',(#N),#dir) instead of a plain #N reference): a correct kernel must detect this malformed syntax and either repair the reference (unwrapping the spurious aggregate) so the outer wire's edges build normally, or reject the face with a diagnostic naming the malformed LINE entities — never let a face whose outer wire fails to build (0 edges) proceed to translation with a live inner wire, since that combination is what crashes the reader.

Notes

Corrected 2026-07-16 (truth-in-labeling audit): retitled/redescribed — original claimed twisted-face checking's orientation logic doesn't handle an opposite-winding inner wire; that method is never reached. Isolation test shows the outer wire's malformed `LINE` syntax causes its edges to fail to build (0 edges) even without the inner wire; the SIGSEGV itself requires the inner wire's presence but the precise failure mechanism connecting the two is not fully isolated in this pass (recorded honestly per `SEGFAULT_CHARACTERIZATION.md` convention). **See also**: Tfa118 (same malformed-`LINE`-syntax anomaly, different crash cause). Part of the ~127-entry face-repair/small-face-check misnomer family — see `BACKLOG.md` Q14.

Expected validation

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

Cross-references

Tfa118

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tfa119 — ShapeAnalysis_CheckSmallFace.CheckTwisted opposite-winding-inner-wire
3 * Defect: face whose inner wire winds opposite to outer; CheckTwisted's region
4 * orientation logic doesn't handle inner-wire reversal correctly. */
5HEADER;
6FILE_DESCRIPTION(('Tfa119 - CheckTwisted opposite-winding-inner-wire defect'),'2;1');
7FILE_NAME('Tfa119.stp','2026-06-16T00:00:00',(''),(''),'cad-research-suite','','');
8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
9ENDSEC;
10DATA;
11#1=APPLICATION_CONTEXT('automotive_design');
12#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
13/* Outer loop: counterclockwise when viewed from above (CCW) */
14#10=CARTESIAN_POINT('p_origin',(0.0,0.0,0.0));
15#11=CARTESIAN_POINT('p_outer_1',(10.0,0.0,0.0));
16#12=VERTEX_POINT('v_outer_1',#11);
17#13=CARTESIAN_POINT('p_outer_2',(10.0,10.0,0.0));
18#14=VERTEX_POINT('v_outer_2',#13);
19#15=CARTESIAN_POINT('p_outer_3',(0.0,10.0,0.0));
20#16=VERTEX_POINT('v_outer_3',#15);
21#17=VERTEX_POINT('v_origin',#10);
22/* Outer edges CCW: 0→10,0 → 10,10 → 0,10 → 0,0 */
23#18=LINE('outer_e1',(#10),#19);
24#19=VECTOR('outer_v1',#20,1.0);
25#20=DIRECTION('outer_d1',(1.0,0.0,0.0));
26#21=EDGE_CURVE('outer_edge1',#17,#12,#18,.T.);
27#22=LINE('outer_e2',(#11),#23);
28#23=VECTOR('outer_v2',#24,1.0);
29#24=DIRECTION('outer_d2',(0.0,1.0,0.0));
30#25=EDGE_CURVE('outer_edge2',#12,#14,#22,.T.);
31#26=LINE('outer_e3',(#13),#27);
32#27=VECTOR('outer_v3',#28,1.0);
33#28=DIRECTION('outer_d3',(-1.0,0.0,0.0));
34#29=EDGE_CURVE('outer_edge3',#14,#16,#26,.T.);
35#30=LINE('outer_e4',(#15),#31);
36#31=VECTOR('outer_v4',#32,1.0);
37#32=DIRECTION('outer_d4',(0.0,-1.0,0.0));
38#33=EDGE_CURVE('outer_edge4',#16,#17,#30,.T.);
39#34=ORIENTED_EDGE('outer_oe1',*,*,#21,.T.);
40#35=ORIENTED_EDGE('outer_oe2',*,*,#25,.T.);
41#36=ORIENTED_EDGE('outer_oe3',*,*,#29,.T.);
42#37=ORIENTED_EDGE('outer_oe4',*,*,#33,.T.);
43#38=EDGE_LOOP('outer_loop',(#34,#35,#36,#37));
44#39=FACE_OUTER_BOUND('outer_bound',#38,.T.);
45/* Inner loop: CLOCKWISE (opposite to outer — creates twist) */
46#40=CARTESIAN_POINT('p_inner_1',(2.0,2.0,0.0));
47#41=VERTEX_POINT('v_inner_1',#40);
48#42=CARTESIAN_POINT('p_inner_2',(8.0,2.0,0.0));
49#43=VERTEX_POINT('v_inner_2',#42);
50#44=CARTESIAN_POINT('p_inner_3',(8.0,8.0,0.0));
51#45=VERTEX_POINT('v_inner_3',#44);
52#46=CARTESIAN_POINT('p_inner_4',(2.0,8.0,0.0));
53#47=VERTEX_POINT('v_inner_4',#46);
54/* Inner edges CW: 2,2 → 2,8 → 8,8 → 8,2 → 2,2 */
55#48=LINE('inner_e1',(#40),#49);
56#49=VECTOR('inner_v1',#24,1.0);
57#50=EDGE_CURVE('inner_edge1',#41,#47,#48,.T.);
58#51=LINE('inner_e2',(#46),#52);
59#52=VECTOR('inner_v2',#20,1.0);
60#53=EDGE_CURVE('inner_edge2',#47,#45,#51,.T.);
61#54=LINE('inner_e3',(#44),#55);
62#55=VECTOR('inner_v3',#56,1.0);
63#56=DIRECTION('inner_d3',(0.0,-1.0,0.0));
64#57=EDGE_CURVE('inner_edge3',#45,#43,#54,.T.);
65#58=LINE('inner_e4',(#42),#59);
66#59=VECTOR('inner_v4',#28,1.0);
67#60=EDGE_CURVE('inner_edge4',#43,#41,#58,.T.);
68#61=ORIENTED_EDGE('inner_oe1',*,*,#50,.T.);
69#62=ORIENTED_EDGE('inner_oe2',*,*,#53,.T.);
70#63=ORIENTED_EDGE('inner_oe3',*,*,#57,.T.);
71#64=ORIENTED_EDGE('inner_oe4',*,*,#60,.T.);
72#65=EDGE_LOOP('inner_loop',(#61,#62,#63,#64));
73#66=FACE_INNER_BOUND('inner_bound',#65,.T.);
74/* Plane surface */
75#67=DIRECTION('z_dir',(0.0,0.0,1.0));
76#68=DIRECTION('x_dir',(1.0,0.0,0.0));
77#69=AXIS2_PLACEMENT_3D('plane_place',#10,#67,#68);
78#70=PLANE('face_plane',#69);
79/* Face with opposite winding inner loop */
80#71=ADVANCED_FACE('twisted_face',(#39,#66),#70,.T.);
81#9000=PRODUCT_CONTEXT('',#1,'mechanical');
82#9001=PRODUCT('Tfa119','Tfa119','',(#9000));
83#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
84#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
85#9004=PRODUCT_DEFINITION('','',#9002,#9003);
86#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
87#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
88#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
89#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
90#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
91#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
92#9020=OPEN_SHELL('shell',(#71));
93#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9020));
94#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
95#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
96ENDSEC;
97END-ISO-10303-21;