mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +02:00
Bug: Ladybird crashes on launch on macOS 26.4+ with “UNEXPECTED ERROR: close: Bad file descriptor” in SharedVersion.cpp — because AnonymousBuffer creation fails. Cause: anon_create() passed O_CLOEXEC in the oflag argument to shm_open. macOS 26.4+ rejects that with EINVAL. POSIX only specifies O_RDONLY, O_RDWR, O_CREAT, O_EXCL, and O_TRUNC as valid shm_open flags; on earlier macOS versions, O_CLOEXEC just happened to also be silently accepted. Fix: Filter O_CLOEXEC from the oflag argument we pass to shm_open flags, and instead set FD_CLOEXEC via fcntl — after opening.
24 KiB
24 KiB