unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
To: Alan Third <alan@idiocy.org>,
	Jimmy Yuen Ho Wong <wyuenho@gmail.com>,
	46797@debbugs.gnu.org
Subject: bug#46797: mac_font_shape EXC_BAD_ACCESS
Date: Sat, 27 Feb 2021 05:07:31 +0000	[thread overview]
Message-ID: <CAKDRQS5sJxiXUgOJQgsnSwM3R7D7YO8=vB7oG+_CY8ZcjwB25A@mail.gmail.com> (raw)
In-Reply-To: <YDlGDV1FPebgMBQZ@breton.holly.idiocy.org>

All I did was type really fast under emacs-lisp-mode that has company
and company-box setup, I just typed faster than company was able to
show me a completion menu.

Like many emacs crashes and hangs, I have no way of reproducing them
consistently. Given there's not even an lldbinit written, I can't even
debug it effectively. All I can do is run emacs compiled with
debugging information under lldb.

Jimmy

On Fri, Feb 26, 2021 at 7:03 PM Alan Third <alan@idiocy.org> wrote:
>
> On Fri, Feb 26, 2021 at 04:30:13PM +0000, Jimmy Yuen Ho Wong wrote:
> > Emacs crash on the NSPort of emacs27 HEAD, here's the LLDB info:
> >
> > Process 94921 stopped
> > * thread #1, queue = 'com.apple.main-thread', stop reason =
> > EXC_BAD_ACCESS (code=1, address=0x7ffeefc00000)
> >     frame #0: 0x00000001003abd3a
> > Emacs`mac_font_shape(font=0x000000011fb480c0, string=@"𝆺𝅥𝅯𝉂\0\0\0\0",
> > glyph_layouts=0x00007ffeefbe9a50, glyph_len=8, dir=DIR_UNKNOWN) at
> > macfont.m:3754:34
> >    3751               struct mac_glyph_layout *gl =
> >    3752                 glbuf + range.location + range.length;
> >    3753
> > -> 3754               if (gl->comp_range.length
> >    3755                   > comp_range.location + comp_range.length)
> >    3756                 comp_range.length = gl->comp_range.length -
> > comp_range.location;
> >    3757               min_location = gl->comp_range.location;
> > Target 0: (Emacs) stopped.
> > (lldb) bt --all
> > error: bt [<digit> | all]
> > (lldb) bt all
> > * thread #1, queue = 'com.apple.main-thread', stop reason =
> > EXC_BAD_ACCESS (code=1, address=0x7ffeefc00000)
> >   * frame #0: 0x00000001003abd3a
> > Emacs`mac_font_shape(font=0x000000011fb480c0, string=@"𝆺𝅥𝅯𝉂\0\0\0\0",
> > glyph_layouts=0x00007ffeefbe9a50, glyph_len=8, dir=DIR_UNKNOWN) at
> > macfont.m:3754:34
> >     frame #1: 0x00000001003a529e
> > Emacs`macfont_shape(lgstring=0x0000000106e2f005,
> > direction=0x0000000000000000) at macfont.m:3000:16
>
> The interesting bit here is missing.
>
> Can you repeat the crash and give us a recipe?
> --
> Alan Third





  reply	other threads:[~2021-02-27  5:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-26 16:30 bug#46797: mac_font_shape EXC_BAD_ACCESS Jimmy Yuen Ho Wong
2021-02-26 19:03 ` Alan Third
2021-02-27  5:07   ` Jimmy Yuen Ho Wong [this message]
2021-05-13 11:53     ` Lars Ingebrigtsen

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='CAKDRQS5sJxiXUgOJQgsnSwM3R7D7YO8=vB7oG+_CY8ZcjwB25A@mail.gmail.com' \
    --to=wyuenho@gmail.com \
    --cc=46797@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    /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).