[Gmsh] GetEnv("PWD") segfaults

Torquil Macdonald Sørensen torquil at gmail.com
Sun May 25 21:19:36 CEST 2014


Hi!

The following geo-file works for me and prints the correct output in the 
GMSH message console:

-----------------------------------
s = GetEnv("HOME");
Printf(s);
------------------------------------

but the following causes a segfault:

--------------------------------------
s = GetEnv("PWD");
-----------------------------------------

Both environment variables exist on my system, as can be seen from the 
shell:

$ echo $HOME
/mn/anatu/cma-u3/tmac

$ echo $PWD
/mn/anatu/cma-u3/tmac/programming/fem/gmsh

I'm using today's GMSH nightly source, and FLTK 1.3.2, built with

$ gcc --version
gcc (GCC) 4.9.1 20140521 (prerelease)

otherwise it is Redhat Enterprise Linux 6.5.

Best regards
Torquil Sørensen