<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2016-07-12 15:59 GMT+01:00 Brendan Dolan-Gavitt <span dir="ltr"><<a href="mailto:brendandg@nyu.edu" target="_blank">brendandg@nyu.edu</a>></span>:<br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><span>On Tue, Jul 12, 2016 at 10:18 AM, gilles B <<a href="mailto:gillusg75@gmail.com">gillusg75@gmail.com</a>> wrote:<br>
> Ho sorry, I have now added the "-android" and it works, amazing !<br>
> To be noted that the "-android" is present in the tutorial of the doc:<br>
> <a href="https://github.com/moyix/panda/blob/master/docs/LINE_Censorship.md" rel="noreferrer" target="_blank">https://github.com/moyix/panda/blob/master/docs/LINE_Censorship.md</a><br>
> however it is not present in the command of PANDA share website:<br>
> <a href="http://www.rrshare.org/detail/35/" rel="noreferrer" target="_blank">http://www.rrshare.org/detail/35/</a><br>
<br>
</span>Sorry about that! It's fixed now.<br>
<span><br>
> It's still surprising when I run the same replay command multiple times<br>
> consecutively, from time to time I still have the error of "log_replay2.txt"<br>
> (see my first post), e.g.: I had to run this command 4 times to get a<br>
> successful replay<br>
<br>
</span>Does the failure happen even when using the dummy qcow2s mentioned in<br>
the tutorial? The "File exists" bug is one we know about but have not<br>
had time to fix (most of the devs don't use the android support on a<br>
day to day basis), but I thought I recalled that the tutorial's<br>
workaround worked.<br></blockquote><div>yes I use the 2 dummy qcows, and it looks like the failure appears randomly, it's unpredictable but the command is always successful after few tries if I persevere. I will try to figure out what's happen, I'll let you know if I find</div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><span><br>
> Ohterwise the output log seems fine (log_replay_ok.txt enclosed) although<br>
> there are some attempts to connect to ADB, which is strange for a replay<br>
> mode + other errors like "qemu-system-arm: Error -22 while loading VM state"<br>
> that don't seem to be a problem for the success of the replay.<br>
> At least I'm able to use different plugins that work like a charm)<br>
<br>
</span>The replay system starts by loading a QEMU snapshot. Unless the<br>
devices are exactly the same as during recording, there snapshot will<br>
fail to load giving that error -22 message, but as long as it has<br>
restored RAM & CPU state by then it usually doesn't matter.<br>
<br>
Glad things are working for you now!<br>
<span class="HOEnZb"><font color="#888888"><br>
-Brendan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> 2016-07-11 13:06 GMT+01:00 Brendan Dolan-Gavitt <<a href="mailto:brendandg@nyu.edu">brendandg@nyu.edu</a>>:<br>
>><br>
>> Hi,<br>
>><br>
>> It looks like you are missing the "-android" option when replaying line2.<br>
>><br>
>> Also, if you are using the most recent git version of PANDA, note that<br>
>> a recent change introduced a regression to the ARM record/replay<br>
>> support. If you roll back to commit 38e9caf ARM record/replay will<br>
>> work correctly. This issue is currently being tracked at<br>
>> <a href="https://github.com/moyix/panda/issues/91" rel="noreferrer" target="_blank">https://github.com/moyix/panda/issues/91</a> and we'll try to get it fixed<br>
>> soon.<br>
>><br>
>> -Brendan<br>
>><br>
>> On Mon, Jul 11, 2016 at 7:34 AM, gilles B <<a href="mailto:gillusg75@gmail.com">gillusg75@gmail.com</a>> wrote:<br>
>> > Actually in the example above, I don't use both dummy.qcow2 and<br>
>> > dummy2.qcow2<br>
>> > like in the tutorial, however even if I use both, I have the same issue:<br>
>> ><br>
>> > root@pandavm:/home/panda/Desktop/line_android_test#<br>
>> > /home/panda/panda/qemu/arm-softmmu/qemu-system-arm -m 2048 -replay line2<br>
>> > -M<br>
>> > android_arm -cpu cortex-a9 -kernel /dev/null -global<br>
>> > goldfish_mmc.sd_path=/dev/null -global<br>
>> ><br>
>> > goldfish_nand.system_path=/home/panda/Desktop/line_android_test/dummy2.qcow2<br>
>> > -global<br>
>> ><br>
>> > goldfish_nand.user_data_path=/home/panda/Desktop/line_android_test/dummy.qcow2<br>
>> > goldfish_add_device: goldfish_device_bus, base ff001000 1000, irq 1 1<br>
>> > goldfish_device_bus: ff001000 30<br>
>> > goldfish_add_device: goldfish_int, base ff000000 1000, irq 0 0<br>
>> > goldfish_int: ff000000 38<br>
>> > goldfish_add_device: goldfish_timer, base ff003000 1000, irq 3 1<br>
>> > goldfish_timer: ff003000 40<br>
>> > goldfish_add_device: goldfish_rtc, base ff010000 1000, irq 10 1<br>
>> > goldfish_rtc: ff010000 48<br>
>> > goldfish_add_device: goldfish_tty, base ff002000 1000, irq 4 1<br>
>> > goldfish_tty: ff002000 50<br>
>> > android_arm_init serial 1 0<br>
>> > android_arm_init serial 2 0<br>
>> > android_arm_init serial 3 0<br>
>> > goldfish_add_device: smc91x, base ff011000 1000, irq 11 1<br>
>> > goldfish_add_device: goldfish_fb, base ff012000 1000, irq 12 1<br>
>> > goldfish_fb: ff012000 68<br>
>> > goldfish_add_device: goldfish_mmc, base ff005000 1000, irq 13 1<br>
>> > goldfish_mmc: ff005000 70<br>
>> > goldfish_add_device: goldfish_memlog, base ff006000 1000, irq 0 0<br>
>> > goldfish_memlog: ff006000 78<br>
>> > goldfish_add_device: goldfish-battery, base ff013000 1000, irq 14 1<br>
>> > goldfish-battery: ff013000 80<br>
>> > goldfish_add_device: goldfish_events, base ff014000 1000, irq 15 1<br>
>> > goldfish_events: ff014000 88<br>
>> > Using event IRQ<br>
>> > Invalid system partition size for non-QCOW image: 0emulator: geometry<br>
>> > says<br>
>> > there are 2048 blocks<br>
>> ><br>
>> > emulator: rounding devsize up to a full eraseunit, now e7000<br>
>> ><br>
>> > emulator: Dev size of /home/panda/Desktop/line_android_test/dummy2.qcow2<br>
>> > is<br>
>> > e7000<br>
>> ><br>
>> > Invalid data partition size for non-QCOW image: 0emulator: Dev size 0x0<br>
>> > came<br>
>> > from argument<br>
>> ><br>
>> > emulator: geometry says there are 2048 blocks<br>
>> ><br>
>> > emulator: rounding devsize up to a full eraseunit, now e7000<br>
>> ><br>
>> > emulator: Dev size of /home/panda/Desktop/line_android_test/dummy.qcow2<br>
>> > is<br>
>> > e7000<br>
>> ><br>
>> > emulator: Dev size 0x0 came from argument<br>
>> ><br>
>> > emulator: geometry says there are 0 blocks<br>
>> ><br>
>> > emulator: Dev size of /tmp/android-root/emulator-sPg44b is 0<br>
>> ><br>
>> > goldfish_add_device: goldfish_nand, base ff015000 1000, irq 16 1<br>
>> > goldfish_nand: ff015000 90<br>
>> > goldfish_add_device: qemu_pipe, base ff016000 2000, irq 17 1<br>
>> > qemu_pipe: ff016000 98<br>
>> > emulator: control console listening on port 5554, ADB on port 5555<br>
>> > emulator: can't connect to ADB server: Connection refused<br>
>> > emulator: Realistic sensor emulation is not available, since the remote<br>
>> > controller is not accessible:<br>
>> > Connection refused<br>
>> > loading snapshot<br>
>> > qemu: warning: error while loading state for instance 0x0 of device<br>
>> > 'qemud'<br>
>> > qemu-system-arm: Error -5 while loading VM state<br>
>> > ... done.<br>
>> > opening nondet log for read : ./line2-rr-nondet.log<br>
>> > Infinite loop detected during replay, aborting.<br>
>> > {guest_instr_count=1 pc=0x00000000, secondary=0x00000000}<br>
>> > line2: 1 ( 0.00%) instrs. 1.64 sec. 2.04 GB ram.<br>
>> > total_instr in replay: 10367712943<br>
>> > ERROR: replay failed!<br>
>> > Time taken was: 0 seconds.<br>
>> > Stats:<br>
>> > RR_INPUT_1 number = 0, size = 0 bytes<br>
>> > RR_INPUT_2 number = 0, size = 0 bytes<br>
>> > RR_INPUT_4 number = 0, size = 0 bytes<br>
>> > RR_INPUT_8 number = 0, size = 0 bytes<br>
>> > RR_INTERRUPT_REQUEST number = 3, size = 84 bytes<br>
>> > RR_EXIT_REQUEST number = 0, size = 0 bytes<br>
>> > RR_SKIPPED_CALL number = 0, size = 0 bytes<br>
>> > RR_DEBUG number = 0, size = 0 bytes<br>
>> > max_queue_len = 1<br>
>> > 0 items on recycle list, 0 bytes total<br>
>> > ERROR: replay failed!<br>
>> > Aborted<br>
>> > root@pandavm:/home/panda/Desktop/line_android_test#<br>
>> ><br>
>> ><br>
>> > 2016-07-11 12:16 GMT+01:00 gilles B <<a href="mailto:gillusg75@gmail.com">gillusg75@gmail.com</a>>:<br>
>> >><br>
>> >> Hello guys,<br>
>> >><br>
>> >> Hope you are doing well.<br>
>> >> I've been playing with PANDA on x86 using different plugins over the<br>
>> >> last<br>
>> >> months and I quite like it )<br>
>> >> I would like now to go further and to use it with Android on ARM. I am<br>
>> >> now<br>
>> >> able to create some records of my Android OS running in QEMU,<br>
>> >> unfortunately<br>
>> >> I cannot replay any of my Android records with PANDA.<br>
>> >> In order to see if this came from my records, I have tried to replay a<br>
>> >> record from <a href="http://rrsahre.org" rel="noreferrer" target="_blank">rrsahre.org</a>, I have done exactly the same steps as for this<br>
>> >> example:<br>
>> >> <a href="https://github.com/moyix/panda/blob/master/docs/LINE_Censorship.md" rel="noreferrer" target="_blank">https://github.com/moyix/panda/blob/master/docs/LINE_Censorship.md</a><br>
>> >> When I replay the record of "line2" I have some issues: see logs<br>
>> >> enclosed.<br>
>> >> Surprisingly if I run twice the same replay command consecutively, I<br>
>> >> have<br>
>> >> either the error of log_replay.txt or the one of log_replay2.txt, but<br>
>> >> it is<br>
>> >> the first one most of the time...<br>
>> >> Did anybody ever have this problem ?<br>
>> >><br>
>> >> I have also been able to create my own Android records based on<br>
>> >> <a href="https://github.com/moyix/panda/blob/master/docs/Android.md" rel="noreferrer" target="_blank">https://github.com/moyix/panda/blob/master/docs/Android.md</a><br>
>> >> Unfortunately I end up with the same errors.<br>
>> >><br>
>> >> Regards,<br>
>> >><br>
>> >> Gilles<br>
>> ><br>
>> ><br>
>> ><br>
>> > _______________________________________________<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/mailman/listinfo/panda-users</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Brendan Dolan-Gavitt<br>
>> Assistant Professor, Department of Computer Science and Engineering<br>
>> NYU Tandon School of Engineering<br>
><br>
><br>
<br>
<br>
<br>
--<br>
Brendan Dolan-Gavitt<br>
Assistant Professor, Department of Computer Science and Engineering<br>
NYU Tandon School of Engineering<br>
</div></div></blockquote></div><br></div></div>