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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
42 - 35 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 08:01:28 2024 UTC