From: Eli Zaretskii <eliz@gnu.org>
To: Naofumi Yasufuku <naofumi@yasufuku.dev>
Cc: 48732@debbugs.gnu.org
Subject: bug#48732: 28.0.50; lisp_string_width segfaults on startup under macOS
Date: Sun, 30 May 2021 11:38:27 +0300 [thread overview]
Message-ID: <83lf7w4nwc.fsf@gnu.org> (raw)
In-Reply-To: <243EB7FF-1A5B-4CAF-A50D-2FD31C34F6C6@yasufuku.dev> (message from Naofumi Yasufuku on Sun, 30 May 2021 07:10:30 +0900)
> From: Naofumi Yasufuku <naofumi@yasufuku.dev>
> 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.
next prev parent reply other threads:[~2021-05-30 8:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-29 19:28 bug#48732: 28.0.50; lisp_string_width segfaults on startup under macOS Naofumi Yasufuku
2021-05-29 20:32 ` Eli Zaretskii
2021-05-29 22:10 ` Naofumi Yasufuku
2021-05-30 8:38 ` Eli Zaretskii [this message]
2021-05-30 9:06 ` Naofumi Yasufuku
2021-05-31 14:27 ` Naofumi Yasufuku
2021-05-31 16:25 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83lf7w4nwc.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=48732@debbugs.gnu.org \
--cc=naofumi@yasufuku.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).