[Gmsh] "gmsh: free(): invalid next size" error when partitioning on 64 bit Ubuntu machine

Daniel Wheeler daniel.wheeler2 at gmail.com
Wed Dec 14 17:51:16 CET 2011


Hi,

gmsh is giving the following error:

  $ gmsh tmp.geo -3 -nopopup -part 2 -format msh -o tmp.msh
  Info    : Running 'gmsh tmp.geo -3 -nopopup -part 2 -format msh -o
tmp.msh' [1
  node(s), max. 2 thread(s)]
  ...
  Info    : 84 vertices 198 elements
  Info    : Building graph...
  Info    : Partitioning graph...
  *** glibc detected *** gmsh: free(): invalid next size (fast):
0x000000000225f000 ***
  ======= Backtrace: =========
  /lib/x86_64-linux-gnu/libc.so.6(+0x78a96)[0x7f0b17474a96]
  /lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f0b17478d7c]
 gmsh(_Z7fillit_IN9__gnu_cxx17__normal_iteratorIPP11MHexahedronSt6vectorIS3_SaIS3_EEEEEvRSt8multimapI5MFaceP8MElement9Less_FaceSaISt4pairIKSA_SC_EEET_SK_+0x265)

 [0x7c2a35]
 ...
 7f0b17794000-7f0b17795000 rw-p 00198000 08:01 3674265
/lib/x86_64-
 linux-gnu/libc-2.13.soAborted

when using the following geo file:

            ny       = 1;
            nx       = 20;
            nz       = 1;
            cellSize = 1 - 0.005;
            height   = 1;
            width    = 20;
            depth    = 1;

            Point(1) = {0, 0, 0, cellSize};
            Point(2) = {width, 0, 0, cellSize};
            Line(3) = {1, 2};
            out[] = Extrude{0, height, 0} {
                Line{3}; Layers{ ny }; Recombine;
            };
            Extrude{0, 0, depth} {
                Surface{ out[1] }; Layers{ nz }; Recombine;
            }

This geo file works fine with only one partition. The system is

  $ uname -a
  Linux Sandbox 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC
2011
  x86_64 x86_64 x86_64 GNU/Linux

I'm using the system gmsh (the one you get with apt-get on Ubuntu)

  $ gmsh --version
  2.5.1
  $ which gmsh
  /usr/bin/gmsh

An older "hand built" gmsh in /usr/local/bin works fine for this problem

  $ /usr/local/bin/gmsh --version
  2.5.0
  $ /usr/local/bin/gmsh tmp.geo -3 -nopopup -part 2 -format msh -o tmp.msh
  Info    : Running '/usr/local/bin/gmsh-bkup tmp.geo -3 -nopopup -part 2
-format msh
  -o tmp.msh' [1 node(s), max. 1 thread(s)]
  ...
  Info    : Stopped on Wed Dec 14 11:47:02 2011

Could this be a 64 versus 32 bit library issue with the system install or
something like that?

Thanks

-- 
Daniel Wheeler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20111214/e32da422/attachment.html>