Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
dbbf4db1c0d1a10c53f65b4c59914def5650f742
[simgrid.git] / examples / s4u / actor-exiting / s4u-actor-exiting.tesh
1 #!/usr/bin/env tesh
2
3 $ ${bindir:=.}/s4u-actor-exiting ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%P@%h)%e%m%n" --log=no_loc
4 > [  1.000000] (A@Tremblay) I stop now
5 > [  1.000000] (maestro@) Actor A terminates now
6 > [  2.000000] (maestro@) Actor A gets destroyed now
7 > [  2.000000] (maestro@) Actor B terminates now
8 > [  3.000000] (maestro@) Actor B gets destroyed now
9 > [  3.000000] (C@Ginette) And now, induce a deadlock by waiting for a message that will never come
10
11
12 > [  3.000000] (maestro@) Oops! Deadlock or code not perfectly clean.
13 > [  3.000000] (maestro@) 1 actors are still running, waiting for something.
14 > [  3.000000] (maestro@) Legend of the following listing: "Actor <pid> (<name>@<host>): <status>"
15 > [  3.000000] (maestro@) Actor 3 (C@Ginette): waiting for communication activity 0xdeadbeef () in state 0 to finish
16 > [  3.000000] (C@Ginette) I was killed!
17 > [  3.000000] (C@Ginette) The backtrace would be displayed here if --log=no_loc would not have been passed
18 > [  3.000000] (maestro@) Actor C terminates now
19 > [  3.000000] (maestro@) Actor C gets destroyed now