Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / examples / sthread / stdobject / stdobject.tesh
1 # This test raises a property violation, thus the return code of 1
2 ! expect return 1
3
4 # We ignore the LD_PRELOAD lines from the expected output because they contain the build path
5 ! ignore .*LD_PRELOAD.*
6
7 $ $VALGRIND_NO_TRACE_CHILDREN ${bindir:=.}/../../../bin/simgrid-mc --cfg=model-check/setenv:LD_PRELOAD=${libdir:=.}/libsthread.so ${bindir:=.}/stdobject "--log=root.fmt:[%11.6r]%e(%a@%h)%e%m%n" --log=no_loc
8 > starting two helpers...
9 > waiting for helpers to finish...
10 > [   0.000000] (maestro@) Start a DFS exploration. Reduction is: dpor.
11 > [   0.000000] (maestro@) thread 1 takes &v
12 > [   0.000000] (maestro@) thread 1 releases &v
13 > [   0.000000] (maestro@) thread 2 takes &v
14 > [   0.000000] (maestro@) thread 2 releases &v
15 > v = { 1, 2, 3, 5, 8, 13, 21, 21, }; 
16 > [   0.000000] (maestro@) thread 1 takes &v
17 > [   0.000000] (maestro@) thread 2 takes &v
18 > [   0.000000] (maestro@) Unprotected concurent access to &v: thread 1 from 1 location vs thread 2 (locations hidden because of --log=no_loc).
19 > [   0.000000] (maestro@) **************************
20 > [   0.000000] (maestro@) *** PROPERTY NOT VALID ***
21 > [   0.000000] (maestro@) **************************
22 > [   0.000000] (maestro@) Counter-example execution trace:
23 > [   0.000000] (maestro@)   Actor 2 in simcall BeginObjectAccess(&v)
24 > [   0.000000] (maestro@)   Actor 3 in simcall BeginObjectAccess(&v)
25 > [   0.000000] (maestro@) You can debug the problem (and see the whole details) by rerunning out of simgrid-mc with --cfg=model-check/replay:'2;3'
26 > [   0.000000] (maestro@) DFS exploration ended. 7 unique states visited; 1 backtracks (1 transition replays, 9 states visited overall)