<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1462046066105_7857"><div id="yui_3_16_0_ym19_1_1462046066105_8008">I solved my issue in saving MED mesh.</div><div id="yui_3_16_0_ym19_1_1462046066105_8402" dir="ltr">Error is caused by a reference to a volatile address in GModelIO_MED.cpp (see <a class="edited-link-editor" id="yui_3_16_0_ym19_1_1462046066105_8245" href="https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=29032683">https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=29032683</a> for more info). I attached the patch that solves reported error, I hope it's useful.<br></div><div id="yui_3_16_0_ym19_1_1462046066105_8067" dir="ltr">Archlinux uses gcc 5.3. New Cxx11 default ABI highlighted the problem.</div><div id="yui_3_16_0_ym19_1_1462046066105_8487" dir="ltr">Regards.</div><div id="yui_3_16_0_ym19_1_1462046066105_8486" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1462046066105_8406" dir="ltr">Michele Mocciola<br></div><div id="yui_3_16_0_ym19_1_1462046066105_8319"><br></div><div id="yui_3_16_0_ym19_1_1462046066105_8404"><br></div><div id="yui_3_16_0_ym19_1_1462046066105_7942">> On archlinux, saving mesh on MED file, I have the following error</div></div><div id="yui_3_16_0_ym19_1_1462046066105_7858"><div id="yui_3_16_0_ym19_1_1462046066105_7941" dir="ltr">> </div></div><div id="yui_3_16_0_ym19_1_1462046066105_7860" dir="ltr"><div id="yui_3_16_0_ym19_1_1462046066105_7903" dir="ltr">> _MEDmeshDatagroupOpen.c [45] : Erreur à l'ouverture du groupe </div><div id="yui_3_16_0_ym19_1_1462046066105_7917" dir="ltr">> _MEDmeshDatagroupOpen.c [45] : du maillage </div><div id="yui_3_16_0_ym19_1_1462046066105_7918" dir="ltr">> _MEDmeshDatagroupOpen.c [46] : meshname = "1D_6"</div><div id="yui_3_16_0_ym19_1_1462046066105_7933" dir="ltr">> MEDmeshNodeCoordinateWr.c [73] : Erreur à l'ouverture du groupe </div><div id="yui_3_16_0_ym19_1_1462046066105_8403" dir="ltr">> MEDmeshNodeCoordinateWr.c [73] : du maillage </div><div id="yui_3_16_0_ym19_1_1462046066105_7934" dir="ltr">> MEDmeshNodeCoordinateWr.c [74] : _meshpath = ""</div><div id="yui_3_16_0_ym19_1_1462046066105_8343" dir="ltr">> MEDmeshNodeWr.c [72] : Erreur d'appel de l'API </div><div id="yui_3_16_0_ym19_1_1462046066105_8762" dir="ltr">> MEDmeshNodeWr.c [72] : MEDmeshNodeCoordinateWr</div><div id="yui_3_16_0_ym19_1_1462046066105_8584" dir="ltr">> _MEDmeshDatagroupOpen.c [45] : Erreur à l'ouverture du groupe </div><div id="yui_3_16_0_ym19_1_1462046066105_8583" dir="ltr">> _MEDmeshDatagroupOpen.c [45] : du maillage </div><div id="yui_3_16_0_ym19_1_1462046066105_8267" dir="ltr">> _MEDmeshDatagroupOpen.c [46] : meshname = "1D_6"</div><div id="yui_3_16_0_ym19_1_1462046066105_8266" dir="ltr">> _MEDmeshAdvancedWr.c [125] : Erreur à l'ouverture du groupe </div><div id="yui_3_16_0_ym19_1_1462046066105_8760" dir="ltr">> _MEDmeshAdvancedWr.c [125] : du maillage </div><div id="yui_3_16_0_ym19_1_1462046066105_8246" dir="ltr">> _MEDmeshAdvancedWr.c [126] : _meshpath = ""</div><div id="yui_3_16_0_ym19_1_1462046066105_8243" dir="ltr">> MEDmeshElementWr.c [79] : Erreur d'appel de l'API </div><div id="yui_3_16_0_ym19_1_1462046066105_8233" dir="ltr">> MEDmeshElementWr.c [79] : MEDmeshElementConnectivityWr</div><div id="yui_3_16_0_ym19_1_1462046066105_8836" dir="ltr">> _MEDmeshDatagroupOpen.c [45] : Erreur à l'ouverture du groupe </div><div id="yui_3_16_0_ym19_1_1462046066105_9452" dir="ltr">> _MEDmeshDatagroupOpen.c [45] : du maillage </div><div id="yui_3_16_0_ym19_1_1462046066105_8117" dir="ltr">> _MEDmeshDatagroupOpen.c [46] : meshname = "1D_6"</div><div id="yui_3_16_0_ym19_1_1462046066105_8118" dir="ltr">> _MEDmeshAdvancedWr.c [125] : Erreur à l'ouverture du groupe </div><div id="yui_3_16_0_ym19_1_1462046066105_8676" dir="ltr">> _MEDmeshAdvancedWr.c [125] : du maillage </div><div id="yui_3_16_0_ym19_1_1462046066105_8756" dir="ltr">> _MEDmeshAdvancedWr.c [126] : _meshpath = ""</div><div id="yui_3_16_0_ym19_1_1462046066105_8232" dir="ltr">> MEDmeshElementWr.c [79] : Erreur d'appel de l'API </div><div id="yui_3_16_0_ym19_1_1462046066105_8757" dir="ltr">> MEDmeshElementWr.c [79] : MEDmeshElementConnectivityWr</div><div id="yui_3_16_0_ym19_1_1462046066105_8687" dir="ltr">> </div></div><div id="yui_3_16_0_ym19_1_1462046066105_7886" dir="ltr"><div id="yui_3_16_0_ym19_1_1462046066105_8119" dir="ltr">> I
got the above error with gmsh-2.10.1 and med-3.0.8, however I have
similar error with med-3.10.0, gmsh-2.11.0 and gmsh-2.12.0. I think the
problem is specific to Archlinux, but don't know > where to start
debugging. In attachment you can find geo file.</div></div><div id="yui_3_16_0_ym19_1_1462046066105_7888" dir="ltr"><div id="yui_3_16_0_ym19_1_1462046066105_8837" dir="ltr">> Any idea? Help appreciated!</div></div><div id="yui_3_16_0_ym19_1_1462046066105_7889" dir="ltr"><div id="yui_3_16_0_ym19_1_1462046066105_8230" dir="ltr">> </div></div><div id="yui_3_16_0_ym19_1_1462046066105_8120" dir="ltr">> Michele Mocciola</div><br></div></body></html>