<div><div dir="auto">Thanks Pavel, I’ll investigate today. </div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 6, 2019 at 06:54 Pavel Labath <<a href="mailto:pavel@labath.sk">pavel@labath.sk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It seems that this test is very flaky (fails ~10% of time) on linux. <br>
E.g: <br>
<<a href="http://lab.llvm.org:8011/builders/lldb-x86_64-debian/builds/211/steps/test/logs/stdio" rel="noreferrer" target="_blank">http://lab.llvm.org:8011/builders/lldb-x86_64-debian/builds/211/steps/test/logs/stdio</a>>.<br>
<br>
It always fails on the same assertion: "Encountered unexpected packet <br>
during replay". I've done a bit of digging, and the problems seems to be <br>
down to a nondeterministic $M packet being sent while evaluating one of <br>
the expressions:<br>
recording:<br>
$M7ffff7fcc140,108:06000000000000000a0000000600000000000000000000000c000000000000000a00000005000000000000000000000012000000000000000a00000005000000650000000000000016000000000000000a0000000900000000000000000000001a000000000000000a000000050000007b000000000000001e00000000000000010000000400000000000000000000002b000000000000000100000004000000000000000000000039000000000000000a00000005000000950000000000000043000000000000000a00000005000000b20000000000000051000000000000000a00000005000000d00000000000000062000000000000000a00000005000000c200000000000000#f7<br>
replay:<br>
$M7ffff7fcc140,108:06000000000000000a0000000600000000000000000000000c000000000000000a00000005000000000000000000000012000000000000000a00000005000000650000000000000016000000000000000a0000000900000000000000000000001a000000000000000a000000050000007c000000000000001e00000000000000010000000400000000000000000000002b000000000000000100000004000000000000000000000039000000000000000a00000005000000960000000000000043000000000000000a00000005000000b30000000000000051000000000000000a00000005000000d10000000000000062000000000000000a00000005000000c300000000000000#fc<br>
<br>
It's possible that this is specific to linux, as this particular failure <br>
happened while evaluating the mmap() helper expression (which we don't <br>
do on mac), but it's also possible (and more likely, I think) that this <br>
is a more general problem. Nonetheless, I haven't seen it fail on green <br>
dragon, so I've disabled in only on linux for now.<br>
<br>
pl<br>
<br>
<br>
On 05/11/2019 21:33, Jonas Devlieghere via lldb-commits wrote:<br>
> <br>
> Author: Jonas Devlieghere<br>
> Date: 2019-11-05T12:33:21-08:00<br>
> New Revision: 2abcf44f4c91a326d1f4513fb5c25fec51c6ca66<br>
> <br>
> URL: <a href="https://github.com/llvm/llvm-project/commit/2abcf44f4c91a326d1f4513fb5c25fec51c6ca66" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/2abcf44f4c91a326d1f4513fb5c25fec51c6ca66</a><br>
> DIFF: <a href="https://github.com/llvm/llvm-project/commit/2abcf44f4c91a326d1f4513fb5c25fec51c6ca66.diff" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/2abcf44f4c91a326d1f4513fb5c25fec51c6ca66.diff</a><br>
> <br>
> LOG: [Reproducer] Add test case for expression evaluation<br>
> <br>
> Added:<br>
>      lldb/test/Shell/Reproducer/Functionalities/Inputs/ExpressionEvaluation.in<br>
>      lldb/test/Shell/Reproducer/Functionalities/TestExpressionEvaluation.test<br>
> <br>
> Modified:<br>
>      <br>
> <br>
> Removed:<br>
>      <br>
> <br>
> <br>
> ################################################################################<br>
> diff  --git a/lldb/test/Shell/Reproducer/Functionalities/Inputs/ExpressionEvaluation.in b/lldb/test/Shell/Reproducer/Functionalities/Inputs/ExpressionEvaluation.in<br>
> new file mode 100644<br>
> index 000000000000..8887c201d92e<br>
> --- /dev/null<br>
> +++ b/lldb/test/Shell/Reproducer/Functionalities/Inputs/ExpressionEvaluation.in<br>
> @@ -0,0 +1,10 @@<br>
> +breakpoint set -f foo.cpp -l 11<br>
> +run<br>
> +p foo<br>
> +next<br>
> +p Foo(2, 3.33);<br>
> +p $1<br>
> +p foo = Foo(3, 4.44);<br>
> +p foo<br>
> +cont<br>
> +reproducer generate<br>
> <br>
> diff  --git a/lldb/test/Shell/Reproducer/Functionalities/TestExpressionEvaluation.test b/lldb/test/Shell/Reproducer/Functionalities/TestExpressionEvaluation.test<br>
> new file mode 100644<br>
> index 000000000000..d826a47cb245<br>
> --- /dev/null<br>
> +++ b/lldb/test/Shell/Reproducer/Functionalities/TestExpressionEvaluation.test<br>
> @@ -0,0 +1,18 @@<br>
> +# UNSUPPORTED: system-windows, system-freebsd<br>
> +<br>
> +# This tests that expression evaluation continues to work when replaying a<br>
> +# reproducer.<br>
> +<br>
> +# RUN: rm -rf %t.repro<br>
> +# RUN: %clangxx_host %S/Inputs/foo.cpp -g -o %t.out<br>
> +<br>
> +# RUN: %lldb -x -b -s %S/Inputs/ExpressionEvaluation.in --capture --capture-path %t.repro %t.out | FileCheck %s<br>
> +# RUN: %lldb --replay %t.repro | FileCheck %s<br>
> +<br>
> +# CHECK: stop reason = breakpoint 1.1<br>
> +# CHECK: (Foo) $0 = (m_i = 0, m_d = 0)<br>
> +# CHECK: stop reason = step over<br>
> +# CHECK: (Foo) $1 = (m_i = 2, m_d = 3)<br>
> +# CHECK: (Foo) $1 = (m_i = 2, m_d = 3)<br>
> +# CHECK: (Foo) $2 = (m_i = 3, m_d = 4)<br>
> +# CHECK: (Foo) $3 = (m_i = 3, m_d = 4)<br>
> <br>
> <br>
>          <br>
> _______________________________________________<br>
> lldb-commits mailing list<br>
> <a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits</a><br>
> <br>
<br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Sent from my iPhone</div>