UTM icon indicating copy to clipboard operation
UTM copied to clipboard

PHP-FPM + Nginx Segfault with Rosetta

Open joket1999 opened this issue 8 months ago • 0 comments

Describe the issue
When running an x86 Docker container with PHP-FPM (version 8.1.22) inside an ARM Ubuntu 24.04 VM in UTM (with Apple Virtualization and Rosetta enabled), PHP-FPM crashes with a segmentation fault (SIGSEGV) when handling HTTP requests. The container starts normally and php-fpm shows “ready to handle connections”, but as soon as a request hits the service, it fails with a 502 error and a segfault appears in the logs.

This same container and setup works correctly in OrbStack, but crashes in both UTM and Colima. This suggests an incompatibility with how Rosetta or QEMU handles certain x86 instructions or memory operations within UTM.

Configuration

  • UTM Version: 4.6.5
  • macOS Version: 15.5
  • Mac Chip (Intel, M1, ...): Apple M3

Crash log
N/A — the container doesn’t crash UTM itself, but php-fpm inside the container logs the following:

[09-May-2025 09:19:30] NOTICE: fpm is running, pid 311
[09-May-2025 09:19:30] NOTICE: ready to handle connections
[09-May-2025 09:19:37] WARNING: [pool www] child 491 exited on signal 11 (SIGSEGV - core dumped) after 0.107819 seconds from start
[09-May-2025 09:19:37] NOTICE: [pool www] child 493 started

joket1999 avatar May 14 '25 08:05 joket1999