panda
panda copied to clipboard
RR rr_assertion `current_item' failed at /home/dghost-ubuntu/fuzz/panda/panda/src/rr/rr_log.c:970
Hi,
I've normally built panda on ubuntu. but replay failed.
here's detail: built with instruction:
git clone https://github.com/panda-re/panda
cd panda
mkdir -p build && cd build
../build.sh
start a linux vm:
./panda-system-x86_64 -kernel ~/Downloads/linux-5.15.y-nokasan/arch/x86/boot/bzImage -drive file=~/imgs/stretch.img,format=raw -append "root=/dev/sda nokaslr" -monitor stdio -m 4096 -smp 4 --enable-kvm
then, I tried to record:
(qemu) begin_record test
(qemu) writing snapshot: ./test-rr-snp
opening nondet log for write: ./test-rr-nondet.log
(qemu) end_record
(qemu) Time taken was: 10 seconds.
Checksum of guest memory: 0x94c7d494
Recording ready for use.
(qemu) quit
but when I try to replay:
/panda-system-x86_64 -kernel ~/Downloads/linux-5.15.y-nokasan/arch/x86/boot/bzImage -drive file=~/imgs/stretch.img,format=raw -append "root=/dev/sda nokaslr" -monitor stdio -m 4096 -smp 4 --enable-kvm -replay test
then panda failed:
QEMU 2.9.1 monitor - type 'help' for more information
(qemu) loading snapshot
... done.
opening nondet log for read : ./test-rr-nondet.log
RR rr_assertion `current_item' failed at /home/dghost-ubuntu/fuzz/panda/panda/src/rr/rr_log.c:970
Current log point:
{guest_instr_count=0}
Next log entry type: RR_INPUT_4
Current replay point:
{guest_instr_count=0}
Aborted (core dumped)
Where's my problem, thank you.
PANDA doesn't support KVM or smp and you're using -smp 4 --enable-kvm
. I suspect that's the problem. It should probably raise more obvious errors when you try - I'm guessing the guest wasn't functional when you took the recording.