Tsh109 — ShapeFix_Shell.Perform rejection orphan vertices

§12.3a

crash topology

Sources

Description

ShapeFix_Shell.Perform rejection orphan vertices

Reproducer recipe

Expected kernel behavior

Live oracle measurement: OCCT crashes (SIGSEGV) reading this file, on both the heal-on and heal-off path. The shell holds two valid unit-quad faces plus a third, 'degenerate' triangular face whose three edges are ~0.01mm long, built from its own private, unshared vertex set. A kernel must never crash on this input: reject a face whose edges are all near-zero length relative to the model's declared 1e-7 tolerance with a diagnostic before any code path that assumes a well-formed, non-degenerate face touches it, rather than following that assumption into undefined behavior.

Notes

RUNTIME-VERIFIED 2026-08-09 — this file's recorded `signal(11)` is driven by an inline entity instance written directly inside another entity's argument list (a vector constructor carrying a bare coordinate list where a direction reference belongs). A conforming exchange file may only define entity instances as top-level numbered statements, so the reader cannot bind the inline construct, the attribute resolves to null, and the abort happens during loading — before any repair routine runs. Full census in `BACKLOG.md` (M.18).

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;
2/* Tsh109 - ShapeFix_Shell.Perform with rejection
3 * Defect: Perform configured to reject faces failing certain checks;
4 * rejection of a single face creates orphan vertices that downstream
5 * operations dereference. */
6HEADER;
7FILE_DESCRIPTION(('Tsh109 - rejection orphan vertices','wave 19'),'2;1');
8FILE_NAME('Tsh109.stp','2026-06-15T00:00:00',(''),(''),'heal coverage','','');
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
15/* Four vertices of a small quad face */
16#100=CARTESIAN_POINT('',(0,0,0));
17#101=CARTESIAN_POINT('',(1.0,0,0));
18#102=CARTESIAN_POINT('',(1.0,1.0,0));
19#103=CARTESIAN_POINT('',(0,1.0,0));
20
21/* Vertices of adjacent face sharing edge */
22#104=CARTESIAN_POINT('',(1.0,0,0));
23#105=CARTESIAN_POINT('',(2.0,0,0));
24#106=CARTESIAN_POINT('',(2.0,1.0,0));
25#107=CARTESIAN_POINT('',(1.0,1.0,0));
26
27/* Three vertices for a degenerate/small triangular face */
28#108=CARTESIAN_POINT('',(0.5,0.5,0.05));
29#109=CARTESIAN_POINT('',(0.51,0.5,0.05));
30#110=CARTESIAN_POINT('',(0.5,0.51,0.05));
31
32/* VERTEX_POINT entities */
33#120=VERTEX_POINT('',#100);
34#121=VERTEX_POINT('',#101);
35#122=VERTEX_POINT('',#102);
36#123=VERTEX_POINT('',#103);
37#124=VERTEX_POINT('',#104);
38#125=VERTEX_POINT('',#105);
39#126=VERTEX_POINT('',#106);
40#127=VERTEX_POINT('',#107);
41#128=VERTEX_POINT('',#108);
42#129=VERTEX_POINT('',#109);
43#130=VERTEX_POINT('',#110);
44
45/* Plane for first face (XY at Z=0) */
46#200=AXIS2_PLACEMENT_3D('',#100,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0)));
47#201=PLANE('face1_plane',#200);
48
49/* Plane for second face (XY at Z=0) */
50#202=AXIS2_PLACEMENT_3D('',#104,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0)));
51#203=PLANE('face2_plane',#202);
52
53/* Plane for degenerate face */
54#204=AXIS2_PLACEMENT_3D('',#108,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0)));
55#205=PLANE('degen_plane',#204);
56
57/* Edges for first face */
58#250=LINE('',#100,VECTOR('',(1,0,0),1.0));
59#251=EDGE_CURVE('',#120,#121,#250,.T.);
60#252=LINE('',#101,VECTOR('',(0,1,0),1.0));
61#253=EDGE_CURVE('',#121,#122,#252,.T.);
62#254=LINE('',#102,VECTOR('',(-1,0,0),1.0));
63#255=EDGE_CURVE('',#122,#123,#254,.T.);
64#256=LINE('',#103,VECTOR('',(0,-1,0),1.0));
65#257=EDGE_CURVE('',#123,#120,#256,.T.);
66
67/* Edges for second face */
68#258=LINE('',#104,VECTOR('',(1,0,0),1.0));
69#259=EDGE_CURVE('',#124,#125,#258,.T.);
70#260=LINE('',#105,VECTOR('',(0,1,0),1.0));
71#261=EDGE_CURVE('',#125,#126,#260,.T.);
72#262=LINE('',#106,VECTOR('',(-1,0,0),1.0));
73#263=EDGE_CURVE('',#126,#127,#262,.T.);
74#264=LINE('',#107,VECTOR('',(0,-1,0),1.0));
75#265=EDGE_CURVE('',#127,#124,#264,.T.);
76
77/* Shared edge between faces */
78#266=LINE('',#101,VECTOR('',(0,1,0),1.0));
79#267=EDGE_CURVE('',#121,#122,#266,.T.);
80
81/* Edges for degenerate face */
82#268=LINE('',#108,VECTOR('',(0.01,0,0),0.01));
83#269=EDGE_CURVE('',#128,#129,#268,.T.);
84#270=LINE('',#109,VECTOR('',(-0.005,0.01,0),0.01414));
85#271=EDGE_CURVE('',#129,#130,#270,.T.);
86#272=LINE('',#110,VECTOR('',(-0.005,-0.01,0),0.01414));
87#273=EDGE_CURVE('',#130,#128,#272,.T.);
88
89/* Edge loops for first face */
90#300=ORIENTED_EDGE('',*,*,#251,.T.);
91#301=ORIENTED_EDGE('',*,*,#253,.T.);
92#302=ORIENTED_EDGE('',*,*,#255,.T.);
93#303=ORIENTED_EDGE('',*,*,#257,.T.);
94#310=EDGE_LOOP('',(#300,#301,#302,#303));
95
96/* Edge loops for second face */
97#311=ORIENTED_EDGE('',*,*,#259,.T.);
98#312=ORIENTED_EDGE('',*,*,#261,.T.);
99#313=ORIENTED_EDGE('',*,*,#263,.T.);
100#314=ORIENTED_EDGE('',*,*,#265,.T.);
101#315=EDGE_LOOP('',(#311,#312,#313,#314));
102
103/* Edge loop for degenerate face */
104#316=ORIENTED_EDGE('',*,*,#269,.T.);
105#317=ORIENTED_EDGE('',*,*,#271,.T.);
106#318=ORIENTED_EDGE('',*,*,#273,.T.);
107#319=EDGE_LOOP('',(#316,#317,#318));
108
109/* Face bounds */
110#400=FACE_OUTER_BOUND('',#310,.T.);
111#401=FACE_OUTER_BOUND('',#315,.T.);
112#402=FACE_OUTER_BOUND('',#319,.T.);
113
114/* Faces */
115#500=ADVANCED_FACE('face1',(#400),#201,.T.);
116#501=ADVANCED_FACE('face2',(#401),#203,.T.);
117#502=ADVANCED_FACE('degen_face',(#402),#205,.T.);
118
119/* Shell containing faces */
120#600=SHELL_BASED_SURFACE_MODEL('shell',(#601));
121#601=OPEN_SHELL('open_shell',(#500,#501,#502));
122
123/* Mandatory PRODUCT chain */
124#9000=PRODUCT_CONTEXT('',#1,'mechanical');
125#9001=PRODUCT('Tsh109','Tsh109','',(#9000));
126#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
127#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
128#9004=PRODUCT_DEFINITION('','',#9002,#9003);
129#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
130#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
131#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
132#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
133#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
134#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
135#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#601));
136#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
137#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
138ENDSEC;
139END-ISO-10303-21;