FS#50829 - [opencascade] 6.9.1-3 breaks FreeCAD
Attached to Project:
Community Packages
Opened by Lukas K. (luk4s) - Monday, 19 September 2016, 09:21 GMT
Last edited by Florian Pritz (bluewind) - Saturday, 24 September 2016, 16:31 GMT
Opened by Lukas K. (luk4s) - Monday, 19 September 2016, 09:21 GMT
Last edited by Florian Pritz (bluewind) - Saturday, 24 September 2016, 16:31 GMT
|
Details
Description:
With opencascade 6.9.1-3 opening documents containing STEP models in FreeCAD crashes it. Freecad version 0.16-5 Steps to reproduce: Open the attached document in FreeCAD with opencascade 6.9.1-3 installed. FreeCAD will crash in opencascade code. |
This task depends upon
Closed by Florian Pritz (bluewind)
Saturday, 24 September 2016, 16:31 GMT
Reason for closing: Fixed
Additional comments about closing: opencascade 6.9.1-7
Saturday, 24 September 2016, 16:31 GMT
Reason for closing: Fixed
Additional comments about closing: opencascade 6.9.1-7
I'm seeing this after the update:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff1626c10 in BSplCLib::FirstUKnotIndex(int, TColStd_Array1OfInteger const&) () from /opt/opencascade/lib/libTKMath.so.0
6.9.1-3 added a backport patch from 7.0.0 as requested in
FS#50684But it seems strange to diverge from the official upstream version. If this patch is really required wouldn't it make sense to just move to 7.0.0?The culprit in this case:
../../../../src/BSplCLib/BSplCLib.cxx:321:13: warning: the compiler can assume that the address of ‘Mults’ will always evaluate to ‘true’ [-Waddress]
if (&Mults) {
Instrumenting this function with printf revealed that gcc indeed does assume that &Mults == true.
The opencascade devs fixed this problem in 7.0.0. https://tracker.dev.opencascade.org/view.php?id=26042
Options we have right now:
- Compiling with -O0 might do
- Backport the patch mentioned in the opencascade tracker
Please test if it also works for you.