Tfa093 — Face with a normal-size and a tiny inner wire crashes the reader (SIGSEGV) as soon as the extra bound wire is present; loads cleanly with only the outer wire — small-area-wire repair is never reached

§12.3c

crash topology

Sources

Description

Face with a normal-size and a tiny inner wire crashes the reader (SIGSEGV) as soon as the extra bound wire is present; loads cleanly with only the outer wire — small-area-wire repair is never reached

Reproducer recipe

Expected kernel behavior

Reading a face with several bound wires whose edges carry only 3D curves and no pcurves must never terminate the process: derive each edge's 2D representation by projecting it onto the host surface, and if an individual bound cannot be projected or classified, drop that bound with a diagnostic naming it and still build the face from the bounds that remain usable. Only once the face exists should a healing pass compare each wire's enclosed area against the model tolerance — the 0.0025-area hole here is a small hole beside a 1.0-area hole, not sub-tolerance debris, so both must survive.

Notes

**See also**: Tfa135. Corrected 2026-07-17 (truth-in-labeling audit): retitled/redescribed — original claimed small-area-wire repair applies its removal threshold check only to outer wires, leaving inner wires uninspected; 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", "any inner wire (large or tiny) crashes the reader, outer-alone loads clean".

Expected validation

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

Cross-references

