Closed rainman110 closed 8 years ago
In release mode, Clang creates illegal code in AdvApp2Var_ApproxF2var::mma2fnc_
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:
src/AdvApp2Var/AdvApp2Var_ApproxF2var.cxx
__attribute__ ((noinline))
AdvApp2Var_ApproxF2var
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.
This is fixed in OCCT master, closing.
In release mode, Clang creates illegal code in
AdvApp2Var_ApproxF2var::mma2fnc_
This is a meta issue containing the information from
To reproduce:
The file fillet_crash.brep was downloaded from the occt mantis: fillet_crash.zip
Possible fixes:
src/AdvApp2Var/AdvApp2Var_ApproxF2var.cxx
only with optimization level -O1__attribute__ ((noinline))
to the static functions ofAdvApp2Var_ApproxF2var
as suggested by Roman Lygin