MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031349Community[OCCT] OCCT:Modeling Datapublic2020-02-05 14:432020-09-15 12:13
Reportertaoyouh 
Assigned Tomsv 
PrioritynormalSeverityjust a question 
StatusnewResolutionopen 
PlatformVC++ 2019 64 bitOSWindowsOS Version10
Product Version[OCCT] 6.3.1 
Target Version[OCCT] 7.6.0*Fixed in Version 
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
Attached Files

- Relationships

-  Notes
(0090809)
kgv (developer)
2020-03-04 12:11

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 View Revisions
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*


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker