aothms/IfcOpenShell_PythonWrapper

IfcConvert segfaults

Closed this issue · 4 comments

IfcConvert crashes when converting a file. This is the GDB output:

GNU gdb (GDB) 7.6.2 (Debian 7.6.2-1.1+b1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/IfcConvert...(no debugging symbols found)...done.
(gdb) run wall_with_curves.ifc wall_with_curves.obj 
Starting program: /usr/local/bin/IfcConvert wall_with_curves.ifc wall_with_curves.obj
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Scanning file...
Done scanning file   

Program received signal SIGSEGV, Segmentation fault.
0x00000000005c576d in IfcGeomObjects::InitUnits() ()
(gdb) bt
#0  0x00000000005c576d in IfcGeomObjects::InitUnits() ()
#1  0x00000000005c827f in _Init() ()
#2  0x00000000005b0d84 in main ()

The InitUnits() function is in IfcGeomObjects.cpp at line 647. I'll investigate more...

Hi Yorik,

Do you still have that file somewhere? I can't seem to reproduce this with the wall_with_curves.ifc I have received from you in another thread. There have been some changes made to the InitUnit() function as well after the RC1 build.

Hi Thomas,
It crashes for me with all ifc files, included the wall_with_curves.ifc that you have, but other files too. This is with IfcConvert compiled with the github code here. The IfcConvert from the sourceforge code still works fine. When exactly was the RC1? I can try to compile a version before and after, to see if we can isolate the culprit...

Ah this repo? Sorry, somehow I thought you meant the IfcConvert from the SVN repo, I'll look into it.

I didn't really expect people to use the IfcConvert from this repo, but the issue should be fixed now.