[Gmsh] Non-Exception Crash

Bernhard Kubicek bernhard.kubicek at arsenal.ac.at
Mon Nov 12 12:56:10 CET 2007


Dear List,
I just managed to write a geo file that crashes gmsh while meshing with
some specific gmsh configuration file. 

------GMSH OUTPUT---
Info    : Increasing process stack size (8192 kB < 16 MB)
Info    : -------------------------------------------------------
Info    : Gmsh version   : 2.0.8
Info    : Build OS       : Linux
Info    : Build options  : GSL NETGEN JPEG PNG ZLIB MATHEVAL ANN
Info    : Build date     : Sat Aug 11 17:05:53 GMT 2007
Info    : Build host     : rothera
Info    : Packager       : buildd
Info    : Home directory : /home/bkubicek/
Info    : Launch date    : Mon Nov 12 12:35:35 2007
Info    : Command line   : gmsh split1error.geo
Info    : -------------------------------------------------------
Info    : Meshing curve 1001
Info    : Meshing curve 1002
...........
Info    : Meshing curve 1444
Info    : Meshing curve 1445
Info    : Mesh 1D complete (0.012001 s)
terminate called without an active exception
Aborted (core dumped)
--- END GMSH OUTPUT

Also, the generated fgeo-file "gmsh split1error.geo -0 -o split1.fgeo"
contains errors in the messasge console while trying to load.
----
....
Error : Line Loop 1102 is wrong Error : 'split1error.fgeo', line 1039 :
Wrong definition of Ruled Surface 1102: 2 borders instead of 3 or 4
Error : Line Loop 1106 is wrong Error : 'split1error.fgeo', line 1041 :
Wrong definition of Ruled Surface 1106: 2 borders instead of 3 or 4
Error : Line Loop 1110 is wrong Error : 'split1error.fgeo', line 1043 :
Wrong definition of Ruled Surface 1110: 2 borders instead of 3 or 4
Error : Line Loop 1114 is wrong Error : 'split1error.fgeo', line 1045 :
Wrong definition of Ruled Surface 1114: 2 borders instead of 3 or 4
Error : Line Loop 1118 is wrong Error : 'split1error.fgeo', line 1047 :
Wrong definition of Ruled Surface 1118: 2 borders instead of 3 or 4
Error : Line Loop 1122 is wrong Error : 'split1error.fgeo', line 1049 :
Wrong definition of Ruled Surface 1122: 2 borders instead of 3 or 4
Error : Line Loop 1126 is wrong Error : 'split1error.fgeo', line 1051 :
Wrong definition of Ruled Surface 1126: 2 borders instead of 3 or 4
Error : Line Loop 1130 is wrong Error : 'split1error.fgeo', line 1053 :
Wrong definition of Ruled Surface 1130: 2 borders instead of 3 or 4
Error : Line Loop 1131 is wrong Error : Line Loop 1144 is wrong Error :
'split1error.fgeo', line 1057 : Wrong definition of Ruled Surface 1144:
2 borders instead of 3 or 4 Error : Line Loop 1148 is wrong Error :
'split1error.fgeo', line 1059 : Wrong definition of Ruled Surface 1148:
2 borders instead of 3 or 4 Error : Line Loop 1152 is wrong Error :
'split1error.fgeo', line 1061 : Wrong definition of Ruled Surface 1152:
2 borders instead of 3 or 4 Error : Line Loop 1156 is wrong
....
---

The gmsh version 2.0.8 was installed via ubuntu/debian (gutsy 32bit)
synaptic package manager. 


After wiping my gmsh-setting files "~/.gmsh*" everything meshed/flatted
nicely.
The corrupt setting files are attached.

For me, the problem is solved, however I think that there might be bug
somewhere?

very nice greetings,
 Bernhard


-------------- next part --------------
Info    : -------------------------------------------------------
Info    : Gmsh version   : 2.0.8
Info    : Build OS       : Linux
Info    : Build options  : GSL NETGEN JPEG PNG ZLIB MATHEVAL ANN 
Info    : Build date     : Sat Aug 11 17:05:53 GMT 2007
Info    : Build host     : rothera
Info    : Packager       : buildd
Info    : Home directory : /home/bkubicek/
Info    : Launch date    : Wed Nov  7 12:52:19 2007
Info    : Command line   : gmsh line3.geo 
Info    : -------------------------------------------------------
Info    : Reading 'line3.geo'
Error   : 'line3.geo', line 9 : Curve 1 already exists
Error   : Unknown control point 3 in Curve 2
Info    : Read 'line3.geo'
Fatal   : Wrong list index (read)
Info    : Writing '/home/bkubicek/.gmsh-errors'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .gmsh-options
Type: text/x-csrc
Size: 2373 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20071112/7117ce5e/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .gmshrc
Type: text/x-csrc
Size: 1463 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20071112/7117ce5e/attachment-0001.c>
-------------- next part --------------
mm=0.001;
bk=8*mm;
hk=42*mm;
ds=1.5*mm;
hr=15*mm;
br=20*mm;
bs=2*mm;
hs=20*mm;
dk=4*mm;

