-
Notifications
You must be signed in to change notification settings - Fork 53
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
Segmentation fault on centos #60
Comments
Hello @sonersivri What version of memprof are you using ? (you can find it with Does it crash without the ion cube extension ? |
@arnaud-lb I am seeing the same issue on another OS. I am seg faulting in both Apache 2 AND CLI. PHP 8.1.1 (cli) (built: Dec 21 2021 19:41:31) (NTS) memprof support => enabled |
Is this happening when profiling a particular script, or on any script ? |
It is happening on a particular script when it hits the memory limit, but it relies on so much in-house code I can't post it here. When I run it on a simple script that does makes too big of a string, I don't get a core. Modules: [PHP Modules] [Zend Modules] |
Thank you. What is the output of |
|
Would you be able to provide a backtrace of the segfault ? You can get one with gdb:
Type |
Looks like it might be stuck in some sort of loop, this repeats for a very long time #0 0x0000555555a19498 in ?? () |
It's possible that there is a very deep recursion in your code, causing this stack overflow (each If you download If it's not that, then it could be a bug in get_function_name(). |
This is very strange, I can't quite figure out why but I am getting this error: |
Ok a quick edit of .gdbinit and I was able to get a backtrace.... did find a loop in our code. |
Thank you for the details you provided @mattrcampbell, this helped a lot to understand the problem. I've created a separate issue so that memprof handles this in a better way in the future. |
The text was updated successfully, but these errors were encountered: