View Issue Details

IDProjectCategoryView StatusLast Update
0031349CommunityOCCT:Modeling Datapublic2023-08-01 15:06
Reportertaoyouh Assigned Tomsv 
PrioritynormalSeverityjust a question 
Status newResolutionopen 
PlatformVC++ 2019 64 bitOSWindows 
Product Version6.3.1 
Target VersionUnscheduled 
Summary0031349: Modeling Data - GC_MakeSegment causes reading from NULL when start point and end point are identical
DescriptionIn OCCT 7.4.0, when start point and end point are identical, the constructor of GC_MakeSegment tries to read at address NULL and causes an access violation.
Steps To Reproduce
pload MODELING
point p0 0 0 0
point p1 1 0 0
gcarc s1 seg p0 p1 # OK
gcarc s0 seg p0 p0 # KO


** Exception ** 000002A848257B20 : StdFail_NotDone: GC_MakeLine::Value() - no result



Compile and run the following code:
    gp_Pnt ps;
    GC_MakeSegment make_segment(ps, ps);
TagsNo tags attached.
Test case number

Activities

kgv

2020-03-04 12:11

developer   ~0090809

The current design of GC tools is throwing an exception only in Debug builds - so that it is expected that application will NEVER pass invalid input to these tools (e.g. pre-validate input):
  StdFail_NotDone_Raise_if (TheError != gce_Done,
                            "GC_MakeArcOfHyperbola::Value() - no result");


So the current behavior - is by design.
It might be reconsidered to throw exception in Release builds (shouldn't harm performance, I think).

Issue History

Date Modified Username Field Change
2020-02-05 14:43 taoyouh New Issue
2020-02-05 14:43 taoyouh Assigned To => msv
2020-03-04 12:01 kgv Summary GC_MakeSegment causes reading from NULL when start point and end point are identical => Modeling Data - GC_MakeSegment causes reading from NULL when start point and end point are identical
2020-03-04 12:07 kgv Steps to Reproduce Updated
2020-03-04 12:11 kgv Note Added: 0090809
2020-03-04 12:13 kgv Severity crash => just a question
2020-03-04 12:13 kgv Product Version => 6.3.1
2020-03-04 12:13 kgv Target Version => 7.5.0
2020-09-15 12:13 msv Target Version 7.5.0 => 7.6.0
2021-08-29 18:53 msv Target Version 7.6.0 => 7.7.0
2022-10-24 10:43 szy Target Version 7.7.0 => 7.8.0
2023-08-01 15:06 dpasukhi Target Version 7.8.0 => Unscheduled