1. Run http tests, that force the http server to be spawed. In my case I used http/tests/webgl/1.0.2/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba5551.html in parallel 100 times. 2. Before it ends, press Ctrl+C to shut down the testing. 3. Goto 1. It will fail as the server could not be spawned.
In case WebKitBuild/GTK/Release/layout-test-results/error_log.txt mentions "Error: (17)File exists: unable to create scoreboard" the workaround is to manually remove stale SHM segments: https://makandracards.com/fabio-silva/49967-apache-unable-to-create-scoreboard-shared-memory-failure I suppose we could automate this though.
I think that clean up should be implemented before launching the server.
Created attachment 438656 [details] Patch
Tested locally and it's working as expected, cleaning the stale segments and allowing the server to start normally.
Comment on attachment 438656 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=438656&action=review > Tools/ChangeLog:10 > + 'scoreboard' with SHM. The proposed solution is to look for stale SHM segments, eg. segments TIL that Apache still uses SysV persistent SHM segments 🤯️
Committed r285627 (244128@main): <https://commits.webkit.org/244128@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438656 [details].
<rdar://problem/85297816>