Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0032444Community[OCCT] OCCT:Modeling Algorithmspublic2021-06-16 16:122021-09-14 16:51
ReporterJerome Caucat 
Assigned Tomsv 
PlatformLinuxOSUbuntu 20.04OS Version64 bit
Product Version 
Target VersionFixed in Version 
Summary0032444: BRepOffsetAPI_MakePipeShell crash when using -DT mode and DT_ShapeDivide on the spine
DescriptionUsing OCCT 7.5.2 with the patch for [^] and [^]

When trying to build a pipe with the provided spine, profiles and .tcl file I get a crash in C++ and in DRAW, with the following error in DRAW:

An exception was caught 0x555b1fa4b5c0 : OSD_SIGSEGV: SIGSEGV 'segmentation violation' detected. Address 60

I am using "DT_ShapeDivide" with a tolerance of 0.001 on the spine, "setsweep -DT" and "buildsweep r -C -S".
TagsNo tags attached.
Test case number
Attached Fileszip file icon (10,476 bytes) 2021-06-16 16:12

- Relationships
related to 0032445newmsv BRepOffsetAPI_MakePipeShell crash when using -DT mode and DT_ShapeDivide on the spine 
related to 0032446newmsv BRepOffsetAPI_MakePipeShell crash when using -DT mode and DT_ShapeDivide on the spine 
related to 0031041assignedjgv Modeling Algorithms - Crash in BRepOffsetAPI_MakePipeShell 

-  Notes
Jerome Caucat (reporter)
2021-09-14 16:43

The problem is still reproduced with OCCT 7.5.3.

In the function BRepFill_TrimShellCorner::ChooseSection in the file src/BRepFill/BRepFill_TrimShellCorner.cxx two edges, FirstEdge and LastEdge, are initialized with the result of the function FindEdgeCloseToBisectorPlane.

But in our case FindEdgeCloseToBisectorPlane fails and LastEdge is null.

LastEdge is then used without being tested for nullity, which causes the crash.

The same problem happens for [^]

And for [^] it is FirstEdge that is null.

This bug [^] is also potentially related.

I suppose a possible fix could be to check that FirstEdge and LastEdge are not null before using them.

But what makes FindEdgeCloseToBisectorPlane fail? It is some criteria of the spine? Can the situation be detected upstream?

- Issue History
Date Modified Username Field Change
2021-06-16 16:12 Jerome Caucat New Issue
2021-06-16 16:12 Jerome Caucat Assigned To => msv
2021-06-16 16:12 Jerome Caucat File Added:
2021-09-14 16:43 Jerome Caucat Note Added: 0104076
2021-09-14 16:50 msv Relationship added related to 0032445
2021-09-14 16:51 msv Relationship added related to 0032446
2021-09-14 16:51 msv Relationship added related to 0031041

Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker