Opened 10 months ago

Last modified 10 months ago

#72231 assigned defect

qemu: segmentation fault

Reported by: startergo Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: herbygillot (Herby Gillot)
Port: qemu

Description

When I build Qemu with: sudo port install qemu -cocoa +sdl2

and then run a simple command like qemu-system-aarch64 -accel help I get segmentation fault error.

Attachments (1)

qemu-system-aarch64-2025-03-24-072348.ips (19.1 KB) - added by startergo 10 months ago.
qemu-system-aarch64-2025-03-24-072348.ips

Download all attachments as: .zip

Change History (4)

comment:1 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: herbygillot added
Keywords: port install qemu -cocoa +sdl2 removed
Owner: set to raimue
Port: qemu added; Qemu removed
Status: newassigned
Summary: Segmentation fault In Qemu portqemu: segmentation fault

qemu version? macOS version? architecture? Can you attach the log that macOS generated for this crash in ~/Library/Logs/DiagnosticReports?

Changed 10 months ago by startergo

qemu-system-aarch64-2025-03-24-072348.ips

comment:2 Changed 10 months ago by startergo

qemu -cocoa +sdl
--->  Computing dependencies for qemu
--->  Fetching archive for qemu
--->  Attempting to fetch qemu-9.2.2_0+curses+spice+spice_protocol+target_arm+target_i386+target_x86_64+usb+vnc.darwin_24.arm64.tbz2 from https://bos.us.packages.macports.org/qemu
--->  Attempting to fetch qemu-9.2.2_0+curses+spice+spice_protocol+target_arm+target_i386+target_x86_64+usb+vnc.darwin_24.arm64.tbz2 from https://packages.macports.org/qemu
--->  Attempting to fetch qemu-9.2.2_0+curses+spice+spice_protocol+target_arm+target_i386+target_x86_64+usb+vnc.darwin_24.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/qemu
--->  Fetching distfiles for qemu
--->  Verifying checksums for qemu
--->  Extracting qemu
--->  Applying patches to qemu
--->  Configuring qemu

uname -a
Darwin macbookpros-MacBook-Pro.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041 arm64

macbookpro@macbookpros-MacBook-Pro ~ % python3 --version
Python 3.12.1
macbookpro@macbookpros-MacBook-Pro ~ % gcc --version
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: arm64-apple-darwin24.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
macbookpro@macbookpros-MacBook-Pro ~ % clang --version
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: arm64-apple-darwin24.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
macbookpro@macbookpros-MacBook-Pro ~ % cmake --version
cmake version 3.31.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).
macbookpro@macbookpros-MacBook-Pro ~ % meson --version
1.7.0
macbookpro@macbookpros-MacBook-Pro ~ % xcodebuild -version
Xcode 16.2
Build version 16C5032a
macbookpro@macbookpros-MacBook-Pro ~ % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 16.3.0.0.1.1739832865
volume: /
location: /
install-time: 1741110864
macbookpro@macbookpros-MacBook-Pro ~ % 

Last edited 10 months ago by startergo (previous) (diff)

comment:3 Changed 10 months ago by startergo

I have tried installation in a clean macOS in Parallels, which worked fine in the virtual machine. Then I copied the binary along with the libraries to the host and got the same segmentation fault. Reinstalled the macOS over the old installation from Recovery. Segmentation fault is no more.

Note: See TracTickets for help on using tickets.