Record/replay (icount rr) causes emulation hang or exit with error about missing events in log
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
Test case description:
Guest image is Linux, which just powers off after kernel boots (instead of proceeding to user-space /init or /sbin/init).
Base cmdline:
qemu-
-nodefaults -nographic -machine pc,accel=tcg -m 2048 -cpu qemu64 \
-kernel bzImage -initrd rootfs -append 'nokaslr console=ttyS0 rdinit=
-serial SERIAL_VALUE \
-rtc clock=vm,
-icount 1,sleep=
Test 1.
When SERIAL_VALUE=none
Running with RR_VALUE=record completes successfully.
Running with RR_VALUE=replay doesn't completes. qemu process just eating ~100% cpu and memory usage doesn't grow after some moment. I don't see what happens because of problem no.2 (see below).
Test 2.
When SERIAL_VALUE=stdio
Running with RR_VALUE=record completes successfully.
Running with RR_VALUE=replay causes exit with error:
"qemu-system-
Tests 3,4,5...
SERIAL_VALUE=stdio. Playing with "-rtc" clock and base suboptions, "-icount" sleep suboptions produces non-repeatable results.
In most cases running with RR_VALUE=record completes successfully (but may hang at very begining).
Running with RR_VALUE=replay with combinations of removing "-rtc base=..." and "-icount sleep=..." goes better, but at different places of boot process it may either hang (as in test 1) or exit with error (as in test 2).
When qemu "hangs", it may also happen differently: either it can be stopped by Ctrl-C, or have to be killed.
Guest image uploaded here: https:/
QEMU built from master (commit 042938f46e1c477
<SRC_ROOT>
Applying recent patches from http:// lists.nongnu. org/archive/ html/qemu- devel/2018- 09/msg04038. html doesn't fix any of issues.