<div dir="ltr"><div><div>Hi,<br>i want to reflect a problem about scissor plugin:<br>I found that scissor plugin did not work, cannot extract a part from the original snp.<br></div>i use the command line: scissors:start=4335499535,end=5244538335,name=api21-256-scissor...<br><br>Adding PANDA arg scissors:start=4335499535.<br>Adding PANDA arg scissors:end=5244538335.<br>Adding PANDA arg scissors:name=api21-256-scissor.<br>adding /home/shentanli/pandanew/qemu/arm-softmmu/panda_plugins/panda_scissors.so to panda_plugin_files 0<br>Adding PANDA arg stringsearch:name=test.<br>adding /home/shentanli/pandanew/qemu/arm-softmmu/panda_plugins/panda_stringsearch.so to panda_plugin_files 1<br>emulator: registered &#39;boot-properties&#39; qemud service<br>emulator: Adding boot property: &#39;dalvik.vm.heapsize&#39; = &#39;48m&#39;<br>emulator: Adding boot property: &#39;qemu.sf.fake_camera&#39; = &#39;both&#39;<br>emulator: Adding boot property: &#39;qemu.hw.mainkeys&#39; = &#39;0&#39;<br>loading /home/shentanli/pandanew/qemu/arm-softmmu/panda_plugins/panda_scissors.so<br>Success<br>loading /home/shentanli/pandanew/qemu/arm-softmmu/panda_plugins/panda_stringsearch.so<br>Initializing plugin stringsearch<br>panda_require: callstack_instr<br>loading /home/shentanli/pandanew/qemu/arm-softmmu/panda_plugins/panda_callstack_instr.so<br>Initializing plugin callstack_instr<br>Success<br>stringsearch: added string of length 14 to search set<br>Success<br><br><br></div> when it reaches the 4335499535,it prints:<br><br>api214-20-256:  4335499535 ( 62.00%) instrs.  296.73 sec.  0.89 GB ram.<br>Original ending prog point: {guest_instr_count=6992494441 pc=0xc00158c4, secondary=0x00000000}<br>Saving snapshot at instr count 4335499535...<br>Beginning cut-and-paste process at prog point:<br>{guest_instr_count=4335499535 pc=0xc000db0c, secondary=0x00000000}<br>Writing entries to api21-256-scissor-rr-nondet.log...<br>Reached end of old nondet log.<br>Continuing with replay.<br><br><div><div>then when it reaches the end, it shows:<br><br>api214-20-256:  5244538335 ( 75.00%) instrs.  377.58 sec.  1.09 GB ram.<br>Ending cut-and-paste on prog point:<br>{guest_instr_count=5244538336 pc=0xffff0008, secondary=0x00000000}<br>api214-20-256:  5244538336 ( 75.00%) instrs.  377.59 sec.  1.09 GB ram.<br>Replay completed successfully.<br>Time taken was: 380 seconds.<br>Stats:<br>RR_INPUT_1 number = 634, size = 17118 bytes<br>RR_INPUT_2 number = 237, size = 6636 bytes<br>RR_INPUT_4 number = 659406, size = 19782180 bytes<br>RR_INPUT_8 number = 0, size = 0 bytes<br>RR_INTERRUPT_REQUEST number = 1343219, size = 37610132 bytes<br>RR_EXIT_REQUEST number = 0, size = 0 bytes<br>RR_SKIPPED_CALL number = 424454, size = 238156678 bytes<br>RR_DEBUG number = 0, size = 0 bytes<br>max_queue_len = 747<br>746 items on recycle list, 65648 bytes total<br>Replay terminated at user request.<br><br>Logging all cpu states<br></div><div><br><br></div><div>it exits.and when i check the scissor file, it is the same size as the original one. <br><br><br><br></div><div>Please correct me!<br></div><div>Thanks a lot!<br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-21 7:48 GMT-04:00 xiaojuan Li <span dir="ltr">&lt;<a href="mailto:xiaotan6666@gmail.com" target="_blank">xiaotan6666@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>excuse me,  scissors failed again:<br>api214-20-256:  4268808000 ( 61.05%) instrs.  329.84 sec.  0.88 GB ram.<br>api214-20-256:  4335499535 ( 62.00%) instrs.  335.77 sec.  0.89 GB ram.<br>Original ending prog point: {guest_instr_count=6992494441 pc=0xc00158c4, secondary=0x00000000}<br>Saving snapshot at instr count 4335499535...<br>Beginning cut-and-paste process at prog point:<br>{guest_instr_count=4335499535 pc=0xc000db0c, secondary=0x00000000}<br>Writing entries to api4-21-rr-nondet.log...<br>Assertion failure @ count 2656994906!<br>api214-20-256:  4335499535 ( 62.00%) instrs.  336.32 sec.  1.08 GB ram.<br>ERROR: replay failed!<br>Time taken was: 337 seconds.<br>Stats:<br><br><br></div>now i use taint encounter 2 errors:aborted and killed.<br><br></div>the first one may caused malloc(),but i donnot know why killed.<br><br></div>so i want to scissor it to a smaller one (just use the stringseach) and then use the smaller to taint, but scissor failed too.<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">2015-04-20 22:06 GMT-04:00 Brendan Dolan-Gavitt <span dir="ltr">&lt;<a href="mailto:mooyix@gmail.com" target="_blank">mooyix@gmail.com</a>&gt;</span>:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This might be caused by a bug that was just fixed today:<div><div class="h5"><br>
<a href="https://github.com/moyix/panda/issues/58" target="_blank">https://github.com/moyix/panda/issues/58</a><br>
<br>
Could you do a git pull and try again?<br>
<span><font color="#888888"><br>
-Brendan<br>
</font></span><div><div><br>
On Sun, Apr 19, 2015 at 8:29 AM, xiaojuan Li &lt;<a href="mailto:xiaotan6666@gmail.com" target="_blank">xiaotan6666@gmail.com</a>&gt; wrote:<br>
&gt; HI,Brendan,<br>
&gt; I am the one sending emails asking for help about the taint segfault. Till<br>
&gt; now, it haven&#39;t been fixed.(have tried your suggestions,but seems does not<br>
&gt; work)<br>
&gt; during my solving this problem,i find another problem about scissors plugin:<br>
&gt; using qemu-system-arm  *** -replay ***** -panda<br>
&gt; &quot;scissor:start=*,end=**,name=name&quot; failed to get the cut one. does it have<br>
&gt; something wrong?<br>
&gt;<br>
&gt; Thanks for your patience.<br>
&gt; Best wishes.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; wait and hope~~<br>
</div></div></div></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div><div dir="ltr">wait and hope~~</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">wait and hope~~</div></div>
</div>