Open bford opened 4 years ago
Thanks for the bug report @bford and for the excellent description of how to reproduce this.
I've played a bit with the test case and it seems that a faster (ca 30 mins) way to reproduce (a similar) error is to use a --scheduling_bound 6
option (FYI: with 5 it completes normally). Execution crashes with:
~/tlc/erlang/model$ concuerror --scheduling_bound 6 --non_racing_system user -m qsc ... * Error: On step 76, replaying a built-in returned a different result than expected: original: {event,<0.123.0>, {receive_event, {message, {4, [{hist,1,1, {msg,1,1}, 1, {hist,0,undefined,undefined,undefined,undefined}}, {hist,1,1, {msg,1,1}, 1, {hist,0,undefined,undefined,undefined,undefined}}]}, {<0.123.0>,12}}, {10,#Fun}, <0.123.0>,infinity,false}, #Ref<0.1668025383.1918894081.80515>, [65,{file,"/home/kostis/tlc/erlang/model/qsc.erl"}], [{message_received,{<0.123.0>,12}}]} new: {event,<0.123.0>, {receive_event, {message, {4, [{hist,1,1, {msg,1,1}, 1, {hist,0,undefined,undefined,undefined,undefined}}, {hist,1,1, {msg,1,1}, 1, {hist,0,undefined,undefined,undefined,undefined}}]}, {<0.122.0>,12}}, {10,#Fun }, <0.123.0>,infinity,false}, #Ref<0.1668025383.1918894081.80515>, [65,{file,"/home/kostis/tlc/erlang/model/qsc.erl"}], [{message_received,{<0.122.0>,12}}]} Please notify the developers, as this is a bug of Concuerror. Done at 11 Mar 2020 07:54:05 (Exit status: fail) Summary: 1 errors, 697421/697792 interleavings explored (the scheduling bound was reached)
Notes:
<0.123.0>
vs <0.122.0>
in the tuple before the #Fun
).--observers
option, I was also able to obtain a crash slightly faster than the above (~22mins and 470013/470384 interleavings explored), but I am not so sure it's easier to debug.Edit
With --observers --scheduling_bound 8
the error is produced slightly faster (18 mins) and looks as follows:
* Error: On step 82, replaying a built-in returned a different result than expected: original: <0.123.0>: receives message ({3,{hist,1,1,{msg,1,1},3,{hist,0,undefined,undefined,undefined,undefined}}}) in qsc.erl line 65 new: <0.123.0>: receives message ({4,[{hist,1,1,{msg,1,1},3,{hist,0,undefined,undefined,undefined,undefined}},{hist,1,1,{msg,1,1},3,{hist,0,undefined,undefined,undefined,undefined}}]}) in qsc.erl line 65 Please notify the developers, as this is a bug of Concuerror. Done at 11 Mar 2020 09:40:03 (Exit status: fail) Summary: 1 errors, 375129/376003 interleavings explored (the scheduling bound was reached)
Describe the bug Trying to model-check the simple Erlang model of Que Sera Consensus, Concuerror worked for a couple days and then failed with an error saying "Please notify the developers, as this is a bug of Concuerror." Full console text included below. It looks like there's an internal replay inconsistency of some kind - see the end of the log below.
To Reproduce Steps to reproduce the behavior:
Expected behavior Something other than a bug in Concuerror. ;)
Environment (please complete the following information):
Additional context Relevant console log:
$ Concuerror/bin/concuerror --non_racing_system user -m qsc Concuerror 0.20.0+build.2238.refa676f94 started at 07 Mar 2020 14:37:51