On Tue, 25 Mar 2014 15:19:59 +0100
Jan Blechta <[email protected]> wrote:

> On Tue, 25 Mar 2014 15:03:41 +0100
> Johan Hake <[email protected]> wrote:
> 
> > 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?
> 
> It does not. On my machine, mentioned outcommented code does
> 
>   commands.getstatusoutput -> os.popen -> posix.popen -> [6]

Or rather
http://svn.python.org/projects/python/tags/r27a3/Modules/posixmodule.c
than [6].

Jan

> 
> But this maybe very system dependent, so it may work somewhere.
> 
> Jan
> 
> > 
> > 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

_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to