-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Segmentation fault in qemu on macOS 15.0-15.3 #221154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Reproducible on my machine, version 10.0.0 is unusable |
Can't reproduce this. $ brew config
HOMEBREW_VERSION: 4.4.32-50-g8a5babc
ORIGIN: https://github.com/Homebrew/brew
HEAD: 8a5babc4247b363da068dca16f15417cee359dc0
Last commit: 2 hours ago
Branch: master
Core tap HEAD: 598f524eabb0db3dc8d96296900139940957a131
Core tap last commit: 30 minutes ago
Core tap JSON: 24 Apr 21:20 UTC
Core cask tap HEAD: d9d69fa4389c1932ab18a8316b106180293a61ab
Core cask tap last commit: 2 hours ago
Core cask tap JSON: 24 Apr 21:20 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: /Applications/VSCodium.app/Contents/Resources/app/bin/codium
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.4.3 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.3/bin/ruby
CPU: deca-core 64-bit arm_blizzard_avalanche
Clang: 17.0.0 build 1700
Git: 2.39.5 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.4.1-arm64
CLT: 16.3.0.0.1.1742442376
Xcode: 16.3
Rosetta 2: false $ brew info qemu
==> qemu: stable 10.0.0 (bottled), HEAD
Generic machine emulator and virtualizer
https://www.qemu.org/
Installed
/opt/homebrew/Cellar/qemu/10.0.0 (169 files, 681.8MB) *
Poured from bottle using the formulae.brew.sh API on 2025-04-24 at 17:21:36
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/q/qemu.rb
License: GPL-2.0-only
==> Dependencies
Build: libtool ✔, meson ✔, ninja ✔, pkgconf ✔, python@3.13 ✔, spice-protocol ✘
Required: capstone ✔, dtc ✔, glib ✔, gnutls ✔, jpeg-turbo ✔, libpng ✔, libslirp ✔, libssh ✔, libusb ✔, lzo ✔, ncurses ✔, nettle ✔, pixman ✔, snappy ✔, vde ✔, zstd ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 39,382 (30 days), 111,020 (90 days), 452,850 (365 days)
install-on-request: 38,095 (30 days), 106,708 (90 days), 402,037 (365 days)
build-error: 1,144 (30 days) $ qemu-system-x86_64
[QEMU window appears]
$ qemu-system-mips
[QEMU window appears]
$ qemu-system-aarch64
qemu-system-aarch64: No machine specified, and there is no default
Use -machine help to list supported machines
$ qemu-system-avr
qemu-system-avr: No machine specified, and there is no default
Use -machine help to list supported machines I still get the same output messages ("no default machine" etc.) when I try the ones listed above that are still working - maybe it has something to do with the window drawing/initialization code? It may be helpful if someone who is able to reproduce this can run it with a debugger and find where it's crashing, e.g. |
Thank you for looking into this! Here's the debugger's output:
Also:
If you'd like me to share the coredump file or do other tests, just let me know. |
Ok, based on @alebcay's |
I can reproduce on my machine, Mac 15.3.2-arm64 (24D81) |
Thanks for the backtrace, I and/or someone will take a closer look when time permits. For anyone still seeing the issue, it may also be worth trying |
I had this issue as well. I updated macOS to 15.4.1 and now qemu is working. |
I had this issue on 15.3.1. Building from source resolves the issue, so it does seem that the qemu bottle built on 15.4 is not compatible with 15.3 machines. |
Probably because Qemu is picking up It's very much possible other formulae may be affected going forward if they use |
Closes Homebrew#221154 Signed-off-by: botantony <antonsm21@gmail.com>
Closes Homebrew#221154 Signed-off-by: botantony <antonsm21@gmail.com>
Confirmed that I updated MacOS Sequoia from 15.0.1 to 15.4.1 and it worked |
The same error here! I'm running on mac m2 15.3.2 my last alternative is to upgrade the operating system |
Same issue with v10 of emu, please revert the formula back to v9.2.3 asap as v10 is unstable |
Is there anything blocking you from using macOS 15.4? If it's an issue we'll accept a PR backporting https://gitlab.com/qemu-project/qemu/-/commit/a5b30be534538dc6e44a68ce9734e45dd08f52ec that should fix compatibility with old versions of macOS 15. |
Nothing is blocking me from updating my os, but i dont want to. |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I'm trying to run
qemu-system-x86_64
on my ARM Mac.What happened (include all command output)?
Most
qemu-system
binaries produce a segmentation fauilt:Some of them work properly:
What did you expect to happen?
I expected all
qemu-system
binaries to work properly on my ARM Mac.Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: