Nice documentation of the problem!

There is some commented out code in output.py which uses commands instead
of popen. This also seems to work. Does that work for you too?

Johan


On Tue, Mar 25, 2014 at 2:57 PM, Jan Blechta <[email protected]>wrote:

> After some digging, it seems that segfaults observed on OFED/InfiniBand
> clusters (see [1], [2], [3]) are caused by implementation of
>
>   subprocess.Popen
>
> Check your local subprocess.py:_execute_child. Parent does not seem to
> keep hands of memory between fork() and exec() (as required [4], [5]),
> especially as it is fiddling with garbage collector.
>
> I tried switching to os.system (posix implementation in [6]) instead of
> subprocess.Popen and it seems promising. Check out [7] or enclosed
> patch.
>
> Jan
>
> [1] https://answers.launchpad.net/dolfin/+question/219270
> [2] https://answers.launchpad.net/dolfin/+question/225946
> [3] http://fenicsproject.org/pipermail/fenics/2013-June/000398.html
> [4] https://www.open-mpi.org/faq/?category=openfabrics#ofa-fork
> [5]
> http://www.openfabrics.org/downloads/OFED/release_notes/OFED_3.12_rc1_release_notes#3.03
> [6] http://svn.python.org/projects/python/trunk/Modules/posixmodule.c
> [7] https://bitbucket.org/blechta/instant/branch/blechta/ofed-fork
> _______________________________________________
> fenics mailing list
> [email protected]
> http://fenicsproject.org/mailman/listinfo/fenics
>
>
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to