DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0025568

SIGSEGV in thrusections with edge without 3D curve

CommunityOCCT:Modeling Algorithmsclosed6 public notes

Search issues

Description

The shape Loft-01-section is valid. The shape Loft-00-section is invalid (BRepCheck_No3DCurve). Creating a loft between those two causes a SIGSEGV.

versions tested:
6.7.0
6.8.1.dev-c0bd0de (master of 2014-12-05)

Steps to reproduce

pload MODELING
restore Attachment 1 (BREP) Loft-00-section
restore Attachment 2 (BREP) Loft-01-section
thrusections Loft 0 0 Loft-00-section Loft-01-section
donly Loft

The test case is bugs modalg_5 bug25568.

Additional information

Program received signal SIGSEGV, Segmentation fault.
0x00007f03736625f6 in Geom_Geometry::Transformed (this=0x0, T=...) at occt/src/Geom/Geom_Geometry.cxx:152
152 Handle(Geometry) G = me->Copy();
(gdb) bt
#0 0x00007f03736625f6 in Geom_Geometry::Transformed (this=0x0, T=...) at occt/src/Geom/Geom_Geometry.cxx:152
#0000001 0x00007f0371b1138f in DetectKPart (Edge1=..., Edge2=...) at occt/src/BRepFill/BRepFill_Generator.cxx:100
#0000002 0x00007f0371b14df4 in BRepFill_Generator::Perform (this=0x7fff56348060) at occt/src/BRepFill/BRepFill_Generator.cxx:651
#3 0x00007f036f9aad22 in BRepOffsetAPI_ThruSections::CreateRuled (this= 0x7fff56348580) at occt/src/BRepOffsetAPI/BRepOffsetAPI_ThruSections.cxx:423
#4 0x00007f036f9aabd1 in BRepOffsetAPI_ThruSections::Build (this= 0x7fff56348580) at /occt/src/BRepOffsetAPI/BRepOffsetAPI_ThruSections.cxx:397

Public activity

6 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


Detailed log of new commits:

Author: msv
Date: Tue Dec 9 01:50:41 2014 +0300

    0025568: SIGSEGV in thrusections with edge without 3D curve
    
    -Set algorithm flag NotDone if there is a non-degenerated edge with absent 3D curve.
    -Check IsDone flag in thrusection command.
    -Add test case bugs/modalg_5/bug25568.
02Commenter 2
Please review.
03Commenter 3
Ok.
04Commenter 4
Dear Commenter 1,
Branch CR25568 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested on Release mode.
[revision removed]

Number of compiler warnings:

occt component :
Linux: 18 (18 on master)
Windows: 0 (0 on master)

products component :
Linux: 11 (11 on master)
Windows: 1 (1 on master)

Regressions/Differences:
No regressions/differences

Testing cases:
http://occt-tests.nnov.opencascade.com/CR25568-master-occt/Debian60-64/bugs/modalg_5/bug25568.html
http://occt-tests.nnov.opencascade.com/CR25568-master-occt/Windows-32-VC10/bugs/modalg_5/bug25568.html
bugs modalg_5(010) bug25568: OK

Testing on Linux:
occt component :
Total MEMORY difference: 363481604 / 363562240
Total CPU difference: 46477.31000000036 / 47537.4299999999
products component :
Total MEMORY difference: 111894764 / 111752128
Total CPU difference: 15680.669999999975 / 15933.769999999982

Testing on Windows:
occt component :
Total MEMORY difference: 277392660 / 277181316
Total CPU difference: 35284.0625 / 41681.890625
products component :
Total MEMORY difference: 72464336 / 71216368
Total CPU difference: 10349.546875 / 13037.484375

There are no differences in images found by testdiff.
05Commenter 2
Branch [archived branch] has been updated by Participant.

[revision removed]


Detailed log of new commits:

Author: mkv
Date: Wed Dec 10 20:12:42 2014 +0300

    Small correction of test case for issue CR25568

06Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]