bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41627: 28.0.50; Emacs with cairo build segfault in HELLO file


From: Zihao Zhu
Subject: bug#41627: 28.0.50; Emacs with cairo build segfault in HELLO file
Date: Sun, 31 May 2020 22:27:35 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1

I think if font was not installed correctly, Emacs should display "tofu" for unsupported chars, but it will display it and segfault.

And I also found that Emacs can work well in ASCII and CJK only environment(Sarasa font). But segfault in HELLO file and any other multi-language buffer which Emacs will choose Noto family to display.

On 2020/5/31 下午8:35, Pip Cet wrote:
On Sun, May 31, 2020 at 11:49 AM Zihao Zhu <all_but_last@163.com> wrote:
I try the Emacs build in commit
780f674a82a90c4e3e32583059b498bfa57e4a06. When I eval

(set-frame-font "Sarasa Mono Slab SC" t)
GDB attached backtrace in attachment.
This line seems suspicious:

         font_face = 0x7ffff747e880 <_cairo_font_face_nil_file_not_found>

It looks like you can't rely on cairo_ft_font_face_create_for_pattern
to return a NULL pointer. I suspect the attached patch will work, but
if this is something Cairo does in other places it needs to be
checked.

(My suspicion is the font was not installed correctly, so Cairo
couldn't find it.)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]