-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Segfault on PHP 8.1 and following #316
Comments
Hey there, |
Hey @hschimpf,
Please note, that enabling OPcache on CLI requires you to set the |
Reason is that I think it could be the same root cause as in #309 |
It is not fix the issue you are hitting
Not yet sure what to make out of that |
I build an ASAN version of PHP 8.3 and ran it, thanks @cmb69 for the hint. This is with OPcache disabled. OPcache enabled leads to the segfault above
|
The culprit seems to be this: Line 221 in 65cff10
In my understanding, |
Awesome! I can confirm this works! |
@arnaud-lb how did you find this? |
Fixed for PHP 8.2, 8.3 and 8.4 with #327, still open for 8.1
|
From an ASAN report I found that the address of some invalid read was coming from a map_ptr read. With gdb I watched what was writing this map_ptr and found out the same map_ptr had been assigned to different places. |
Hey @realFlowControl! Many thanks! Tests on v8.2 and v8.3 are working as expected 👌🏻. I'm working on migrating most projects that use Also, thanks @arnaud-lb for the help! 🚀 Closing the issue now |
I made a library around
ext-parallel
. On PHP 8.0 everything works fine, but from PHP 8.1+ I got segmentation fault errors.Branch: https://github.com/hschimpf/parallel-sdk/tree/segfault
Run
make
to execute the tests on PHP 8.0Run
make PHP=8.1
to execute the tests on PHP 8.1, 8.2 or 8.3The text was updated successfully, but these errors were encountered: