free(): invalid pointer
Hello,
I am facing a weird issue: I have a small python library (https://gitlab.inria.fr/mgenet/dolfin_mech) that uses GMSH; I implemented continuous integration tests on our GitLab instance; problem is: on the (Ubuntu) images in which the tests are run, if gmsh
is imported after the rest of the library the code crashes at the gmsh.initialize()
command; if gmsh
is imported before it works fine. By the way, under MacOS or our cluster (Ubuntu images managed via OpenStack) this problem does not occur.
I tried to make a MWE to illustrate the issue: I made two examples scripts, one (test_aa.py
) that imports gmsh
first, one (test_ab.py
) that imports gmsh
last, cf. the associated commit: https://gitlab.inria.fr/mgenet/dolfin_mech/-/commit/01dbda70b75cb2a3bcfa9de493e935c8d551ce95. Now, when the tests are executed, the first scripts finishes fine, whereas the second script fails, cf. the traces: https://gitlab.inria.fr/mgenet/dolfin_mech/-/jobs/3650051#L7805 (Ubuntu 20.04 image) & https://gitlab.inria.fr/mgenet/dolfin_mech/-/jobs/3650052#L6203 (Ubuntu 22.04 image).
I have a workaround, but I thought this issue might be interesting to report. Thanks so much for all your work.