Tfa135

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tfa093 - ShapeFix_Face.FixSmallAreaWire interior-wire skip
3 * Face has a small inner wire (below threshold) that FixSmallAreaWire should
4 * remove, but the threshold check incorrectly only applies to outer wires.
5 * The defect: interior wire is not inspected against area threshold. */
6HEADER;
7FILE_DESCRIPTION(('Tfa093 test case','Face with small inner wire below removal threshold'),'2;1');
8FILE_NAME('Tfa093.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: 10x10 square === */
15#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#11=DIRECTION('',(0.0,0.0,1.0));
17#12=DIRECTION('',(1.0,0.0,0.0));
18#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
19#14=PLANE('face_plane',#13);
20#20=CARTESIAN_POINT('',(0.0,0.0,0.0));#21=VERTEX_POINT('',#20);
21#22=CARTESIAN_POINT('',(10.0,0.0,0.0));#23=VERTEX_POINT('',#22);
22#24=CARTESIAN_POINT('',(10.0,10.0,0.0));#25=VERTEX_POINT('',#24);
23#26=CARTESIAN_POINT('',(0.0,10.0,0.0));#27=VERTEX_POINT('',#26);
24#30=DIRECTION('',(1.0,0.0,0.0));#31=VECTOR('',#30,10.0);#32=LINE('',#20,#31);
25#33=EDGE_CURVE('outer_e1',#21,#23,#32,.T.);
26#34=DIRECTION('',(0.0,1.0,0.0));#35=VECTOR('',#34,10.0);#36=LINE('',#22,#35);
27#37=EDGE_CURVE('outer_e2',#23,#25,#36,.T.);
28#38=DIRECTION('',(-1.0,0.0,0.0));#39=VECTOR('',#38,10.0);#40=LINE('',#24,#39);
29#41=EDGE_CURVE('outer_e3',#25,#27,#40,.T.);
30#42=DIRECTION('',(0.0,-1.0,0.0));#43=VECTOR('',#42,10.0);#44=LINE('',#26,#43);
31#45=EDGE_CURVE('outer_e4',#27,#21,#44,.T.);
32#46=ORIENTED_EDGE('',*,*,#33,.T.);#47=ORIENTED_EDGE('',*,*,#37,.T.);
33#48=ORIENTED_EDGE('',*,*,#41,.T.);#49=ORIENTED_EDGE('',*,*,#45,.T.);
34#50=EDGE_LOOP('outer',(#46,#47,#48,#49));
35#51=FACE_OUTER_BOUND('',#50,.T.);
36/* === First inner wire: normal-sized hole, area ~1 (should NOT be removed) === */
37#60=CARTESIAN_POINT('',(2.0,2.0,0.0));#61=VERTEX_POINT('',#60);
38#62=CARTESIAN_POINT('',(3.0,2.0,0.0));#63=VERTEX_POINT('',#62);
39#64=CARTESIAN_POINT('',(3.0,3.0,0.0));#65=VERTEX_POINT('',#64);
40#66=CARTESIAN_POINT('',(2.0,3.0,0.0));#67=VERTEX_POINT('',#66);
41#70=DIRECTION('',(1.0,0.0,0.0));#71=VECTOR('',#70,1.0);#72=LINE('',#60,#71);
42#73=EDGE_CURVE('inner1_e1',#61,#63,#72,.T.);
43#74=DIRECTION('',(0.0,1.0,0.0));#75=VECTOR('',#74,1.0);#76=LINE('',#62,#75);
44#77=EDGE_CURVE('inner1_e2',#63,#65,#76,.T.);
45#78=DIRECTION('',(-1.0,0.0,0.0));#79=VECTOR('',#78,1.0);#80=LINE('',#64,#79);
46#81=EDGE_CURVE('inner1_e3',#65,#67,#80,.T.);
47#82=DIRECTION('',(0.0,-1.0,0.0));#83=VECTOR('',#82,1.0);#84=LINE('',#66,#83);
48#85=EDGE_CURVE('inner1_e4',#67,#61,#84,.T.);
49#86=ORIENTED_EDGE('',*,*,#73,.T.);#87=ORIENTED_EDGE('',*,*,#77,.T.);
50#88=ORIENTED_EDGE('',*,*,#81,.T.);#89=ORIENTED_EDGE('',*,*,#85,.T.);
51#90=EDGE_LOOP('inner1',(#86,#87,#88,#89));
52#91=FACE_INNER_BOUND('',#90,.T.);
53/* === Second inner wire: TINY hole, area ~0.001 (should be removed by threshold)
54 * This is centered at (5.5, 5.5) with side length 0.05 (area = 0.0025)
55 * FixSmallAreaWire should remove this but fails to inspect inner wires. === */
56#100=CARTESIAN_POINT('',(5.475,5.475,0.0));#101=VERTEX_POINT('',#100);
57#102=CARTESIAN_POINT('',(5.525,5.475,0.0));#103=VERTEX_POINT('',#102);
58#104=CARTESIAN_POINT('',(5.525,5.525,0.0));#105=VERTEX_POINT('',#104);
59#106=CARTESIAN_POINT('',(5.475,5.525,0.0));#107=VERTEX_POINT('',#106);
60#110=DIRECTION('',(1.0,0.0,0.0));#111=VECTOR('',#110,0.05);#112=LINE('',#100,#111);
61#113=EDGE_CURVE('inner2_e1',#101,#103,#112,.T.);
62#114=DIRECTION('',(0.0,1.0,0.0));#115=VECTOR('',#114,0.05);#116=LINE('',#102,#115);
63#117=EDGE_CURVE('inner2_e2',#103,#105,#116,.T.);
64#118=DIRECTION('',(-1.0,0.0,0.0));#119=VECTOR('',#118,0.05);#120=LINE('',#104,#119);
65#121=EDGE_CURVE('inner2_e3',#105,#107,#120,.T.);
66#122=DIRECTION('',(0.0,-1.0,0.0));#123=VECTOR('',#122,0.05);#124=LINE('',#106,#123);
67#125=EDGE_CURVE('inner2_e4',#107,#101,#124,.T.);
68#126=ORIENTED_EDGE('',*,*,#113,.T.);#127=ORIENTED_EDGE('',*,*,#117,.T.);
69#128=ORIENTED_EDGE('',*,*,#121,.T.);#129=ORIENTED_EDGE('',*,*,#125,.T.);
70#130=EDGE_LOOP('inner2',(#126,#127,#128,#129));
71#131=FACE_INNER_BOUND('',#130,.T.);
72#140=ADVANCED_FACE('face_small_inner_wire',(#51,#91,#131),#14,.T.);
73/* === Mandatory product context chain === */
74#9000=PRODUCT_CONTEXT('',#1,'mechanical');
75#9001=PRODUCT('Tfa093','Tfa093','',(#9000));
76#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
77#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
78#9004=PRODUCT_DEFINITION('','',#9002,#9003);
79#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
80#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
81#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
82#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
83#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
84#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
85#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9020));
86#9020=OPEN_SHELL('shell',(#140));
87#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
88#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
89ENDSEC;
90END-ISO-10303-21;