segmentation fault with Geometry.OCCConnectFaces = 1
Hi,
I am getting a segmentation fault using svn revision 20472 with the attached input 2cil.geo, which merges a step file generated by FreeCAD using the same OCE version as the one used to compile Gmsh after setting Geometry.OCCConnectFaces = 1. The step contains two concentric cylinders, which I want them to share the common surface. The same segfault at the same location appears if using brep or iges.
$ gdb --args gmsh -3 2cil.geo [...] (gdb) run [...]
Dump of 0 Locations
edges [ ] in faces [ 2 3 ] edges [ 1 ] in face [ 1 ] edges [ 1 5 6 ] in face [ 7 ] edges [ 2 3 4 ] in face [ 4 ] edges [ 2 5 ] in face [ 5 ] edges [ 4 6 ] in face [ 6 ] Check face 3 and 2 replace face 3 with 2 Info : ----------------------------------- Info : Compounds : 1 (1) Info : Composite solids : 0 (0) Info : Solids : 2 (2) Info : Shells : 2 (2) Info : Wires : 8 (9) Info : Faces : 6 (7) Info : Edges : 6 (9) Info : Vertices : 4 (6) Info : Totol surface area : 1407.43 (1759.29) Info : ----------------------------------- Info : Done reading '2cil.step' Info : Done reading '2cil.geo' Info : Meshing 1D... Info : Meshing curve 1 (Line) Info : Meshing curve 2 (Circle) Info : Meshing curve 3 (Line) Info : Meshing curve 4 (Circle) Info : Meshing curve 5 (Circle) Info : Meshing curve 6 (Circle) Info : Done meshing 1D (0.004 s) Info : Meshing 2D... Info : Meshing surface 1 (Cylinder, MeshAdapt)
Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6bcf76c in BDS_Point::del (this=0xa8e060, e=0xb201a0) at /home/gtheler/codigos/3ros/build/gmsh/Mesh/BDS.h:155 155 if(*it == e){ (gdb) where #0 0x00007ffff6bcf76c in BDS_Point::del (this=0xa8e060, e=0xb201a0) at /home/gtheler/codigos/3ros/build/gmsh/Mesh/BDS.h:155 #1 (closed) 0x00007ffff6bcb89f in BDS_Mesh::del_edge (this=0xa8c470, e=0xb201a0) at /home/gtheler/codigos/3ros/build/gmsh/Mesh/BDS.cpp:468 #2 (closed) 0x00007ffff6bcc78a in BDS_Mesh::split_edge (this=0xa8c470, e=0xb201a0, mid=0xabc6b0) at /home/gtheler/codigos/3ros/build/gmsh/Mesh/BDS.cpp:688 #3 (closed) 0x00007ffff6af383c in splitEdgePass (gf=0xa8b6b0, m=..., MAXE_=1.3999999999999999, nb_split=@0x7fffffffcdcc: 0) at /home/gtheler/codigos/3ros/build/gmsh/Mesh/meshGFaceBDS.cpp:536 #4 (closed) 0x00007ffff6af458e in refineMeshBDS (gf=0xa8b6b0, m=..., NIT=10, computeNodalSizeField=true, recoverMapInv=0x7fffffffcfa0) at /home/gtheler/codigos/3ros/build/gmsh/Mesh/meshGFaceBDS.cpp:698 #5 (closed) 0x00007ffff6ac27cc in meshGenerator (gf=0xa8b6b0, RECUR_ITER=0, repairSelfIntersecting1dMesh=true, onlyInitialMesh=false, debug=false, replacement_edges=0x0) at /home/gtheler/codigos/3ros/build/gmsh/Mesh/meshGFace.cpp:1591 #6 (closed) 0x00007ffff6ac7eeb in meshGFace::operator() (this=0x7fffffffdbf0, gf=0xa8b6b0, print=true) at /home/gtheler/codigos/3ros/build/gmsh/Mesh/meshGFace.cpp:2562 #7 (closed) 0x00007ffff6aad9e6 in Mesh2D (m=0x7ab100) at /home/gtheler/codigos/3ros/build/gmsh/Mesh/Generator.cpp:349 #8 (closed) 0x00007ffff6aaef47 in GenerateMesh (m=0x7ab100, ask=3) at /home/gtheler/codigos/3ros/build/gmsh/Mesh/Generator.cpp:622 #9 (closed) 0x00007ffff68fa132 in GModel::mesh (this=0x7ab100, dimension=3) at /home/gtheler/codigos/3ros/build/gmsh/Geo/GModel.cpp:571 #10 (closed) 0x00007ffff66b458c in GmshBatch () at /home/gtheler/codigos/3ros/build/gmsh/Common/Gmsh.cpp:300 #11 (closed) 0x000000000040159d in main (argc=3, argv=0x7fffffffe008) at /home/gtheler/codigos/3ros/build/gmsh/Fltk/Main.cpp:38 (gdb)