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: Fri, 26 Feb 2021 16:30:13 +0000 Message-ID: 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="20105"; mail-complaints-to="usenet@ciao.gmane.io" To: 46797@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 26 17:31:51 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 1lFg1u-000586-Ra for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Feb 2021 17:31:50 +0100 Original-Received: from localhost ([::1]:36848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFg1t-00037n-Pg for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Feb 2021 11:31:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFg1A-00037H-80 for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2021 11:31:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFg18-0006xp-QZ for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2021 11:31:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lFg18-0001Dz-Lo for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2021 11:31: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: Fri, 26 Feb 2021 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46797 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16143570594694 (code B ref -1); Fri, 26 Feb 2021 16:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Feb 2021 16:30:59 +0000 Original-Received: from localhost ([127.0.0.1]:42119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFg14-0001Dd-N8 for submit@debbugs.gnu.org; Fri, 26 Feb 2021 11:30:59 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:38392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFg12-0001DV-JF for submit@debbugs.gnu.org; Fri, 26 Feb 2021 11:30:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFg10-00035O-Rx for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2021 11:30:56 -0500 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:39612) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFg0y-0006sq-Pc for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2021 11:30:54 -0500 Original-Received: by mail-lj1-x22a.google.com with SMTP id u4so11276421ljh.6 for ; Fri, 26 Feb 2021 08:30:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=D4DN8uMoB62xsP3OYsBlgRMgT5RO6h8fcVVMtx7lWdw=; b=d9zyOWWUh7UVIcAsLKVlSb5X6lOsIEeFPf931UgsVjnPmfNd8RKeRBPVFpTCD7F9NZ PlG8+qWsL4bPJJ5w7bYh/T0Da1M4WVtcEqxTXQgBMKPLFUyNXXrCmizjUJjW/rCPviWQ m4oeM9lEN+oHizSGlYCjUbfiMN4pM5lhiXfF/ENqlh1XMRBr7Z8tnU48PQyfTUl/hUtP 5vPm5uDBwkCtTDpVU+tnLKRmbAcD3yb/rrc1sIf7rVsPPEpN9mD7HcvB5ncdJxo5u3pA Wd+o8lCnzMLUHqJufnIc4yyyB6wsQaWfkf+WzR/iV18Ru2Q5wsnu66ujx3cN2GdZ3ZUJ 7DoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=D4DN8uMoB62xsP3OYsBlgRMgT5RO6h8fcVVMtx7lWdw=; b=OHAEy4lNfFwGrD6aJ+hrHEFWNeZRhNXycp855vOeBVKYE1XfFYVqco8piKVa5f2YBc oENhSegDRQhbI7pvm1taOWCCzPw8DAcJO8w62toPldUsRE4sEtg4lfKK852tcOaVmXW2 5NLqDHHgRHHUubbVGbQ8d3SoQf7O+CaFm3xjjidNnc1uc1Hh97zpAgMvfQy+E40CPPnp Vneoe3oBPJIfdBPKrszKB+maFBV15bcsclFYjp4PsJSnycS1oT8xksdxw7HLsjdkwaCu BUYBr0JgW+Z+OzOEXMwgX0LEvQtZa4eRAfu6VWdiy1W4achBHPt2izu0khjADmM6CIrv 8Rhg== X-Gm-Message-State: AOAM5312YGm/Bjqk+wvwgIODa0j9se+ByC3Z7ixuKp8RgZJIhIroI3OE doEIJIKdZmZfv/PiXoYO2DHZ74L2JGYEbGe9w3JSwTQUWMc= X-Google-Smtp-Source: ABdhPJzZbT26YlWh7qs+4eOYYE5Ud1YujtPOxgua+9pF0Qg8STK/L5RXmKIlgIn7IjdQNVUQduWDi6ODiFuiFrpePmQ= X-Received: by 2002:a05:651c:11c7:: with SMTP id z7mr2181439ljo.469.1614357049486; Fri, 26 Feb 2021 08:30:49 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=wyuenho@gmail.com; helo=mail-lj1-x22a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:200873 Archived-At: 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) at 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) at macfont.m:3754:34 frame #1: 0x00000001003a529e Emacs`macfont_shape(lgstring=3D0x0000000106e2f005, direction=3D0x0000000000000000) at macfont.m:3000:16 thread #4, name =3D 'gmain' frame #0: 0x00007fff203211fe libsystem_kernel.dylib`__select + 10 frame #1: 0x0000000101f4cbef libglib-2.0.0.dylib`g_poll + 505 frame #2: 0x0000000101f40a3e libglib-2.0.0.dylib`g_main_context_iterate + 340 frame #3: 0x0000000101f40aec libglib-2.0.0.dylib`g_main_context_iteration + 55 frame #4: 0x0000000101f41b99 libglib-2.0.0.dylib`glib_worker_main + 30 frame #5: 0x0000000101f620bd libglib-2.0.0.dylib`g_thread_proxy + 90 frame #6: 0x00007fff2034d950 libsystem_pthread.dylib`_pthread_start + 2= 24 frame #7: 0x00007fff2034947b libsystem_pthread.dylib`thread_start + 15 thread #7 frame #0: 0x00007fff203211fe libsystem_kernel.dylib`__select + 10 frame #1: 0x000000010036dd4d Emacs`-[EmacsApp fd_handler:](self=3D0x000000010532b7f0, _cmd=3D"fd_handler:", unused=3D0x0000000000000000) at nsterm.m:6066:20 frame #2: 0x00007fff211c9e1d Foundation`__NSThread__start__ + 1042 frame #3: 0x00007fff2034d950 libsystem_pthread.dylib`_pthread_start + 2= 24 frame #4: 0x00007fff2034947b libsystem_pthread.dylib`thread_start + 15 thread #9, name =3D 'com.apple.NSEventThread' frame #0: 0x00007fff20318e7e libsystem_kernel.dylib`mach_msg_trap + 10 frame #1: 0x00007fff203191f0 libsystem_kernel.dylib`mach_msg + 60 frame #2: 0x00007fff20445bf7 CoreFoundation`__CFRunLoopServiceMachPort = + 316 frame #3: 0x00007fff204442ca CoreFoundation`__CFRunLoopRun + 1315 frame #4: 0x00007fff204436ce CoreFoundation`CFRunLoopRunSpecific + 563 frame #5: 0x00007fff22de97c6 AppKit`_NSEventThread + 124 frame #6: 0x00007fff2034d950 libsystem_pthread.dylib`_pthread_start + 2= 24 frame #7: 0x00007fff2034947b libsystem_pthread.dylib`thread_start + 15 thread #293 frame #0: 0x00007fff2031a53e libsystem_kernel.dylib`__workq_kernreturn = + 10 frame #1: 0x0019a19a00004000 frame #2: 0x00007fff20349467 libsystem_pthread.dylib`start_wqthread + 1= 5 (lldb) vars error: 'vars' is not a valid command. (lldb) var (CTFontRef) font =3D 0x000000011fb480c0 (CFStringRef) string =3D 0x0000000110d6b1c0 @"=F0=9D=87=80=F0=9D=89=82\0\0\= 0\0" (mac_glyph_layout *) glyph_layouts =3D 0x00007ffeefbe9a50 (CFIndex) glyph_len =3D 8 (lgstring_direction) dir =3D DIR_UNKNOWN (CFIndex) used =3D 4 (CFIndex) result =3D 0 (CTLineRef) ctline =3D 0x00000001242fa0a0 (CFArrayRef) ctruns =3D 0x0000000110da2e10 @"2 elements" (CFIndex) k =3D 0 (CFIndex) ctrun_count =3D 2 (CGFloat) total_advance =3D 0 (CFIndex) total_glyph_count =3D 0 (CTRunRef) ctrun =3D 0x00000001242f9d00 (CFIndex) i =3D 14 (CFIndex) min_location =3D 8458716092896928869 (CFIndex) glyph_count =3D 1 (mac_glyph_layout *) glbuf =3D 0x00007ffeefbe9a50 (CFRange) string_range =3D location=3D0 length=3D2 (CFRange) comp_range =3D location=3D9223372036854775807 length=3D0 (CFRange) range =3D location=3D1142 length=3D493 (CFIndex *) permutation =3D 0x0000000000000000 (mac_glyph_layout *) gl =3D 0x00007ffeefbffff8 Jimmy Yuen Ho Wong