summary refs log tree commit diff stats
path: root/results/classifier/118/graphic/1659
diff options
context:
space:
mode:
Diffstat (limited to 'results/classifier/118/graphic/1659')
-rw-r--r--results/classifier/118/graphic/165957
1 files changed, 57 insertions, 0 deletions
diff --git a/results/classifier/118/graphic/1659 b/results/classifier/118/graphic/1659
new file mode 100644
index 000000000..46ab58159
--- /dev/null
+++ b/results/classifier/118/graphic/1659
@@ -0,0 +1,57 @@
+graphic: 0.928
+x86: 0.911
+architecture: 0.837
+arm: 0.803
+vnc: 0.719
+performance: 0.699
+debug: 0.699
+device: 0.694
+files: 0.636
+PID: 0.620
+semantic: 0.590
+virtual: 0.555
+permissions: 0.533
+register: 0.450
+user-level: 0.433
+ppc: 0.433
+boot: 0.400
+hypervisor: 0.391
+risc-v: 0.390
+socket: 0.384
+TCG: 0.330
+network: 0.330
+mistranslation: 0.315
+VMM: 0.262
+peripherals: 0.172
+i386: 0.154
+kernel: 0.127
+assembly: 0.064
+KVM: 0.041
+
+x86 vm fails to stop on Darwin aarch64 when qemu compiled with -O1/-O2
+Description of problem:
+When compiled with `-O2` or `-O1` qemu process hangs on full VM stopping on macOS aarch64 host if `shutdown -P now` initiated from guest system.
+Steps to reproduce:
+1. Compile latest qemu version with -O2 (default value) or -O1 passed 
+2. Run qemu-system-x86_64 with ubuntu image, e.g. https://cloud-images.ubuntu.com/focal/20230215/focal-server-cloudimg-amd64.img and custom cloud-init (for user/password authentication)
+3. Wait until image is loaded, connect via vnc or provide login/password in stdio
+4. Initiate shutdown with `sudo shutdown -P now`
+5. See that VM indefinitely shutdowns
+6. Kill VM from host system with kill -9 <qemu-system-x86_64-process-pid>
+7. Recompile qemu with -O0
+8. Repeat steps 2-4
+9. See that vm successfully stopped, and qemu process exited with code 0
+Additional information:
+I've created thread dump from activity monitor with threads which qemu hanging on, attached below
+[sample-qemu-system-x86_64.txt](/uploads/119b89b7f55f4374acb9ae1f9dc2e517/sample-qemu-system-x86_64.txt)
+
+Probably there is some compiler optimisation which prevents qemu threads from receive shutdown signal or appropriate notification from another threads.
+
+The compiler version with which qemu is built:
+```bash
+% cc --version
+Apple clang version 14.0.3 (clang-1403.0.22.14.1)
+Target: arm64-apple-darwin22.4.0
+Thread model: posix
+InstalledDir: /Library/Developer/CommandLineTools/usr/bin
+```