step-examples/12-1c-syntax/In002.stp
Sources
- OCCT Interface_InterfaceModel.cxx:281 (Interface_LoadWarning) (uncovered class evidence)
Sender
deduced — OCCT uncovered-class sweep
Description
Two different sources of warnings (parser warnings about file syntax vs. semantic warnings about data content) are mapped onto the same severity bucket. A consumer who suppresses load warnings ends up suppressing data warnings too. Typical fixture: a stray comment between HEADER's ENDSEC and the DATA section (parser-level warning) plus a B_SPLINE_CURVE_WITH_KNOTS at the upper-boundary degree (e.g., degree 25, a data-level warning). Bug-reporter language: "warnings hidden", "parser warnings vs data warnings confused".
Reproducer recipe
A file with both a parser-level warning (a stray comment between ENDSEC and DATA, or in another unusual place) and a data-level warning (e.g., a B_SPLINE_CURVE_WITH_KNOTS at the spec-boundary degree).
Expected kernel behavior
Distinguish severity classes; separate warning channels.
Notes
Bug-reporter synonyms: "diagnostic channel confusion". Provenance tier: runtime-only; bytes alone cannot demonstrate this defect; the symptom is the conflation of two diagnostic severity channels emitted by the kernel during parse + transfer. A behavioral test that captures the kernel's diagnostic stream is the appropriate venue. Synonyms: "STEP load warning vs data warning conflated", "diagnostic severity confused", "syntax warning suppresses semantic warning", "warning channel mixed for STEP load", "STEP warning bucket conflated".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
runtime-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'DATA;')contains(b'HEADER;')count(b'ENDSEC;') >= 2
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* In002: Load-time warning vs data-content warning: severity confusion; OCCT Interface_InterfaceModel.cxx:281 (Interface_LoadWarning); two different sources of warnings â parser warnings about file syntax and semantic warnings about data content â are mapped onto the same severity bucket; a consumer who suppresses load warnings ends up suppressing data warnings too; defect: stray comment between HEADER ENDSEC and DATA keyword (parser-level warning) combined with a B_SPLINE_CURVE_WITH_KNOTS at spec-boundary degree 25 (data-level semantic warning); receiver must distinguish severity classes and provide separate warning channels; bug-reporter synonyms: warnings hidden, parser warnings vs data warnings confused, diagnostic channel confusion; GEOMETRIC_CURVE_SET IS NOT used â B-spline entity is the model object */ 3HEADER; 4FILE_DESCRIPTION(('In002'),'2;1'); 5FILE_NAME('In002.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8/* parser-level event: stray comment between HEADER ENDSEC and DATA */ 9DATA; 10#10=B_SPLINE_CURVE_WITH_KNOTS('high_degree_boundary',25,(#100,#101,#102,#103,#104,#105,#106,#107,#108,#109,#110,#111,#112,#113,#114,#115,#116,#117,#118,#119,#120,#121,#122,#123,#124,#125),.UNSPECIFIED.,.F.,.F.,(26,26),(0.0,1.0),.UNSPECIFIED.); 11/* data-level event: B_SPLINE_CURVE_WITH_KNOTS at spec-boundary degree 25 */ 12#100=CARTESIAN_POINT('',(0.0,0.0,0.0)); 13#101=CARTESIAN_POINT('',(1.0,0.0,0.0)); 14#102=CARTESIAN_POINT('',(2.0,0.0,0.0)); 15#103=CARTESIAN_POINT('',(3.0,0.0,0.0)); 16#104=CARTESIAN_POINT('',(4.0,0.0,0.0)); 17#105=CARTESIAN_POINT('',(5.0,0.0,0.0)); 18#106=CARTESIAN_POINT('',(6.0,0.0,0.0)); 19#107=CARTESIAN_POINT('',(7.0,0.0,0.0)); 20#108=CARTESIAN_POINT('',(8.0,0.0,0.0)); 21#109=CARTESIAN_POINT('',(9.0,0.0,0.0)); 22#110=CARTESIAN_POINT('',(10.0,0.0,0.0)); 23#111=CARTESIAN_POINT('',(11.0,0.0,0.0)); 24#112=CARTESIAN_POINT('',(12.0,0.0,0.0)); 25#113=CARTESIAN_POINT('',(13.0,0.0,0.0)); 26#114=CARTESIAN_POINT('',(14.0,0.0,0.0)); 27#115=CARTESIAN_POINT('',(15.0,0.0,0.0)); 28#116=CARTESIAN_POINT('',(16.0,0.0,0.0)); 29#117=CARTESIAN_POINT('',(17.0,0.0,0.0)); 30#118=CARTESIAN_POINT('',(18.0,0.0,0.0)); 31#119=CARTESIAN_POINT('',(19.0,0.0,0.0)); 32#120=CARTESIAN_POINT('',(20.0,0.0,0.0)); 33#121=CARTESIAN_POINT('',(21.0,0.0,0.0)); 34#122=CARTESIAN_POINT('',(22.0,0.0,0.0)); 35#123=CARTESIAN_POINT('',(23.0,0.0,0.0)); 36#124=CARTESIAN_POINT('',(24.0,0.0,0.0)); 37#125=CARTESIAN_POINT('',(25.0,0.0,0.0)); 38ENDSEC; 39END-ISO-10303-21;