Re: [dev] [st] NotoColorEmoji.ttf makes st crash

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Fri, 15 Jun 2018 20:35:11 +0200

On Fri, Jun 08, 2018 at 11:53:52AM -0400, Cág wrote:
> sylvain.bertrand_AT_gmail.com wrote:
>
> > I did install the google noto fonts, did browse to a www site with
> > heavy use of utf-8 emojis with lynx and did crash.
> > The culprit was NotoColorEmoji.ttf.
>
> I'm afraid I don't know about st, but dwm crashes if there's an emoji
> in the window title, in case NotoColorEmoji is present.

I am not able to reproduce this (on dwm tip with NotoColorEmoji.ttf
installed):

https://sillymon.ch/data/gvimwithemojiintitle.png

I managed to crash dwm though when going to

DANGER

https://github.com/RustFestEU/conf-2016/issues/2

DANGER

I tried to debug it but according to gdb dwm exited with code 1. Looks
like X crashed(?):

GNU gdb (GDB) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 8463
Reading symbols from /usr/local/bin/dwm...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libX11.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libXinerama.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libfontconfig.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libXft.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libxcb.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libdl.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libXext.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libfreetype.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libexpat.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libuuid.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Reading symbols from /usr/lib/libXrender.so.1...(no debugging symbols found)...done.
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libXau.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libXdmcp.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libbz2.so.1.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libpng16.so.16...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libharfbuzz.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libm.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libglib-2.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libgraphite2.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libpcre.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libXcursor.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libXfixes.so.3...(no debugging symbols found)...done.
0x00007f8f6d1afe74 in poll () from /usr/lib/libc.so.6
(gdb) c
Continuing.
[Inferior 1 (process 8463) exited with code 01]
(gdb) bt
(gdb) q


I also downloaded

https://unicode.org/emoji/charts/emoji-list.html (5MB!)

and looked at it in vim/vis and lynx without st crashing. As far as I
can tell, the actual emojis are only in the "title" attributes so lynx
may not show them... but both vim and vis are trying to (though failing
on some of them) and st doesn't crash.

This crashing-due-to-emojis-and-certain-fonts issue remains as elusive
as ever...


Cheers,

Silvan
Received on Fri Jun 15 2018 - 20:35:11 CEST

This archive was generated by hypermail 2.3.0 : Fri Jun 15 2018 - 20:36:08 CEST