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