diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-07-03 19:39:53 +0200 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-07-03 19:39:53 +0200 |
| commit | dee4dcba78baf712cab403d47d9db319ab7f95d6 (patch) | |
| tree | 418478faf06786701a56268672f73d6b0b4eb239 /results/classifier/108/PID/2423 | |
| parent | 4d9e26c0333abd39bdbd039dcdb30ed429c475ba (diff) | |
| download | emulator-bug-study-dee4dcba78baf712cab403d47d9db319ab7f95d6.tar.gz emulator-bug-study-dee4dcba78baf712cab403d47d9db319ab7f95d6.zip | |
restructure results
Diffstat (limited to 'results/classifier/108/PID/2423')
| -rw-r--r-- | results/classifier/108/PID/2423 | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/results/classifier/108/PID/2423 b/results/classifier/108/PID/2423 deleted file mode 100644 index ef57e3b7..00000000 --- a/results/classifier/108/PID/2423 +++ /dev/null @@ -1,49 +0,0 @@ -PID: 0.960 -performance: 0.877 -graphic: 0.868 -other: 0.796 -device: 0.779 -permissions: 0.701 -semantic: 0.674 -debug: 0.645 -vnc: 0.508 -socket: 0.498 -network: 0.492 -boot: 0.448 -files: 0.386 -KVM: 0.264 - -`qemu -serial stdio` leaves stdout in non-blocking mode -Description of problem: -When `-serial stdio` is used, qemu exits leaving stdout in non-blocking mode. Although it [attempts](https://gitlab.com/qemu-project/qemu/-/blob/1a2d52c7fcaeaaf4f2fe8d4d5183dccaeab67768/chardev/char-stdio.c#L52) to restore stdin to blocking mode, it misses that stdout also gets O_NONBLOCK by [qemu_chr_open_fd](https://gitlab.com/qemu-project/qemu/-/blob/1a2d52c7fcaeaaf4f2fe8d4d5183dccaeab67768/chardev/char-stdio.c#L116) ([here](https://gitlab.com/qemu-project/qemu/-/blob/1a2d52c7fcaeaaf4f2fe8d4d5183dccaeab67768/chardev/char-fd.c#L215)). It causes the next applications in the script misbehave because they get unexpected EAGAIN on write to stdout. -Steps to reproduce: -Run the following script: - -``` -#!/usr/bin/env bash - -qemu-system-x86_64 -nodefaults -display none -no-reboot -serial stdio & -PID="$!" -sleep 5 -kill "$PID" -wait "$PID" -echo "EXITING $?" - -sleep 5 -seq 1 400000 -``` - -The seq command will be interrupted prematurely: - -``` -... -5143 -5144 -5145⏎ wResource temporarily unavailable -write: Resource temporarily unavailable -write: Resource temporarily unavailable -``` - -When run from fish shell, it will also start misbehaving when running next commands (fish bug report: https://github.com/fish-shell/fish-shell/issues/10600). -Additional information: -Expect a patch from me soon. |
