php / php-src

The PHP Interpreter
https://www.php.net
Other
38.28k stars 7.76k forks source link

Debian 12 system crashes #16076

Open remco-pc opened 1 month ago

remco-pc commented 1 month ago

Description

i found this line in kern.log, don't know where to look, but my system crashes, (cpu locks etc) and now i found this line in kern.log

/var/log/kern.log

traps: php[1907] general protection fault ip:55bffe50314d sp:7ffc15381530 error:0 in php8.3[55bffe262000+313000]

its inside a docker image with the debian 12.6 image and with the https://packages.sury.org/php/ php 8.3 release

PHP Version

8.3.11

Operating System

Debian 12

iluuu1994 commented 1 month ago

This isn't really enough to diagnose a problem. Can you try obtaining a backtrace?

remco-pc commented 1 month ago

@iluuu1994 that should be enough, because its a general protection fault and hangs the system probably, its probably a simple task manager script but if you can tell me the parameters i might for example log the pids and trace it back to the script,

You could create an id for it and keep the documentation for it somewhere, link to the problem and howto solve it, next time

i have this error executing this:

bash: /proc/sys/kernel/core_pattern: Read-only file system

echo "/core-%e.%p" > /proc/sys/kernel/core_pattern

probably due to the docker image, do i need to put it in the server debian version which hosts the docker container, and does it then still work ?

iluuu1994 commented 1 month ago

core_pattern needs to be set in the Docker container. It won't help to set it on the host.

https://stackoverflow.com/a/47694315/1320374

remco-pc commented 1 month ago

its on a production site and i dont want to set the priveleges to this level, i will try to use the php version with the debian image first, checks if it then not hangs anymore before i will put the priveleges on it.

@iluuu1994 is [1907] the pid ? i can log the pid processes then and check what script causes this, it might be a hacker