php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81444 php-fpm crashes with bus error under kubernetes
Submitted: 2021-09-16 07:44 UTC Modified: 2021-11-28 20:29 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: drissi dot reda4 at gmail dot com Assigned: bukka (profile)
Status: Assigned Package: FPM related
PHP Version: 8.0.10 OS: debian 11
Private report: No CVE-ID: None
 [2021-09-16 07:44 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-11-28 20:29 UTC] bukka@php.net
-Assigned To: +Assigned To: bukka
 [2021-11-28 20:29 UTC] bukka@php.net
Would you be able to provide a stack trace by any chance?
 [2024-02-14 09:05 UTC] Wanda6123Mares at outlook dot com
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/)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 09:01:31 2024 UTC