[Fontconfig-bugs] [Bug 107531] New: Segmentation fault in FcFontMatch when attempting to render emoji

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 9 00:13:44 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=107531

            Bug ID: 107531
           Summary: Segmentation fault in FcFontMatch when attempting to
                    render emoji
           Product: fontconfig
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: fc-match
          Assignee: fontconfig-bugs at lists.freedesktop.org
          Reporter: krotov at iitp.ru
        QA Contact: freedesktop at behdad.org

Created attachment 141016
  --> https://bugs.freedesktop.org/attachment.cgi?id=141016&action=edit
A program to reproduce segmentation fault

dwm, dmenu and st (from https://suckless.org/) are known to segfault when
trying to render emoji.

I have reduced dmenu segfault down to a simple program that reproduces the bug.

To reproduce, compile the program attached with

gcc bug.c -lX11 -lXft -I /usr/include/freetype2 -lfontconfig

and run.

Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7821e71 in ?? () from /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
(gdb) bt
#0  0x00007ffff7821e71 in ?? () from
/usr/lib/x86_64-linux-gnu/libfontconfig.so.1
#1  0x00007ffff7821fc8 in ?? () from
/usr/lib/x86_64-linux-gnu/libfontconfig.so.1
#2  0x00007ffff7823028 in FcConfigSubstituteWithPat () from
/usr/lib/x86_64-linux-gnu/libfontconfig.so.1
#3  0x00007ffff78329dd in FcFontRenderPrepare () from
/usr/lib/x86_64-linux-gnu/libfontconfig.so.1
#4  0x00007ffff7832fc4 in FcFontMatch () from
/usr/lib/x86_64-linux-gnu/libfontconfig.so.1
#5  0x000055555555531c in main ()

Software versions:

$ cat /etc/debian_version
buster/sid

$ apt show fontconfig
Package: fontconfig
Version: 2.13.0-5

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20180809/8e597289/attachment.html>


More information about the Fontconfig-bugs mailing list