diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-05-21 21:21:26 +0200 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-05-21 21:21:26 +0200 |
| commit | 4b927bc37359dec23f67d3427fc982945f24f404 (patch) | |
| tree | 245449ef9146942dc7fffd0235b48b7e70a00bf2 /gitlab/issues/target_missing/host_missing/accel_missing/2389.toml | |
| parent | aa8bd79cec7bf6790ddb01d156c2ef2201abbaab (diff) | |
| download | emulator-bug-study-4b927bc37359dec23f67d3427fc982945f24f404.tar.gz emulator-bug-study-4b927bc37359dec23f67d3427fc982945f24f404.zip | |
add gitlab issues in toml format
Diffstat (limited to 'gitlab/issues/target_missing/host_missing/accel_missing/2389.toml')
| -rw-r--r-- | gitlab/issues/target_missing/host_missing/accel_missing/2389.toml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gitlab/issues/target_missing/host_missing/accel_missing/2389.toml b/gitlab/issues/target_missing/host_missing/accel_missing/2389.toml new file mode 100644 index 00000000..1d28a613 --- /dev/null +++ b/gitlab/issues/target_missing/host_missing/accel_missing/2389.toml @@ -0,0 +1,42 @@ +id = 2389 +title = "Mutex initialization assertion failure due to incompatibility with macOS setrlimit() syscall" +state = "closed" +created_at = "2024-06-13T07:32:04.897Z" +closed_at = "2024-06-13T07:39:55.559Z" +labels = [] +url = "https://gitlab.com/qemu-project/qemu/-/issues/2389" +host-os = "macOS 10.15.7" +host-arch = "x86_64" +qemu-version = "9.0.50" +guest-os = "n/a" +guest-arch = "n/a" +description = """Running the command with with any set of arguments instantly crashes with the following error message: + +``` +Assertion failed: (mutex->initialized), function qemu_mutex_lock_impl, file ../util/qemu-thread-posix.c, line 92. +zsh: abort ./qemu-system-x86_64 +```""" +reproduce = """As per instructions for building from scratch: + +1. `mkdir build && cd build` +2. `../configure --prefix=$PWD/.. --audio-drv-list=sdl --disable-cocoa --enable-sdl --enable-sdl-image` +3. `make && make install` +4. `cd ../bin` +5. `./qemu-system-x86_64`""" +additional = """The issue is coming from the `os_setup_limits()` function in `os-posix.c`. As it turns out, the `setrlimit()` syscall behaves subtly different on macOS than on Linux systems, and the macOS man pages explicitly forbade the code on line 273. + +Line 273 from `os-posix.c`: + +``` +nofile.rlim_cur = nofile.rlim_max; +``` + +macOS `setrlimit()` man page: + +``` +COMPATIBILITY + setrlimit() now returns with errno set to EINVAL in places that historically succeeded. It no longer accepts "rlim_cur = RLIM_INFINITY" for + RLIM_NOFILE. Use "rlim_cur = min(OPEN_MAX, rlim_max)". +``` + +The man page thankfully gives us the [patch](/uploads/e7c8c6e3b5620c3b1ee34e89661097f3/qemu.patch)""" |