[Gmsh] Archlinux - Error saving MED file

Michele Mocciola mimocciola at yahoo.com
Sat Apr 30 20:12:41 CEST 2016


I solved my issue in saving MED mesh.Error is caused by a reference to a volatile address in GModelIO_MED.cpp (see https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=29032683 for more info). I attached the patch that solves reported error, I hope it's useful.
Archlinux uses gcc 5.3. New Cxx11 default ABI highlighted the problem.Regards.
Michele Mocciola


> On archlinux, saving mesh on MED file, I have the following error> >   _MEDmeshDatagroupOpen.c [45] : Erreur à l'ouverture du groupe >   _MEDmeshDatagroupOpen.c [45] : du maillage >   _MEDmeshDatagroupOpen.c [46] : meshname = "1D_6">   MEDmeshNodeCoordinateWr.c [73] : Erreur à l'ouverture du groupe >   MEDmeshNodeCoordinateWr.c [73] : du maillage >   MEDmeshNodeCoordinateWr.c [74] : _meshpath = "">   MEDmeshNodeWr.c [72] : Erreur d'appel de l'API >   MEDmeshNodeWr.c [72] : MEDmeshNodeCoordinateWr>   _MEDmeshDatagroupOpen.c [45] : Erreur à l'ouverture du groupe >   _MEDmeshDatagroupOpen.c [45] : du maillage >   _MEDmeshDatagroupOpen.c [46] : meshname = "1D_6">   _MEDmeshAdvancedWr.c [125] : Erreur à l'ouverture du groupe >   _MEDmeshAdvancedWr.c [125] : du maillage >   _MEDmeshAdvancedWr.c [126] : _meshpath = "">   MEDmeshElementWr.c [79] : Erreur d'appel de l'API >   MEDmeshElementWr.c [79] : MEDmeshElementConnectivityWr>   _MEDmeshDatagroupOpen.c [45] : Erreur à l'ouverture du groupe >   _MEDmeshDatagroupOpen.c [45] : du maillage >   _MEDmeshDatagroupOpen.c [46] : meshname = "1D_6">   _MEDmeshAdvancedWr.c [125] : Erreur à l'ouverture du groupe >   _MEDmeshAdvancedWr.c [125] : du maillage >   _MEDmeshAdvancedWr.c [126] : _meshpath = "">   MEDmeshElementWr.c [79] : Erreur d'appel de l'API >   MEDmeshElementWr.c [79] : MEDmeshElementConnectivityWr> > 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.> Any idea? Help appreciated!> >  Michele Mocciola
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20160430/02151d46/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: string-refpointer.diff
Type: text/x-patch
Size: 514 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20160430/02151d46/attachment.diff>


More information about the gmsh mailing list