Open JanTvrdik opened 1 year ago
Running the code with PHP 8.1 does result in the same fatal error, but it does not segfault.
Fatal error: Environment cannot implement - it is not an interface in /src/Environment.php on line 3
Running the code with PHP 8.0 works without any issues.
Very strange. I had a similar issue on PHP 8.2. I tried to disable opcache.enable_cli
for a while.
Applied a higher memory limit (512M), then enabled it back and it started working like a charm.
Hey @JanTvrdik, thanks for creating a reproducer in Docker. I tried to run this but could not reproduce, not on MacOS and not in your docker container. It could be that this is because I'm running on ARM64. Can you double check if you can still reproduce the issue?
Yes. This is the ouput I get today:
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
Segmentation fault
Command failed on iteration 20
I also tried GitHub Codespaces, and it took a lot longer to fail, but eventually it did
https://codespaces.new/JanTvrdik/php-ext-parallel-segfault
Segmentation fault (core dumped)
Command failed on iteration 862
Full isolated reproduction example: https://github.com/JanTvrdik/php-ext-parallel-segfault
Step to reproduce the segfault
Run the following command:
Known requirements to trigger segfault
GDB output