Thanks Ulrich Eckhardt. Yes, the github project linked above is a minimal example of the current Segmentation fault problem. We were stuck with this problem for a long time because we didn't know why the Segmentation fault exited, and we tried a lot of things, including adding a loop body, but it didn't work, and the page provided to the user had to be refreshed several times before it finished loading, which was a very bad experience for the user.
After enabling the single-threaded solution, I can leave the loop body, and the page will be loaded at once. Although it may not be the optimal method, can also use frankenphp have Segmentation fault this error PHP project reference.
“ Whether it should be used do not understand, if there is something wrong, please directly help to change it to the correct one, thank you.