From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48732: 28.0.50; lisp_string_width segfaults on startup under macOS Date: Sun, 30 May 2021 11:38:27 +0300 Message-ID: <83lf7w4nwc.fsf@gnu.org> References: <83y2bx46xh.fsf@gnu.org> <243EB7FF-1A5B-4CAF-A50D-2FD31C34F6C6@yasufuku.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30294"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48732@debbugs.gnu.org To: Naofumi Yasufuku Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 30 10:39:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnGyX-0007cx-6S for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 10:39:13 +0200 Original-Received: from localhost ([::1]:47150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnGyV-0007Uh-5O for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 04:39:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnGyM-0007Pn-Mf for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 04:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46844) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnGyL-0006sv-NS for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 04:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnGyL-0002ts-Lc for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 04:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 May 2021 08:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48732 X-GNU-PR-Package: emacs Original-Received: via spool by 48732-submit@debbugs.gnu.org id=B48732.162236390711104 (code B ref 48732); Sun, 30 May 2021 08:39:01 +0000 Original-Received: (at 48732) by debbugs.gnu.org; 30 May 2021 08:38:27 +0000 Original-Received: from localhost ([127.0.0.1]:58390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnGxm-0002t2-PT for submit@debbugs.gnu.org; Sun, 30 May 2021 04:38:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnGxk-0002sq-E5 for 48732@debbugs.gnu.org; Sun, 30 May 2021 04:38:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35716) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnGxe-0006FO-O8; Sun, 30 May 2021 04:38:18 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1927 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnGxe-0006ja-BZ; Sun, 30 May 2021 04:38:18 -0400 In-Reply-To: <243EB7FF-1A5B-4CAF-A50D-2FD31C34F6C6@yasufuku.dev> (message from Naofumi Yasufuku on Sun, 30 May 2021 07:10:30 +0900) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207598 Archived-At: > From: Naofumi Yasufuku > Date: Sun, 30 May 2021 07:10:30 +0900 > Cc: 48732@debbugs.gnu.org > > I succeeded in getting more details by gdb ‘pp’ command. > `format’ call, leads to lisp_string_width crash, seems `tramp-password-prompt-regexp'. > > Please look at the attached log and screenshot: > emacs_crash-lisp_string_width-gdb_bt_full-with-pp.txt.bz2 > emacs_crash-lisp_string_width-gdb_bt_full-with-pp.png > > It seems that this segfault depends on some delicate matter of > startup initialization timing. Maybe. At least the user init file is processed during startup after the window-system was fully initialized. The fontset you show in your crashed session also looks fine to me. So I cannot explain why trying to find font for an Arabic character could crash for you. Therefore, I went ahead and disabled accounting for automatic character compositions in 'format' and 'format-message'. Only 'string-width' tries to account for that. Please see if that solves your problem. > This crash couldn’t be reproduced with full ${top_builddir}/src/.gdbinit settings, > so I copied ‘pp’ command definition to ${top_builddir}/.gdbinit then invoked > 'gdb ${top_builddir}/src/emacs' like this: This in itself is very strange, and probably indicates that there's some memory-related problem somewhere. If the change I installed solves your problem, I will try looking for such a problem. Thanks.