step-examples/12-3c-faces/Tfa177.stp
Sources
- synthesized — no external source cited
Description
PLANE face with a triangular inner wire (collapsed-tip pin) crashes the reader (SIGSEGV) even with the inner wire removed; pin-face checking is never reached
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming the ADVANCED_FACE (not the inner wire specifically, since removing the inner bound entirely still reproduces the crash): the crash's true trigger lies elsewhere in this file's construction, so a correct kernel must isolate and reject whatever malformed construct is actually responsible with a diagnostic before shape translation, rather than aborting the process — the collapsed-tip triangular inner wire itself is not the cause and must not be blamed by any diagnostic that is emitted.
Notes
Corrected 2026-07-17 (truth-in-labeling audit, Q14 second half): retitled/redescribed as an honest crash-robustness fixture — original claimed pin-face checking produces a specific silent misclassification/undefined-behavior outcome; in reality the process crashes before that method (or any face-repair/small-face-check method) is ever reached. The crash itself is genuine and is retained as the fixture's real, verified defect (Expected validation unchanged: `signal(11)/signal(11)`). Part of the ~127-entry face-repair/small-face-check misnomer family identified in the truth-in-labeling audit — see `BACKLOG.md` Q14 for the full list and remediation approach. Synonyms: "collapsed-pin-tip crash persists without inner wire".
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/* Tfa177 - ShapeAnalysis_CheckSmallFace.CheckPin near-zero-tip-angle 3 * Defect: CheckPin classifies a pin vertex by measuring the tip angle; when 4 * the pin is collapsed (tip angle is exactly 0°), the angle is meaningless 5 * and the classification produces an undefined verdict that can trigger 6 * downstream null-pointer dereferences. 7 * Reproducer: ADVANCED_FACE with a pin-shaped wire where the tip has zero angle. 8 */ 9HEADER; 10FILE_DESCRIPTION(('Tfa177 CheckPin collapsed tip angle'),'2;1'); 11FILE_NAME('Tfa177.stp','2026-06-15T00:00:00',(''),(''), 12 'cad-research-suite','',''); 13FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 14ENDSEC; 15DATA; 16#1=APPLICATION_CONTEXT('automotive design'); 17#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 18 'automotive_design',2009,#1); 19#10=CARTESIAN_POINT('origin',(0.0,0.0,0.0)); 20#11=DIRECTION('z',(0.0,0.0,1.0)); 21#12=DIRECTION('x',(1.0,0.0,0.0)); 22#13=AXIS2_PLACEMENT_3D('plc',#10,#11,#12); 23#20=PLANE('base_plane',#13); 24/* Outer square wire */ 25#200=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#201=VERTEX_POINT('',#200); 27#202=CARTESIAN_POINT('',(10.0,0.0,0.0)); 28#203=VERTEX_POINT('',#202); 29#204=CARTESIAN_POINT('',(10.0,10.0,0.0)); 30#205=VERTEX_POINT('',#204); 31#206=CARTESIAN_POINT('',(0.0,10.0,0.0)); 32#207=VERTEX_POINT('',#206); 33/* Pin wire: sharp triangle with collapsed tip */ 34#210=CARTESIAN_POINT('',(2.0,2.0,0.0)); 35#211=VERTEX_POINT('',#210); 36#212=CARTESIAN_POINT('',(8.0,2.0,0.0)); 37#213=VERTEX_POINT('',#212); 38#214=CARTESIAN_POINT('',(5.0,8.0,0.0)); 39#215=VERTEX_POINT('',#214); 40#216=CARTESIAN_POINT('',(5.0,8.0,0.0)); 41#217=VERTEX_POINT('',#216); 42/* Outer wire edges */ 43#300=VECTOR('',(1.0,0.0,0.0),10.0); 44#301=LINE('',#200,#300); 45#302=EDGE_CURVE('',#201,#203,#301,.T.); 46#303=VECTOR('',(0.0,1.0,0.0),10.0); 47#304=LINE('',#202,#303); 48#305=EDGE_CURVE('',#203,#205,#304,.T.); 49#306=VECTOR('',(-1.0,0.0,0.0),10.0); 50#307=LINE('',#204,#306); 51#308=EDGE_CURVE('',#205,#207,#307,.T.); 52#309=VECTOR('',(0.0,-1.0,0.0),10.0); 53#310=LINE('',#206,#309); 54#311=EDGE_CURVE('',#207,#201,#310,.T.); 55/* Pin wire edges - collapsed tip */ 56#320=VECTOR('',(1.0,0.0,0.0),6.0); 57#321=LINE('',#210,#320); 58#322=EDGE_CURVE('',#211,#213,#321,.T.); 59#323=VECTOR('',(-0.428,0.428,0.0),8.485); 60#324=LINE('',#212,#323); 61#325=EDGE_CURVE('',#213,#215,#324,.T.); 62/* Degenerate edge: both vertices at same point (collapsed tip) */ 63#326=VECTOR('',(0.0,0.0,0.0),1.0); 64#327=LINE('',#214,#326); 65#328=EDGE_CURVE('',#215,#217,#327,.T.); 66#329=VECTOR('',(-0.428,-0.428,0.0),8.485); 67#330=LINE('',#216,#329); 68#331=EDGE_CURVE('',#217,#211,#330,.T.); 69/* Oriented edges */ 70#400=ORIENTED_EDGE('',*,*,#302,.T.); 71#401=ORIENTED_EDGE('',*,*,#305,.T.); 72#402=ORIENTED_EDGE('',*,*,#308,.T.); 73#403=ORIENTED_EDGE('',*,*,#311,.T.); 74#410=ORIENTED_EDGE('',*,*,#322,.T.); 75#411=ORIENTED_EDGE('',*,*,#325,.T.); 76#412=ORIENTED_EDGE('',*,*,#328,.T.); 77#413=ORIENTED_EDGE('',*,*,#331,.T.); 78/* Loops */ 79#500=EDGE_LOOP('',(#400,#401,#402,#403)); 80#501=FACE_OUTER_BOUND('',#500,.T.); 81#510=EDGE_LOOP('',(#410,#411,#412,#413)); 82#511=FACE_INNER_BOUND('',#510,.F.); 83#600=ADVANCED_FACE('pin_collapsed_tip',(#501,#511),#20,.T.); 84#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 85#9001=PRODUCT('Tfa177','Tfa177','',(#9000)); 86#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 87#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 88#9004=PRODUCT_DEFINITION('','',#9002,#9003); 89#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 90#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 91#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 92#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 93#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 94#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 95#9020=OPEN_SHELL('wrap_shell',(#600)); 96#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9020)); 97#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 98#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 99ENDSEC; 100END-ISO-10303-21;