-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernel panic caused by diagnostic assertion in PHP #90
Comments
Smells like memory corruption. But for starters, can you post the backtrace? Instructions are here: |
Are you running PHP as a standalone server? I'm curious if this issue is in PHP. |
I'm runnig PHP behind Nginx and it connects to MySQL using |
@anttikantee When I try the instructions there I get:
Any clue on how to fix that? |
@JelteF yes, see https://github.com/rumpkernel/rumprun/blob/master/app-tools/rumprun#L435-L442 So essentially you must teach the script where to find btw, in my experience the Xen debugger backend (gdbsx) does not work very well. I'd rather suggest trying to debug the problem under qemu/kvm, if possible -- you may get a better backtrace that way. |
I finally got a backtrace for this:
|
Ok, so with kvm (or qemu). In case it's easy to repeat, do you always see |
yes with kvm. I will try to repeat it again (since I'm also trying to get mysql to crash with kvm). I'm guessing the problem is the same though, as it causes the same output as the previous crash. |
I got the crash once more and the backtrace was exactly the same. One interesting thing is that we load balance our tests (using an nginx unikernel) to 5 php unikernels and they all crash at the same moment. Also we found out that the default memory limit of php is 128M (using phpinfo.php) and the unikernel is assigned 128M in the default script (which we use). So that might be the issue here :). |
Setting the memory |
For the record, in PHP (when running on Linux or something) I've seen "PHP Fatal error: Out of memory" when physical memory is exhausted, and a different error when it's a config thing ("Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 23456789 bytes.... ") |
I'd try with something like |
I'm getting a kernel panic after putting some load on my PHP kernel for a while.
Can you give me some helpin debugging this issue?
The text was updated successfully, but these errors were encountered: