Twi140 — Every LINE puts a direction entity in the slot that requires a vector, so the reader aborts before tail-detection repair is reached

§12.3b

crash topology

Sources

Description

Every LINE puts a direction entity in the slot that requires a vector, so the reader aborts before tail-detection repair is reached

Reproducer recipe

Expected kernel behavior

Reject with a diagnostic naming entities #110 and #131: both LINEs put a DIRECTION where Part 21 requires a `#N` reference to a VECTOR, so neither of the wire's two straight edges can be built. Separately, the middle edge's B_SPLINE_CURVE_WITH_KNOTS (#122) repeats its first pole and its last pole back-to-back (poles #102,#102,#120,#120), which collapses the derivative to zero at both ends of that degree-3 curve — a genuinely degenerate tail tangent that a kernel must also flag once the file parses at all, rather than silently accepting an undefined direction.

Notes

RUNTIME-VERIFIED 2026-08-08 — the recorded crash comes from this file's straight-line direction argument, which references a plain direction where the schema declares a vector carrying a magnitude; repairing that one reference makes the file load, so the titled condition is never reached. See BACKLOG (M).

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/* Twi140 - ShapeAnalysis_Wire.CheckTail B-spline tail
3 * Defect: ShapeAnalysis_Wire.CheckTail B-spline tail
4 */
5HEADER;
6FILE_DESCRIPTION(('Twi140 test case','ShapeAnalysis_Wire.CheckTail B-spline tail'),'2;1');
7FILE_NAME('Twi140.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','','');
8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
9ENDSEC;
10DATA;
11#1=APPLICATION_CONTEXT('automotive_design');
12#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
13#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
14#11=DIRECTION('',(0.0,0.0,1.0));
15#12=DIRECTION('',(1.0,0.0,0.0));
16#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
17
18#20=PLANE('',#13);
19/* Wire with last edge a B-spline whose tangent at endpoint is undefined (degenerate knot) */
20#100=CARTESIAN_POINT('',(0.0,0.0,0.0));
21#101=VERTEX_POINT('',#100);
22#102=CARTESIAN_POINT('',(5.0,0.0,0.0));
23#103=VERTEX_POINT('',#102);
24
25/* First edge: simple line */
26#110=LINE('',#100,#12);
27#111=EDGE_CURVE('',#101,#103,#110,.T.);
28
29/* Second edge: B-spline with degenerate end knot (multiplicity 4 for cubic) */
30#120=CARTESIAN_POINT('',(5.0,5.0,0.0));
31#121=VERTEX_POINT('',#120);
32#122=B_SPLINE_CURVE_WITH_KNOTS('',3,
33  (#102,#102,#120,#120),
34  .UNSPECIFIED.,.F.,.F.,
35  (4,4),(0.0,1.0),
36  .UNSPECIFIED.);
37#123=EDGE_CURVE('',#103,#121,#122,.T.);
38
39/* Closing edge */
40#130=DIRECTION('',(0.0,-1.0,0.0));
41#131=LINE('',#120,#130);
42#132=EDGE_CURVE('',#121,#101,#131,.T.);
43
44#140=ORIENTED_EDGE('',*,*,#111,.T.);
45#141=ORIENTED_EDGE('',*,*,#123,.T.);
46#142=ORIENTED_EDGE('',*,*,#132,.T.);
47#143=EDGE_LOOP('',(#140,#141,#142));
48#144=FACE_OUTER_BOUND('',#143,.T.);
49#145=ADVANCED_FACE('',(#144),#20,.T.);
50#8000=OPEN_SHELL('',(#145));
51
52/* PRODUCT CHAIN - Mandatory */
53#9000=PRODUCT_CONTEXT('',#1,'mechanical');
54#9001=PRODUCT('Twi140','Twi140','',(#9000));
55#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
56#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
57#9004=PRODUCT_DEFINITION('','',#9002,#9003);
58#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
59#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
60#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
61#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
62#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
63#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
64#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#8000));
65#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
66#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
67ENDSEC;
68END-ISO-10303-21;