Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add $VALGRIND_NO_LEAK_CHECK in tesh files when simgrid-mc is used.
[simgrid.git] / examples / smpi / mc / sendsend.tesh
1 #! ./tesh
2
3 p Testing the permissive model
4 ! timeout 60
5 $ $VALGRIND_NO_LEAK_CHECK ../../../smpi_script/bin/smpirun -quiet -wrapper "${bindir:=.}/../../../bin/simgrid-mc" -np 2 -platform ${platfdir:=.}/cluster_backbone.xml --cfg=smpi/buffering:infty --log=xbt_cfg.thresh:warning ./smpi_sendsend
6 > [0.000000] [mc_dfs/INFO] Start a DFS exploration. Reduction is: dpor.
7 > Sent 0 to rank 1
8 > Sent 1 to rank 0
9 > rank 0 recv the data
10 > rank 1 recv the data
11 > Sent 0 to rank 1
12 > Sent 1 to rank 0
13 > rank 0 recv the data
14 > rank 1 recv the data
15 > Sent 0 to rank 1
16 > Sent 1 to rank 0
17 > rank 1 recv the data
18 > rank 0 recv the data
19 > Sent 1 to rank 0
20 > Sent 0 to rank 1
21 > rank 0 recv the data
22 > rank 1 recv the data
23 > Sent 1 to rank 0
24 > Sent 0 to rank 1
25 > rank 0 recv the data
26 > rank 1 recv the data
27 > Sent 1 to rank 0
28 > Sent 0 to rank 1
29 > rank 1 recv the data
30 > rank 0 recv the data
31 > Sent 1 to rank 0
32 > Sent 0 to rank 1
33 > rank 0 recv the data
34 > rank 1 recv the data
35 > Sent 1 to rank 0
36 > Sent 0 to rank 1
37 > rank 1 recv the data
38 > rank 0 recv the data
39 > [0.000000] [mc_dfs/INFO] DFS exploration ended. 30 unique states visited; 7 backtracks (56 transition replays, 19 states visited overall)
40
41 p Testing the paranoid model
42 ! timeout 60
43 ! expect return 3
44 $ $VALGRIND_NO_LEAK_CHECK ../../../smpi_script/bin/smpirun -quiet -wrapper "${bindir:=.}/../../../bin/simgrid-mc" -np 2 -platform ${platfdir:=.}/cluster_backbone.xml --cfg=smpi/buffering:zero --log=xbt_cfg.thresh:warning ./smpi_sendsend
45 > [0.000000] [mc_dfs/INFO] Start a DFS exploration. Reduction is: dpor.
46 > [0.000000] [mc_global/INFO] **************************
47 > [0.000000] [mc_global/INFO] *** DEADLOCK DETECTED ***
48 > [0.000000] [mc_global/INFO] **************************
49 > [0.000000] [ker_engine/INFO] 2 actors are still running, waiting for something.
50 > [0.000000] [ker_engine/INFO] Legend of the following listing: "Actor <pid> (<name>@<host>): <status>"
51 > [0.000000] [ker_engine/INFO] Actor 1 (0@node-0.simgrid.org) simcall CommWait(comm_id:1 src:1 dst:-1 mbox:SMPI-2(id:2) srcbuf:1 dstbuf:- bufsize:4)
52 > [0.000000] [ker_engine/INFO] Actor 2 (1@node-1.simgrid.org) simcall CommWait(comm_id:2 src:2 dst:-1 mbox:SMPI-1(id:0) srcbuf:2 dstbuf:- bufsize:4)
53 > [0.000000] [mc_global/INFO] Counter-example execution trace:
54 > [0.000000] [mc_global/INFO]   1: iSend(mbox=2)
55 > [0.000000] [mc_global/INFO]   2: iSend(mbox=0)
56 > [0.000000] [mc_global/INFO]   0: 
57 > [0.000000] [mc_Session/INFO] You can debug the problem (and see the whole details) by rerunning out of simgrid-mc with --cfg=model-check/replay:'1;2;0'
58 > [0.000000] [mc_dfs/INFO] DFS exploration ended. 3 unique states visited; 0 backtracks (3 transition replays, 0 states visited overall)
59 > Execution failed with code 3.