bkh=bk/2.;
brh=br/2.;
bsh=bs/2.;
dkh=dk/2.;

ms=0.5*mm;
Point(001)= { brh, -hr, 0,  ms};
Point(002)= { brh, -ds, 0,  ms};
Point(003)= { brh, 0, 0,  ms};
Point(004)= { bkh+ds, -ds, 0,  ms};
Point(005)= { bkh+ds, 0, 0,  ms};
Point(006)= { bkh, 0, 0,  ms};

Point(011)= { brh, hk+hr, 0,  ms};
Point(012)= { brh, hk+ds, 0,  ms};
Point(013)= { brh, hk, 0,  ms};
Point(014)= { bkh+ds, hk+ds, 0,  ms};
Point(015)= { bkh+ds, hk, 0,  ms};
Point(016)= { bkh, hk, 0,  ms};

Point(101)= { -brh, -hr, 0,  ms};
Point(102)= { -brh, -ds, 0,  ms};
Point(103)= { -brh, 0, 0,  ms};
Point(104)= { -bkh-ds, -ds, 0,  ms};
Point(105)= { -bkh-ds, 0, 0,  ms};
Point(106)= { -bkh, 0, 0,  ms};

Point(111)= { -brh, hk+hr, 0,  ms};
Point(112)= { -brh, hk+ds, 0,  ms};
Point(113)= { -brh, hk, 0,  ms};
Point(114)= { -bkh-ds, hk+ds, 0,  ms};
Point(115)= { -bkh-ds, hk, 0,  ms};
Point(116)= { -bkh, hk, 0,  ms};

//

Point(020)= { bsh, hk, 0,  ms};
Point(021)= { bsh, hk-hs, 0,  ms};
Point(120)= { -bsh, hk, 0,  ms};
Point(121)= { -bsh, hk-hs, 0,  ms};

//

Line(1001) = {001,002};
Line(1002) = {002,003};
Line(1003) = {002,004};
Line(1004) = {004,005};
Line(1005) = {003,005};
Line(1006) = {005,006};

Line(1011) = {011,012};
Line(1012) = {012,013};
Line(1013) = {012,014};
Line(1014) = {014,015};
Line(1015) = {013,015};
Line(1016) = {015,016};

Line(1021) = {101,102};
Line(1022) = {102,103};
Line(1023) = {102,104};
Line(1024) = {104,105};
Line(1025) = {103,105};
Line(1026) = {105,106};

Line(1031) = {111,112};
Line(1032) = {112,113};
Line(1033) = {112,114};
Line(1034) = {114,115};
Line(1035) = {113,115};
Line(1036) = {115,116};


Circle(1045) = {104,105,106};
Circle(1046) = {6,5,4};
Circle(1047) = {16,15,14};
Circle(1048) = {116,115,114};

//

Line(1049) = {20,21};
Line(1050) = {120,121};
Line(1051) = {21,121};
Line(1052) = {20,120};
Line(1053) = {16,20};
Line(1054) = {120,116};
Line(1055) = {11,111};
Line(1056) = {6,106};
Line(1057) = {1,101};
Line(1058) = {105,115};
Line(1059) = {106,116};
Line(1060) = {6,16};
Line(1061) = {5,15};
//

Line Loop(1062) = {1003,1004,-1005,-1002};
Plane Surface(1063) = {1062};
Line Loop(1064) = {1004,1006,1046};
Plane Surface(1065) = {1064};
Line Loop(1066) = {1006,1060,-1016,-1061};
Plane Surface(1067) = {1066};
Line Loop(1068) = {1016,1047,1014};
Plane Surface(1069) = {1068};
Line Loop(1070) = {1015,-1014,-1013,1012};
Plane Surface(1071) = {1070};
Line Loop(1072) = {1051,-1050,-1052,1049};
Plane Surface(1073) = {1072};
Line Loop(1074) = {1023,1024,-1025,-1022};
Plane Surface(1075) = {1074};
Line Loop(1076) = {1024,1026,-1045};
Plane Surface(1077) = {1076};
Line Loop(1078) = {1026,1059,-1036,-1058};
Plane Surface(1079) = {1078};
Line Loop(1080) = {1036,1048,1034};
Plane Surface(1081) = {1080};
Line Loop(1082) = {1034,-1035,-1032,1033};
Plane Surface(1083) = {1082};
Line Loop(1084) = {1011,1013,-1047,1053,1052,1054,1048,-1033,-1031,-1055};
Plane Surface(1085) = {1084};
Line Loop(1086) = {1021,1023,1045,-1056,1046,-1003,-1001,1057};
Plane Surface(1087) = {1086};
Line Loop(1088) = {1056,1059,-1054,1050,-1051,-1049,-1053,-1060};
Plane Surface(1089) = {1088};


//

Extrude {0,0,dkh} {
  Surface{1087,1089,1073,1085,1079,1067,1069,1081,1083,1071,1063,1075,1077,1065};
}