Bug #81444 [Com]: php-fpm crashes with bus error under kubernetes

From: Date: Wed, 14 Feb 2024 09:05:34 +0000
Subject: Bug #81444 [Com]: php-fpm crashes with bus error under kubernetes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246455@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81444&edit=1 ID: 81444 Comment by: Wanda6123Mares at outlook dot com Reported by: drissi dot reda4 at gmail dot com Summary: php-fpm crashes with bus error under kubernetes Status: Assigned Type: Bug Package: FPM related Operating System: debian 11 PHP Version: 8.0.10 Assigned To: bukka Block user comment: N Private report: N New Comment: The bug report suggests that it is related to the use of transparent huge pages (THP) in the kernel. A possible workaround is to disable THP on the host machine by running: echo never > /sys/kernel/mm/transparent_hugepage/enabled Alternatively, you can try to use a different PHP container image that does not use bullseye as the base OS, such as php:8.0.10-fpm-buster or php:8.0.10-fpm-alpine. (https://github.com)(https://www.beballplayers.com/) Previous Comments: ------------------------------------------------------------------------ [2021-11-28 20:29:13] bukka@php.net Would you be able to provide a stack trace by any chance? ------------------------------------------------------------------------ [2021-09-16 07:44:13] drissi dot reda4 at gmail dot com Description: ------------ using the container image php:8.0.10-fpm-bullseye, I deployed a simple php web server in my kubernetes cluster. The php-fpm process crashes with "Bus Error" at boot. However I can fix this, by disabling hugepages from sysctl.conf. I need a way to use php-fpm under my kubernetes cluster without disabling hugepages. kubernetes version: 1.21 containerd version: 1.4.9 OS: debian bullseye kernel: 5.10.0-8-amd64 Test script: --------------- Deploy any php-fpm container in any kubernetes cluster with hugepages enabled. Expected result: ---------------- not a crash of php-fpm Actual result: -------------- a crash of php-fpm ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81444&edit=1

« previous php.bugs (#246455) next »