[Gmsh] gmsh crashing with no error message

Max Orok morok at mevex.com
Wed Sep 26 14:34:47 CEST 2018


Hi Dominic,

This looks like undefined behaviour, in that the format specifier should be
correct to prevent crashing.
The program is likely trying to dereference 4, which is probably a
segmentation fault.

Sincerely,
Max Orok

On Wed, Sep 26, 2018 at 8:26 AM Dominic North <dj.north at bristol.ac.uk>
wrote:

> Hi Everyone,
> I hope you can help please!
>
> Gmsh is crashing whenever an error occurs – the whole program stops
> working and a Windows error message appears saying: “gmsh.exe has stopped
> working.”
>
>
>
> This happens even on this one-line script (“testFile.geo”, in the same
> directory as gmsh.exe):
>
>
>
>
>
> Printf("testLine %s", 4);
>
>
>
>
>
>
>
> NOTE, if the format specifier is correct, there is no error. i.e.
> “testLine %g”, 4); .
>
> This error occurs if the file is loaded in the GUI, or via command line.
>
>
>
> If anyone can help I would be very grateful!
> Best regards,
> Dominic
>
>
>
> Version info:
>
>
>
> C:\ONELAB>Version          : 4.0.2-git-766232cc6
>
> License          : GNU General Public License
>
> Build OS         : Windows64
>
> Build date       : 20180914
>
> Build host       : gmsh.info
>
> Build options    : 64Bit Ann Bamg Bfgs Blas Blossom Cgns DIntegration Fltk
> Gmm Hxt Jpeg(Fltk) Kbipack Lapack MathEx Med Mesh Metis Mmg3d Mpeg
> NativeFileChooser Netgen NoSocklenT ONELAB ONELABMetamodel OpenCASCADE
> OpenGL OptHom PETSc Parser Plugins Png(Fltk) Post SLEPc Solver TetGen/BR
> Voro++ Zlib(Fltk)
>
> FLTK version     : 1.4.0
>
> PETSc version    : 3.9.3 (complex arithmtic)
>
> OCC version      : 7.3.1
>
> MED version      : 3.3.1
>
> Packaged by      : nt authority system
>
> Web site         : http://gmsh.info
>
> Mailing list     : gmsh at onelab.info
>
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
>


-- 
Max Orok
Contractor
www.mevex.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180926/116aae57/attachment.html>


More information about the gmsh mailing list