[Bug 267435] www/apache24 core dumps when mod_perl, mod_php8, mod_dbd, and GD active

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 21 Jun 2023 03:17:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267435

--- Comment #26 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
In php, it seems to be possible to work around this by enclosing the 4
functions (imageftbbox, imagefttext, imagettfbbox and imagettftext) in
semaphores, etc.
However, it would seem that if different languages are running on the same
process, they must use the same semaphore.
The gd bundled with php seems to have a workaround for the problem when font
cache is used in multi-threading.
But if mod_php uses it, I don't know what happens when a different language
(mod_perl2) tries to use gd (p5-GD) in the same process.

So I prepared something like bug 272091.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272091
It patches libgd to work equivalent to the one bundled with php.
Could it be a workaround? Someone please try it out ahead of time :)

-- 
You are receiving this mail because:
You are the assignee for the bug.