<div dir="ltr">Hi,<div><br></div><div>Sorry for the delayed reply. Unfortunately, I'm not able to reproduce the issue you're having. Here's what I did to try:</div><div><br></div><div>* Wrote a plugin with an after_block_exec callback that asserts that tb->size !=0 and tb->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 "find /usr":</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're using and your plugin'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"><<a href="mailto:aicardi@eurecom.fr" target="_blank">aicardi@eurecom.fr</a>></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>
> Hello everyone,<br>
><br>
> I have a problem in retrieving the translation block from the function<br>
> I registered with PANDA_CB_AFTER_BLOCK_EXEC (something like<br>
> my_function(CPUState *cpu, TranslationBlock *tb)) in the plugin I am<br>
> writing.<br>
><br>
> I replay two kinds of samples, one for windows-32-7, the other for<br>
> linux-64-*.<br>
><br>
> When replaying the one for windows-32-7 everything works fine, when it<br>
> comes to linux-64-* every translation block has<br>
> tb->size == 0,<br>
> tb->icount == 0 and<br>
> tb->invalid != 0<br>
><br>
> Does anyone know why this happens?<br>
><br>
><br>
> Thank you in advance,<br>
> samaicardi<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>
> ______________________________<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>
><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>