tpaviot / oce

OpenCASCADE Community Edition (OCE): a community driven fork of the Open CASCADE library.
http://groups.google.com/group/oce-dev
GNU Lesser General Public License v2.1
811 stars 284 forks source link

Crash/Illegal instruction with Clang on OS X #621

Closed rainman110 closed 8 years ago

rainman110 commented 8 years ago

In release mode, Clang creates illegal code in AdvApp2Var_ApproxF2var::mma2fnc_

This is a meta issue containing the information from

To reproduce:

   std::ifstream file("fillet_crash.brep");
   TopoDS_Shape shape;
    BRep_Builder b;
    BRepTools::Read(shape, file, b);
    for (TopExp_Explorer exp(shape, TopAbs_EDGE); exp.More(); exp.Next())
    {
        try
        {
            BRepFilletAPI_MakeFillet filletMaker(shape);
            filletMaker.Add(0.165405, TopoDS::Edge(exp.Current()));
            filletMaker.Build();
        }
        catch (...)
        {
        }
    }

The file fillet_crash.brep was downloaded from the occt mantis: fillet_crash.zip

Possible fixes:

ghost commented 8 years ago

Repeat of #520, but we'll leave it open for the time being anyway. #520 was put over to OCCT due to the size of the issue.

ghost commented 8 years ago

This is fixed in OCCT master, closing.