Record and replay replay fails with: "ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed"

Bug #1762179 reported by Ciro Santilli 六四事件 法轮功 on 2018-04-08
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
QEMU
Undecided
Unassigned

Bug Description

QEMU master at 915d34c5f99b0ab91517c69f54272bfdb6ca2b32 Ubuntu 17.10 host.

QEMU commands:

```
#!/usr/bin/env bash
cmd="\
time \
./x86_64-softmmu/qemu-system-x86_64 \
-append 'root=/dev/sda console=ttyS0 nokaslr printk.time=y - lkmc_eval=\"/rand_check.out;/sbin/ifup -a;wget -S google.com;/poweroff.out;\"' \
-kernel 'out/x86_64/buildroot/images/bzImage' \
-nographic \
\
-drive file=out/x86_64/buildroot/images/rootfs.ext2.qcow2,if=none,id=img-direct,format=qcow2 \
-drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay \
-device ide-hd,drive=img-blkreplay \
\
-netdev user,id=net1 \
-device rtl8139,netdev=net1 \
-object filter-replay,id=replay,netdev=net1 \
"
echo "$cmd"
eval "$cmd -icount 'shift=7,rr=record,rrfile=replay.bin'"
eval "$cmd -icount 'shift=7,rr=replay,rrfile=replay.bin'"
```

This tries to stay as close as possible to the documented commands: https://github.com/qemu/qemu/blob/08e173f29461396575c85510eb41474b993cb1fb/docs/replay.txt#L28

Images uploaded to: https://github.com/cirosantilli/linux-kernel-module-cheat/releases/download/test-replay-arm/images4.zip

Images generated with: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/9513c162ef57e6cb70006dfe870856f94ee9a133

The replay failed straight out with:

```
ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed: (replay_file && replay_mutex_locked())
```

QEMU configure:

```
./configure --enable-debug --enable-trace-backends=simple --target-list=x86_64-softmmu
```

description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
Arnabjyoti Kalita (arnab35) wrote :

I am getting the same errors while doing a "replay". Are there any updates on the resolution/fix ?

@arna35: I have tested this yet unmerged patch: https://lists.gnu.org/archive/html/qemu-devel/2018-04/msg04286.html and it solves this problem, I will close this issue once it gets merged.

Arnabjyoti Kalita (arnab35) wrote :

@Ciro,

I hope this solves the problem for me too. Thanks for highlighting the patch.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers