From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#36758: 27.0.50; Mac OS/Lucid/X11: crash with libharfbuzz Date: Mon, 22 Jul 2019 18:58:59 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="177028"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: 36758@debbugs.gnu.org To: Simon Leinen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 22 12:00:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpV72-000jvq-4F for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2019 12:00:08 +0200 Original-Received: from localhost ([::1]:60134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpV70-0001Ez-7Q for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2019 06:00:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52926) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpV6x-0001Et-E1 for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 06:00:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpV6w-0005D9-CR for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 06:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51129) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hpV6w-0005Bz-7q for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 06:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hpV6w-0007bP-4A for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 06:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jul 2019 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36758 X-GNU-PR-Package: emacs Original-Received: via spool by 36758-submit@debbugs.gnu.org id=B36758.156378954429097 (code B ref 36758); Mon, 22 Jul 2019 10:00:02 +0000 Original-Received: (at 36758) by debbugs.gnu.org; 22 Jul 2019 09:59:04 +0000 Original-Received: from localhost ([127.0.0.1]:59950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpV5z-0007ZD-V2 for submit@debbugs.gnu.org; Mon, 22 Jul 2019 05:59:04 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:49551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpV5x-0007Yl-8a for 36758@debbugs.gnu.org; Mon, 22 Jul 2019 05:59:02 -0400 Original-Received: from mathent.math.s.chiba-u.ac.jp (mathent [192.168.32.5]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 7DD6DF08FB; Mon, 22 Jul 2019 18:58:59 +0900 (JST) (envelope-from mituharu@math.s.chiba-u.ac.jp) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163587 Archived-At: On Mon, 22 Jul 2019 17:42:02 +0900, Simon Leinen wrote: > > Dear Mitshuaru, > > thank you for your prompt reply and clear instructions - this is very > helpful for me as I don't have any experience with lldb! > > > Could you try the following instructions? > > > 1. recompile Emacs with CFLAGS="-O0 -g3" > > 2. run it under lldb. > > 3. run GNUS and wait for crash happens. > > 4. repeat lldb "up" command until it reaches emacs`ftfont_list > > (frame #12 in the original stack trace) > > 5. run "p file" under lldb. > > (lldb) p file > (FcChar8 *) $0 = 0x00000001071522e0 "/System/Library/Fonts/ArabicUIDisplay.ttc" > > The file exists > > : leinen@macsl[leinen]; ls -l /System/Library/Fonts/ArabicUIDisplay.ttc > -rw-r--r-- 1 root wheel 983632 Aug 18 2018 /System/Library/Fonts/ArabicUIDisplay.ttc > > Maybe the code has issue with right-to-left scripts? Thanks. I rather suspect it has something to do with the versions of Harbuzz. Could you try to see if the following test program crash on your side? /* cc -g hb-ot-test.c `pkg-config freetype2 harfbuzz --cflags --libs` */ #include #include #include #include #include #include int main () { printf ("HarfBuzz Version: %s\n", hb_version_string ()); static FT_Library ft_library; FT_Init_FreeType (&ft_library); FT_Face ft_face; FT_New_Face (ft_library, "/System/Library/Fonts/ArabicUIDisplay.ttc", 0, &ft_face); hb_face_t *face = hb_ft_face_create_referenced (ft_face); FT_Done_Face (ft_face); unsigned int script_count = hb_ot_layout_table_get_script_tags (face, HB_OT_TAG_GSUB, 0, NULL, NULL); printf ("GSUB script_count = %d\n", script_count); script_count = hb_ot_layout_table_get_script_tags (face, HB_OT_TAG_GPOS, 0, NULL, NULL); printf ("GPOS script_count = %d\n", script_count); } On macOS 10.14.6 Beta, I could successfully run it with the following output: HarfBuzz Version: 2.5.3 GSUB script_count = 1 GPOS script_count = 1 YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp