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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 18 Jun 2023 08:58:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267435

--- Comment #24 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
> Bug 267435 - www/apache24 core dumps ... GD active

This may be correct on graphics/gd side.

(lldb) bt                                                                       
* thread #3, name = 'httpd', stop reason = signal SIGSEGV: invalid address
(fault address: 0x0)
  * frame #0: 0x0000000802dd008b libgd.so.6`gdCacheGet(head=0x0000000000000000,
keydata=0x00007fffdf7fadf0) at gdcache.c:107:15
    frame #1: 0x0000000802dd0633
libgd.so.6`gdImageStringFTEx(im=0x0000000000000000, brect=0x00007fffdf7fafc0,
fg=-1, fontlist="/home/tatsuki/.fonts/somefont.ttf", ptsize=12.705882352941178,
angle=0, x=0, y=0, string="-0.18", strex=0x0000000000000000) at gdft.c:1163:20
    frame #2: 0x0000000802dd0347
libgd.so.6`gdImageStringFT(im=0x0000000000000000, brect=0x00007fffdf7fafc0,
fg=-1, fontlist="/home/tatsuki/.fonts/somefont.ttf", ptsize=12.705882352941178,
angle=0, x=0, y=0, string="-0.18") at gdft.c:932:9
    frame #3: 0x0000000802d797b2 gd.so`___lldb_unnamed_symbol535 + 818
    frame #4: 0x0000000801cf00ca libphp.so`___lldb_unnamed_symbol9102 + 122

This argument with a 0x000000000... is the variable fontCache in src/gdft.c of
libgd-2.3.3.
There are 2 places to assign to fontCache (gdFontCacheShutdown and
gdFontCacheSetup), is there something wrong with Mutex around them?

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