From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Simon Leinen Newsgroups: gmane.emacs.bugs Subject: bug#36758: 27.0.50; Mac OS/Lucid/X11: crash with libharfbuzz Date: Mon, 22 Jul 2019 13:19:20 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="252059"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) Cc: 36758@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 22 13:22:07 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 1hpWON-0013T6-Pl for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2019 13:22:07 +0200 Original-Received: from localhost ([::1]:60580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpWOM-0007Eb-OY for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2019 07:22:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47569) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpWOJ-000779-KZ for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 07:22:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpWOI-00089l-Jp for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 07:22:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51209) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hpWOI-00089c-GO for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 07:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hpWOI-0003OB-B8 for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 07:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Simon Leinen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jul 2019 11:22: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.156379446312955 (code B ref 36758); Mon, 22 Jul 2019 11:22:02 +0000 Original-Received: (at 36758) by debbugs.gnu.org; 22 Jul 2019 11:21:03 +0000 Original-Received: from localhost ([127.0.0.1]:60030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpWNL-0003Ms-Bl for submit@debbugs.gnu.org; Mon, 22 Jul 2019 07:21:03 -0400 Original-Received: from edge10.ethz.ch ([82.130.75.186]:32207) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpWNG-0003Ly-AX for 36758@debbugs.gnu.org; Mon, 22 Jul 2019 07:20:59 -0400 Original-Received: from mailm115.d.ethz.ch (129.132.139.7) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.3.468.0; Mon, 22 Jul 2019 13:19:20 +0200 Original-Received: from macsl (130.59.196.133) by mailm115.d.ethz.ch (2001:67c:10ec:5602::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 22 Jul 2019 13:19:20 +0200 In-Reply-To: (YAMAMOTO Mitsuharu's message of "Mon, 22 Jul 2019 20:13:55 +0900") X-Originating-IP: [130.59.196.133] X-ClientProxiedBy: mailm212.d.ethz.ch (2001:67c:10ec:5603::26) To mailm115.d.ethz.ch (2001:67c:10ec:5602::27) X-TM-SNTS-SMTP: 8CEC423C332F96A0954B24E7942C38144A44DDD7D182FC8BEE4AE4915DD8E1FA2000:8 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:163591 Archived-At: YAMAMOTO Mitsuharu writes: >> This is the same version of libharfbuzz that my Emacs binary uses: >> >> : leinen@macsl[leinen]; objdump -macho -dylibs-used /var/tmp/emacs/gbuild/src/emacs > (snip) >> /opt/X11/lib/libfreetype.6.dylib (compatibility version 19.0.0, current version 19.6.0) > I noticed the versions of libfreetype are different between the test > program and Emacs. Ah, good point - I hadn't noticed that! > What happens if you link the test program with the latter one using > the environment variable DYLD_LIBRARY_PATH ? > $ DYLD_LIBRARY_PATH=/opt/X11/lib ./a.out Unfortunately it is not that easy: : leinen@macsl[tmp]; DYLD_LIBRARY_PATH=/opt/X11/lib ./a.out dyld: Library not loaded: /usr/local/opt/freetype/lib/libfreetype.6.dylib Referenced from: /private/var/tmp/./a.out Reason: Incompatible library version: a.out requires version 24.0.0 or later, but libfreetype.6.dylib provides version 19.0.0 Abort trap: 6 ...but if I recompile the test program with -L/opt/X11/lib, then it crashes: : leinen@macsl[tmp]; cc -g hb-ot-test.c -L/opt/X11/lib `pkg-config freetype2 harfbuzz --cflags --libs` : leinen@macsl[tmp]; objdump -macho -dylibs-used /var/tmp/a.out /var/tmp/a.out: /opt/X11/lib/libfreetype.6.dylib (compatibility version 19.0.0, current version 19.6.0) /usr/local/opt/harfbuzz/lib/libharfbuzz.0.dylib (compatibility version 20504.0.0, current version 20504.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1) : leinen@macsl[tmp]; ./a.out HarfBuzz Version: 2.5.3 Segmentation fault: 11 So I guess all I have to do is make sure Emacs doesn't use the old libfreetype in /opt/X11/lib, but rather the newer one in /usr/local/lib (and hope that that one works in an X11 environment...) I'll be in meetings for the next few hours, but will let you know what happens once I find time to do the above. Thanks a lot so far!!! Cheers, -- Simon.