View Issue Details

IDProjectCategoryView StatusLast Update
0032586CommunityOCCT:Modeling Algorithmspublic2021-09-24 13:42
ReporterJerome Caucat Assigned Tomsv 
PrioritynormalSeveritycrash 
Status newResolutionopen 
PlatformLinuxOSUbuntu 20.04 
Product Version7.5.3 
Summary0032586: BRepOffsetAPI_MakePipeShell::Build() crash in BRepTopAdaptor_FClass2d (Segmentation fault)
DescriptionTesting the provided sample with OCCT 753, I get a Segmentation fault while building the BRepOffsetAPI_MakePipeShell in C++ and in DRAW. The crash happens in:

BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(TopoDS_Face const&, double) ()

Here is what I found in src/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx:387:

nbpnts = SeqPnt2d.Length();
PClass.Resize(1, nbpnts, Standard_False);
im1 = nbpnts - 1;
im0 = 1;
PClass(im1) = SeqPnt2d.Value(im1); // <----------------------HERE
PClass(nbpnts) = SeqPnt2d.Value(nbpnts);


It crashes because in my case nbpnts = 0.

Note that in debug or with the cmake option -DBUILD_RELEASE_DISABLE_EXCEPTIONS=OFF an exception is raised instead of the crash.
Steps To Reproducedraw.sh < test_DT.tcl
TagsNo tags attached.
Test case number

Attached Files

  • sample_crash_BRepTopAdaptor_FClass2d.zip (6,656 bytes)

Activities

Jerome Caucat

2021-09-24 13:42

reporter  

sample_crash_BRepTopAdaptor_FClass2d.zip (6,656 bytes)

Issue History

Date Modified Username Field Change
2021-09-24 13:42 Jerome Caucat New Issue
2021-09-24 13:42 Jerome Caucat Assigned To => msv
2021-09-24 13:42 Jerome Caucat File Added: sample_crash_BRepTopAdaptor_FClass2d.zip