<div dir="ltr">Hi,<div><br></div><div>Sorry for the delayed reply. Unfortunately, I&#39;m not able to reproduce the issue you&#39;re having. Here&#39;s what I did to try:</div><div><br></div><div>* Wrote a plugin with an after_block_exec callback that asserts that tb-&gt;size !=0 and tb-&gt;icount != 0:</div><div><br></div><div><a href="https://gist.github.com/moyix/e0e8f398fff6bd5df80d9aad630df754">https://gist.github.com/moyix/e0e8f398fff6bd5df80d9aad630df754</a><br></div><div><br></div><div><div>* Created a 64-bit Linux recording using run_debian.py of the command &quot;find /usr&quot;:</div><div><br></div><div>../panda/scripts/run_debian.py --arch x86_64 find /usr/</div></div><div><br></div><div>* Ran the replay with the repro plugin:</div><div><br></div><div>x86_64-softmmu/qemu-system-x86_64 -replay replays/find/find -panda repro<br></div><div><br></div><div>The replay (~450 million instructions) completed successfully.</div><div><br></div><div>Maybe you can share the recording you&#39;re using and your plugin&#39;s source?</div><div><br></div><div>Best,</div><div>Brendan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 2, 2017 at 4:32 AM,  <span dir="ltr">&lt;<a href="mailto:aicardi@eurecom.fr" target="_blank">aicardi@eurecom.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
sorry for the spam, since I did not receive any answers on this topic<br>
I thought it needed some more visibility.<br>
<span class="im HOEnZb"><br>
Thank you in advance,<br>
samaicardi<br>
<br>
<br>
</span><div class="HOEnZb"><div class="h5">Quoting <a href="mailto:Samuele.Aicardi@eurecom.fr">Samuele.Aicardi@eurecom.fr</a>:<br>
<br>
&gt; Hello everyone,<br>
&gt;<br>
&gt; I have a problem in retrieving the translation block from the function<br>
&gt; I registered with PANDA_CB_AFTER_BLOCK_EXEC (something like<br>
&gt; my_function(CPUState *cpu, TranslationBlock *tb)) in the plugin I am<br>
&gt; writing.<br>
&gt;<br>
&gt; I replay two kinds of samples, one for windows-32-7, the other for<br>
&gt; linux-64-*.<br>
&gt;<br>
&gt; When replaying the one for windows-32-7 everything works fine, when it<br>
&gt; comes to linux-64-* every translation block has<br>
&gt;      tb-&gt;size == 0,<br>
&gt;      tb-&gt;icount == 0 and<br>
&gt;      tb-&gt;invalid != 0<br>
&gt;<br>
&gt; Does anyone know why this happens?<br>
&gt;<br>
&gt;<br>
&gt; Thank you in advance,<br>
&gt; samaicardi<br>
&gt;<br>
&gt; ------------------------------<wbr>------------------------------<wbr>-------------------<br>
&gt; This message was sent using EURECOM Webmail: <a href="http://webmail.eurecom.fr" rel="noreferrer" target="_blank">http://webmail.eurecom.fr</a><br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; panda-users mailing list<br>
&gt; <a href="mailto:panda-users@mit.edu">panda-users@mit.edu</a><br>
&gt; <a href="http://mailman.mit.edu/mailman/listinfo/panda-users" rel="noreferrer" target="_blank">http://mailman.mit.edu/<wbr>mailman/listinfo/panda-users</a><br>
&gt;<br>
<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>-------------------<br>
This message was sent using EURECOM Webmail: <a href="http://webmail.eurecom.fr" rel="noreferrer" target="_blank">http://webmail.eurecom.fr</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
panda-users mailing list<br>
<a href="mailto:panda-users@mit.edu">panda-users@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/panda-users" rel="noreferrer" target="_blank">http://mailman.mit.edu/<wbr>mailman/listinfo/panda-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Brendan Dolan-Gavitt<br>Assistant Professor, Department of Computer Science and Engineering<br>NYU Tandon School of Engineering</div>
</div>