Tsh127 — ShapeUpgrade_ShellSewing.Apply different-shell-tolerances

§12.3a

crash topology

Sources

Description

ShapeUpgrade_ShellSewing.Apply different-shell-tolerances

Reproducer recipe

Expected kernel behavior

Live oracle measurement: OCCT crashes (SIGSEGV) reading this file, on both the heal-on and heal-off path. Shell 1 (z=0) and Shell 2 (z=10) are each a single unit-square face, ten units apart — far outside the file's declared 1e-7 tolerance, so nothing about them calls for sewing together. A kernel must never crash on this input, whatever tolerance context each shell nominally carries: two shells this far apart must be left as separate shells, not merged or bridged.

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/* Tsh127 - ShapeUpgrade_ShellSewing.Apply different-shell-tolerances
3 * Defect: Two shells in sewing input have different tolerance contexts;
4 * Apply uses first shell's tolerance, ignoring second's */
5HEADER;
6FILE_DESCRIPTION(('Tsh127 - sewing two shells with different tolerance contexts','wave 26'),'2;1');
7FILE_NAME('Tsh127.stp','2026-06-15T00:00:00',(''),(''),'heal coverage','','');
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
14/* Two separate shells to be sewn together:
15 * Shell 1: Single face (0,0,0)-(10,0,0)-(10,10,0)-(0,10,0), tolerance 1.0e-7
16 * Shell 2: Single face (0,0,10)-(10,0,10)-(10,10,10)-(0,10,10), tolerance 1.0e-5
17 * They are coplanar but separated; sewing should bridge them but tolerance
18 * mismatch causes gaps or missed stitching. */
19
20#10=CARTESIAN_POINT('',(0,0,0));
21#11=CARTESIAN_POINT('',(10.0,0,0));
22#12=CARTESIAN_POINT('',(10.0,10.0,0));
23#13=CARTESIAN_POINT('',(0,10.0,0));
24
25#14=CARTESIAN_POINT('',(0,0,10.0));
26#15=CARTESIAN_POINT('',(10.0,0,10.0));
27#16=CARTESIAN_POINT('',(10.0,10.0,10.0));
28#17=CARTESIAN_POINT('',(0,10.0,10.0));
29
30#20=VERTEX_POINT('',#10);
31#21=VERTEX_POINT('',#11);
32#22=VERTEX_POINT('',#12);
33#23=VERTEX_POINT('',#13);
34
35#24=VERTEX_POINT('',#14);
36#25=VERTEX_POINT('',#15);
37#26=VERTEX_POINT('',#16);
38#27=VERTEX_POINT('',#17);
39
40/* Plane for shell 1 (z=0) */
41#30=AXIS2_PLACEMENT_3D('plane_z0',#10,DIRECTION('',(0,0,-1)),DIRECTION('',(1,0,0)));
42#31=PLANE('',#30);
43
44/* Plane for shell 2 (z=10) */
45#32=AXIS2_PLACEMENT_3D('plane_z10',#14,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0)));
46#33=PLANE('',#32);
47
48/* Shell 1 edges */
49#50=LINE('',#10,VECTOR('',(1,0,0),10.0));
50#51=EDGE_CURVE('s1_e1',#20,#21,#50,.T.);
51#52=LINE('',#11,VECTOR('',(0,1,0),10.0));
52#53=EDGE_CURVE('s1_e2',#21,#22,#52,.T.);
53#54=LINE('',#12,VECTOR('',(-1,0,0),10.0));
54#55=EDGE_CURVE('s1_e3',#22,#23,#54,.T.);
55#56=LINE('',#13,VECTOR('',(0,-1,0),10.0));
56#57=EDGE_CURVE('s1_e4',#23,#20,#56,.T.);
57
58/* Shell 2 edges */
59#60=LINE('',#14,VECTOR('',(1,0,0),10.0));
60#61=EDGE_CURVE('s2_e1',#24,#25,#60,.T.);
61#62=LINE('',#15,VECTOR('',(0,1,0),10.0));
62#63=EDGE_CURVE('s2_e2',#25,#26,#62,.T.);
63#64=LINE('',#16,VECTOR('',(-1,0,0),10.0));
64#65=EDGE_CURVE('s2_e3',#26,#27,#64,.T.);
65#66=LINE('',#17,VECTOR('',(0,-1,0),10.0));
66#67=EDGE_CURVE('s2_e4',#27,#24,#66,.T.);
67
68/* Shell 1 edge loop */
69#80=ORIENTED_EDGE('',*,*,#51,.T.);
70#81=ORIENTED_EDGE('',*,*,#53,.T.);
71#82=ORIENTED_EDGE('',*,*,#55,.T.);
72#83=ORIENTED_EDGE('',*,*,#57,.T.);
73#84=EDGE_LOOP('s1_loop',(#80,#81,#82,#83));
74
75/* Shell 2 edge loop */
76#90=ORIENTED_EDGE('',*,*,#61,.T.);
77#91=ORIENTED_EDGE('',*,*,#63,.T.);
78#92=ORIENTED_EDGE('',*,*,#65,.T.);
79#93=ORIENTED_EDGE('',*,*,#67,.T.);
80#94=EDGE_LOOP('s2_loop',(#90,#91,#92,#93));
81
82/* Face bounds */
83#100=FACE_OUTER_BOUND('',#84,.T.);
84#101=FACE_OUTER_BOUND('',#94,.T.);
85
86/* Faces */
87#110=ADVANCED_FACE('f1',(#100),#31,.T.);
88#111=ADVANCED_FACE('f2',(#101),#33,.T.);
89
90/* Shells */
91#200=OPEN_SHELL('shell_1',(#110));
92#201=OPEN_SHELL('shell_2',(#111));
93
94/* Mandatory PRODUCT chain */
95#9000=PRODUCT_CONTEXT('',#1,'mechanical');
96#9001=PRODUCT('Tsh127','Tsh127','',(#9000));
97#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
98#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
99#9004=PRODUCT_DEFINITION('','',#9002,#9003);
100#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
101#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
102#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
103#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
104#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
105#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
106#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#200,#201));
107#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
108#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
109ENDSEC;
110END-ISO-10303-21;