MPIAbort should be called when DOLFIN throws an error

Bug #1096627 reported by Garth Wells
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
DOLFIN
New
High
Unassigned

Bug Description

DOLFIN can deadlock when one process throws a error and others don't. The solution is probably to call MPIAbort when throwing an error.

Changed in dolfin:
importance: Undecided → High
Revision history for this message
Johan Hake (johan-hake) wrote : Re: [Bug 1096627] [NEW] MPIAbort should be called when DOLFIN throws an error

I guess this is a problem in the Python interface too, when Exceptions
are raised. If we implement a call to MPIAbort as part of dolfin_error,
it is another argument to not only py3fy all Python exceptions, but to
replace them with calls to dolfin_error.

Johan

On 01/06/2013 05:31 PM, Garth Wells wrote:
> Public bug reported:
>
> DOLFIN can deadlock when one process throws a error and others don't.
> The solution is probably to call MPIAbort when throwing an error.
>
> ** Affects: dolfin
> Importance: High
> Status: New
>
> ** Changed in: dolfin
> Importance: Undecided => High
>

Revision history for this message
Martin Sandve Alnæs (martinal) wrote :

Agree in principle. But keep in mind that some python exceptions are part
of special function protocols and are not errors.

Martin, on the train to Cambridge
Den 6. jan. 2013 19:15 skrev "Johan Hake" <email address hidden>
følgende:

> I guess this is a problem in the Python interface too, when Exceptions
> are raised. If we implement a call to MPIAbort as part of dolfin_error,
> it is another argument to not only py3fy all Python exceptions, but to
> replace them with calls to dolfin_error.
>
> Johan
>
> On 01/06/2013 05:31 PM, Garth Wells wrote:
> > Public bug reported:
> >
> > DOLFIN can deadlock when one process throws a error and others don't.
> > The solution is probably to call MPIAbort when throwing an error.
> >
> > ** Affects: dolfin
> > Importance: High
> > Status: New
> >
> > ** Changed in: dolfin
> > Importance: Undecided => High
> >
>
> --
> You received this bug notification because you are a member of DOLFIN
> Core Team, which is subscribed to DOLFIN.
> https://bugs.launchpad.net/bugs/1096627
>
> Title:
> MPIAbort should be called when DOLFIN throws an error
>
> Status in DOLFIN:
> New
>
> Bug description:
> DOLFIN can deadlock when one process throws a error and others don't.
> The solution is probably to call MPIAbort when throwing an error.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dolfin/+bug/1096627/+subscriptions
>

Revision history for this message
Johan Hake (johan-hake) wrote :

I see that, but I have silently ignored it...

We could extend the C++ interface to reflect this (templated function or
similar), but it will not cover the most important, TypeError.

To address this properly we need a separate bug report.

Johan

On 01/06/2013 10:57 PM, Martin Sandve Alnæs wrote:
> Agree in principle. But keep in mind that some python exceptions are part
> of special function protocols and are not errors.
>
> Martin, on the train to Cambridge
> Den 6. jan. 2013 19:15 skrev "Johan Hake" <email address hidden>
> følgende:
>
>> I guess this is a problem in the Python interface too, when Exceptions
>> are raised. If we implement a call to MPIAbort as part of dolfin_error,
>> it is another argument to not only py3fy all Python exceptions, but to
>> replace them with calls to dolfin_error.
>>
>> Johan
>>
>> On 01/06/2013 05:31 PM, Garth Wells wrote:
>>> Public bug reported:
>>>
>>> DOLFIN can deadlock when one process throws a error and others don't.
>>> The solution is probably to call MPIAbort when throwing an error.
>>>
>>> ** Affects: dolfin
>>> Importance: High
>>> Status: New
>>>
>>> ** Changed in: dolfin
>>> Importance: Undecided => High
>>>
>>
>> --
>> You received this bug notification because you are a member of DOLFIN
>> Core Team, which is subscribed to DOLFIN.
>> https://bugs.launchpad.net/bugs/1096627
>>
>> Title:
>> MPIAbort should be called when DOLFIN throws an error
>>
>> Status in DOLFIN:
>> New
>>
>> Bug description:
>> DOLFIN can deadlock when one process throws a error and others don't.
>> The solution is probably to call MPIAbort when throwing an error.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/dolfin/+bug/1096627/+subscriptions
>>
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.