Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Hide pretty nasty issue.
authorArnaud Legrand <arnaud.legrand@imag.fr>
Wed, 25 Apr 2012 23:09:02 +0000 (01:09 +0200)
committerArnaud Legrand <arnaud.legrand@imag.fr>
Wed, 25 Apr 2012 23:13:39 +0000 (01:13 +0200)
commit71469f8fea8bba9558f0fbc1bdb5cd22b0179411
treecec0f5a39fd7dd6abb7c0ca28557efc72a3fb867
parentdb400839b560cdea37d92d1e27a0674a7ea6ac46
Hide pretty nasty issue.

In this example, a process is killed right at the same time as it starts
executing somthing. It creates the surf action but is killed before it
gets the opportunity to wait on it. Consequently, the kill does not clean
up the surf action (so technically, the corresponding resources are still
wasted).

This could be "solved" by doing the kill before the simcall that created
the surf action. But more generally, it raises the issue of all the
data that have been allocated during the MSG_task_execute. There is
something really annoying with the kill. The current MSG implementation
is clearly not protected against kills. In case of kill, when doing a
simcall, we should throw an exception and TRY CATCH everywhere. We're far
from this for now so I leave it for another time.
examples/msg/masterslave/masterslave_kill.tesh