From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jimmy Yuen Ho Wong Newsgroups: gmane.emacs.bugs Subject: bug#46797: mac_font_shape EXC_BAD_ACCESS Date: Sat, 27 Feb 2021 05:07:31 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30674"; mail-complaints-to="usenet@ciao.gmane.io" To: Alan Third , Jimmy Yuen Ho Wong , 46797@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 27 06:09:34 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 1lFrrC-0007tJ-1b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Feb 2021 06:09:34 +0100 Original-Received: from localhost ([::1]:41562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFrrB-0003xb-4c for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Feb 2021 00:09:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFrqh-0003ia-Ca for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 00:09:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59736) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFrqh-0008Sl-4T for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 00:09:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lFrqg-0000gx-Uc for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 00:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jimmy Yuen Ho Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Feb 2021 05:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 46797-submit@debbugs.gnu.org id=B46797.16144024962599 (code B ref 46797); Sat, 27 Feb 2021 05:09:02 +0000 Original-Received: (at 46797) by debbugs.gnu.org; 27 Feb 2021 05:08:16 +0000 Original-Received: from localhost ([127.0.0.1]:43048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFrpw-0000fr-67 for submit@debbugs.gnu.org; Sat, 27 Feb 2021 00:08:16 -0500 Original-Received: from mail-lj1-f180.google.com ([209.85.208.180]:45942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFrpt-0000fP-FX for 46797@debbugs.gnu.org; Sat, 27 Feb 2021 00:08:13 -0500 Original-Received: by mail-lj1-f180.google.com with SMTP id y12so121864ljj.12 for <46797@debbugs.gnu.org>; Fri, 26 Feb 2021 21:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=NMUXnQ52oavzqO7BQtLPyCP9P5r+yHIM/qrOXi0ybXg=; b=lToVRC86t3Ypff7ZVYfvmYjhdrvanVJYlafCdJw4eFdAczLZ4DkMNpKxoqNV7EX73d rxzGiiYpV6G0SRYb97Vmp0dom4k9blCvKpkPeUcW5svdIqoxx5Q77Do/GBJAgeJCVV5I vMBTt5A8toECDKPbPc993vA01LVaAEuCrbljvCgPGLEIclCgEjPD/u7LywgDeqv8hW1l szPHk8isj8ZxdQY7WsIw+D5ixY0EAVT3NLDmipno1y6FelIjbcWGI7RFNDK7ZWvfL1/6 LfD+fxYSSKowdPTtQTWbXCpca4la4/kXADewxOHz7kj39QcbRCo4WkXrdGWK5lDI766L 6XIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=NMUXnQ52oavzqO7BQtLPyCP9P5r+yHIM/qrOXi0ybXg=; b=Y+iCP7DhO+PfP0//eNQ5lwyJHsvSBtD5q3VEOJqALH4Dxjn4nrbm7uhG+WdyFITYSa Qwd1jBJC7YxZy9/18+WUIQhdXRVpjCJq1vg421Uqhq62TQ8jGGa0cSb4l4IBw5LQQWmK EDHrLMj0FBXWNsDVgSAz2TvgZj8YLx7/nnVEgv5J/IwUc3pwMFvbBoXuThFMX3vuSL5m QR5XLrxdcgIy/5qJyyTfKLBq0FrmipMD/lhUL9XwwKnjrMWIx46oNfYd0r2mGMGxhFdP pJLAVh7+LMOLkFtbP94Y0EpaMhcKqpQKu7tPGO8WGW9cksbrvHoyIXIPUnxpyD95M4y7 TDyA== X-Gm-Message-State: AOAM533+ml4a38BrkUkbjIf/LgqAtgJeSTXG8wodg5nyVWqoNOhZGhYh i4/QjqXaxpYrNgaajXm0qF22C9/qiw9wK3jIP4E= X-Google-Smtp-Source: ABdhPJwIZglZal1ZHeMlvA86OC/Tl3q/IXogXo9g+cp4hw+KtybRvFDV6mnGed2ISq8xHUAeQvprYgEzHm6AJ3fPxz4= X-Received: by 2002:a2e:964e:: with SMTP id z14mr3504847ljh.204.1614402487438; Fri, 26 Feb 2021 21:08:07 -0800 (PST) In-Reply-To: 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:200915 Archived-At: 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 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 =3D 'com.apple.main-thread', stop reason =3D > > EXC_BAD_ACCESS (code=3D1, address=3D0x7ffeefc00000) > > frame #0: 0x00000001003abd3a > > Emacs`mac_font_shape(font=3D0x000000011fb480c0, string=3D@"=F0=9D=87=80= =F0=9D=89=82\0\0\0\0", > > glyph_layouts=3D0x00007ffeefbe9a50, glyph_len=3D8, dir=3DDIR_UNKNOWN) a= t > > macfont.m:3754:34 > > 3751 struct mac_glyph_layout *gl =3D > > 3752 glbuf + range.location + range.length; > > 3753 > > -> 3754 if (gl->comp_range.length > > 3755 > comp_range.location + comp_range.length) > > 3756 comp_range.length =3D gl->comp_range.length - > > comp_range.location; > > 3757 min_location =3D gl->comp_range.location; > > Target 0: (Emacs) stopped. > > (lldb) bt --all > > error: bt [ | all] > > (lldb) bt all > > * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D > > EXC_BAD_ACCESS (code=3D1, address=3D0x7ffeefc00000) > > * frame #0: 0x00000001003abd3a > > Emacs`mac_font_shape(font=3D0x000000011fb480c0, string=3D@"=F0=9D=87=80= =F0=9D=89=82\0\0\0\0", > > glyph_layouts=3D0x00007ffeefbe9a50, glyph_len=3D8, dir=3DDIR_UNKNOWN) a= t > > macfont.m:3754:34 > > frame #1: 0x00000001003a529e > > Emacs`macfont_shape(lgstring=3D0x0000000106e2f005, > > direction=3D0x0000000000000000) at macfont.m:3000:16 > > The interesting bit here is missing. > > Can you repeat the crash and give us a recipe? > -- > Alan Third