[Gmsh] bug in 2.04/5 and works fine in 1.65

Christophe Geuzaine cgeuzaine at ulg.ac.be
Sun Mar 25 20:01:32 CEST 2007


Christophe Prud'homme wrote:
> Christophe, 
> 
> The following code
> Point(1) = {0,0,0,0.1};
> Point(2) = {1,0,0,0.1};
> Point(3) = {1,1,0,0.1};
> Point(4) = {0,1,0,0.1};
> Line(1) = {1,2};
> Line(2) = {2,3};
> Line(3) = {3,4};
> Line(4) = {4,1};
> Line Loop(5) = {4,1,2,3};
> Plane Surface(6) = {5};
> 
> crashes(seg fault) gmsh when trying to mesh the domain
> this happens both with 2.04 and 2.05 but works fine with 1.65
> 


Weird, works fine over here (on Mac, Windows and Linux)... Does the 
version available on our website also crash?




> here is the .gmsh-errors
> 
> Info    : -------------------------------------------------------
> Info    : Gmsh version   : 2.0.5
> Info    : Build OS       : Linux
> Info    : Build options  : GSL NETGEN JPEG PNG ZLIB MATHEVAL ANN
> Info    : Build date     : dimanche 25 mars 2007, 09:31:39 (UTC+0200)
> Info    : Build host     : laptop
> Info    : Packager       : prudhomm
> Info    : Home directory : /home/prudhomm/
> Info    : Launch date    : Sun Mar 25 17:29:58 2007
> Info    : Command line   : gmsh
> Info    : -------------------------------------------------------
> Info    : Point(1) = {0,0,0,0.1};
> Info    : Point(2) = {1,0,0,0.1};
> Info    : Point(3) = {1,1,0,0.1};
> Info    : Point(4) = {0,1,0,0.1};
> Info    : Line(1) = {1,2};
> Info    : Line(2) = {2,3};
> Info    : Line(3) = {3,4};
> Info    : Line(4) = {4,1};
> Info    : Line Loop(5) = {4,1,2,3};
> Info    : Plane Surface(6) = {5};
> Info    : Meshing 1D...
> Info    : Meshing curve 1
> Info    : Meshing curve 2
> Info    : Meshing curve 3
> Info    : Meshing curve 4
> Info    : Mesh 1D complete (0 s)
> Info    : Mesh
> Info    : Meshing 2D...
> Info    : Meshing surface 6 (Plane)
> Fatal   : Segmentation violation (invalid memory reference)
>         : ------------------------------------------------------
>         : You have discovered a bug in Gmsh! You may report it
>         : by e-mail (together with any helpful data permitting to
>         : reproduce it) to <gmsh at geuz.org>
> Info    : Writing '/home/prudhomm/.gmsh-errors'
> 
> C.


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine