-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Segmentation fault, probaby on string operation #18611
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
Comments
Hi @tobihille what would be your list of enabled modules ? i.e. |
Oh sorry, I missed that. This is the list:
|
Thanks ! it would be nice to try to disable non builtin php extensions (aka PECL) e.g. igbinary, raphf, redis, ... and see if it has the same effect. |
I will try and report back. But to manage the expextation: I will probably not finish today with this, I first will need to figure out how to remove them in ddev and then trigger the process and see if it still works. |
Take your time no worries :) Cheers. |
Hi. I managed to get rid of many extensions while also keeping the process running, sadly it still crashes.
I hope the message about xsl.so is not relevant, I removed the modules a bit sloppy but I got no further error messages as you can see 😅 and
I tried to follow this page when deciding what to remove while also keeping in mind what is neccessary to let the process in the shop still run: |
Ok, would it be possible to have a reproducer ? If you can't share the actual code fine but we would need at least a code triggering the same cause (seems using substr, possibly pointing out of the bounds of the inputs, but we ll see). |
I understand and will take a look but I can't promise anything currently, sorry 😢 I will enable xdebug (disabled it in the first place to reduce the time the process takes) and litter the code with breakpoints where string operations take place and try to step through until it fails but this might take quite some time. I will report back if either I find something and can provide a minimal case or my time ran out (I'm working in a company context). |
Thanks for your help ! Looking forward to it. |
Description
Hi,
when running a lenghty process I encounter an issue in PHP 8.3.21.
I can confirm, that in PHP 8.3.19 (with ddev 1.24.4) everything was fine.
As the process takes time (roughly one hour until it crashes) I sadly can not exactly pinpoint the location of the issue in my PHP-Code.
To hopefully make up for that I investigated the issue with gdb, I hope this can help you find out what is happening.
This is the backtrace I got:
I don't know if this is relevant but I'm using PHP inside of ddev (https://github.com/ddev/ddev). The used version there is 1.24.6.
To be able to provide a (hopefully) meaningful stack I altered the provided ddev container with these command:
sudo apt install gdb php8.3-cli-dbgsym
I am by no means an expert in debugging C or running something with GDB so if I missed something and you need further information please let me know.
Sadly the code I'm using is not open source so I feel not comfortable to provide any code examples here (in addition to it being a time consuming process to even provide this information). But in essence what is running is a modified version of OpenMage (https://github.com/OpenMage/magento-lts/tree/v21.0.0-beta2) together with a modified commercial version of the Integernet Solr Module (https://github.com/integer-net/solr-magento1). Would it be helpful to try triggering the issue with this open source setup?
PHP Version
Operating System
Debian GNU/Linux 12 (bookworm) in ddev
The text was updated successfully, but these errors were encountered: