Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2023 03:17:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        apache@FreeBSD.org
Subject:   [Bug 267435] www/apache24 core dumps when mod_perl, mod_php8, mod_dbd, and GD active
Message-ID:  <bug-267435-16115-IMdjFAdL3e@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-267435-16115@https.bugs.freebsd.org/bugzilla/>
References:  <bug-267435-16115@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267435

--- 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=3D272091
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 :)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267435-16115-IMdjFAdL3e>