From unknown Wed Jun 25 09:06:23 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#46797 <46797@debbugs.gnu.org> To: bug#46797 <46797@debbugs.gnu.org> Subject: Status: mac_font_shape EXC_BAD_ACCESS Reply-To: bug#46797 <46797@debbugs.gnu.org> Date: Wed, 25 Jun 2025 16:06:23 +0000 retitle 46797 mac_font_shape EXC_BAD_ACCESS reassign 46797 emacs submitter 46797 Jimmy Yuen Ho Wong severity 46797 normal tag 46797 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 26 11:30:59 2021 Received: (at submit) by debbugs.gnu.org; 26 Feb 2021 16:30:59 +0000 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 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 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 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 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) MIME-Version: 1.0 From: Jimmy Yuen Ho Wong Date: Fri, 26 Feb 2021 16:30:13 +0000 Message-ID: Subject: mac_font_shape EXC_BAD_ACCESS To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 26 14:03:58 2021 Received: (at 46797) by debbugs.gnu.org; 26 Feb 2021 19:03:58 +0000 Received: from localhost ([127.0.0.1]:42545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFiP8-00038T-2L for submit@debbugs.gnu.org; Fri, 26 Feb 2021 14:03:58 -0500 Received: from outbound.soverin.net ([116.202.65.218]:36825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFiP2-00038A-F9 for 46797@debbugs.gnu.org; Fri, 26 Feb 2021 14:03:56 -0500 Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id DCEF960232 for <46797@debbugs.gnu.org>; Fri, 26 Feb 2021 19:03:45 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1614366225; bh=HuWUTauFMEI3C+Pv87lwXby8J0xz27hBdXXITFDagDE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X17ERtpTS6J8lw169u2vqR/X9sQFiJqwbRwmIHPsvEQ9oC9/Vo1sM7qzrKer0VqS4 uW+3QfNU9dzw2RwF84run8xzYz+ktOX697+Y4K3nXZO2HwP2G4lDw/ANOJHsKN+v8V HxpmWWZUnPhD2osKAFda0c9vn481aTv7HR6fpT7rERmTpMH/4gF0DCvwoIgvH79WeV Q+RdxuYvlZggUvD1t2p6YfCd4l0AH6K2O84klWJP9z4T3Z9pGP001mFaIyBv6y/OSi ZphtunN2EaC1YSp7q4QSrNeEjwR6h8YQk7GdVzpXjdtcgSabix3GWENzgfF+hDkP8y 8k0MB/rK1U6PQ== Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 4B6BB202AB32D8; Fri, 26 Feb 2021 19:03:41 +0000 (GMT) Date: Fri, 26 Feb 2021 19:03:41 +0000 From: Alan Third To: Jimmy Yuen Ho Wong Subject: Re: bug#46797: mac_font_shape EXC_BAD_ACCESS Message-ID: Mail-Followup-To: Alan Third , Jimmy Yuen Ho Wong , 46797@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46797 Cc: 46797@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 [ | 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 27 00:04:30 2021 Received: (at control) by debbugs.gnu.org; 27 Feb 2021 05:04:30 +0000 Received: from localhost ([127.0.0.1]:43032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFrmI-0000Z7-A9 for submit@debbugs.gnu.org; Sat, 27 Feb 2021 00:04:30 -0500 Received: from quimby.gnus.org ([95.216.78.240]:43720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFrmH-0000Ys-Bd for control@debbugs.gnu.org; Sat, 27 Feb 2021 00:04:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YXx+D/46i0+nMKcAlgeYGUjo2ogwTr4qOzcxmR7/px8=; b=OznmFbE/AgM/dhIJSwZVUDSQD7 EWlorloo4IDDPCHcMZKaB+21mMtr2RNcnPxwK9wgg/o+4iwVa7DOfzIANBEeqI4RnfOZnfu7x+lgl Ne29BdNppmrYcQUYhs4Aid0G0PX1OTr9i7tw/xjY3eW1pHvxtVa0NJ3RKk9OcgVpyDLo=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFrm9-00029E-Ov for control@debbugs.gnu.org; Sat, 27 Feb 2021 06:04:23 +0100 Date: Sat, 27 Feb 2021 06:04:20 +0100 Message-Id: <878s7aje3v.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #46797 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 46797 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 46797 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 27 00:08:16 2021 Received: (at 46797) by debbugs.gnu.org; 27 Feb 2021 05:08:16 +0000 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 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 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) MIME-Version: 1.0 References: In-Reply-To: From: Jimmy Yuen Ho Wong Date: Sat, 27 Feb 2021 05:07:31 +0000 Message-ID: Subject: Re: bug#46797: mac_font_shape EXC_BAD_ACCESS To: Alan Third , Jimmy Yuen Ho Wong , 46797@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46797 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu May 13 07:53:27 2021 Received: (at 46797) by debbugs.gnu.org; 13 May 2021 11:53:27 +0000 Received: from localhost ([127.0.0.1]:41513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lh9uB-0002HF-83 for submit@debbugs.gnu.org; Thu, 13 May 2021 07:53:27 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lh9tu-0002GV-Q0 for 46797@debbugs.gnu.org; Thu, 13 May 2021 07:53:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rBGsec0y7U+WYXi2QIwgzqkX9T3MDhX2AqCLf0VRuz4=; b=eNLeZWCZ0bYh+2t8DP5ydSQd8I dZERnIOrP86wAzhzfTxxXbV/lkeYAegFGs8Z+iEGDu4U5+qA2xWPbk34G76yiWfkjxH6SohhkAoEb wtigCS8WGpee29WXjY6A1OLVEXuE1tmkP7bBBYoy+1FH6ZKw1sVkZK0R9kJ3mn+Jlcjs=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lh9tm-0004VO-D7; Thu, 13 May 2021 13:53:04 +0200 From: Lars Ingebrigtsen To: Jimmy Yuen Ho Wong Subject: Re: bug#46797: mac_font_shape EXC_BAD_ACCESS References: X-Now-Playing: Juliana Hatfield's _Hey Babe_: "Nirvana" Date: Thu, 13 May 2021 13:53:01 +0200 In-Reply-To: (Jimmy Yuen Ho Wong's message of "Sat, 27 Feb 2021 05:07:31 +0000") Message-ID: <87bl9eq28y.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jimmy Yuen Ho Wong writes: > 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 a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46797 Cc: Alan Third , 46797@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jimmy Yuen Ho Wong writes: > 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. This was ten weeks ago, so I guess it's unlikely that there'll be further progress on this bug report, and I'm closing it. If further progress can be made, please respond to the debbugs address and we'll reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu May 13 07:53:17 2021 Received: (at control) by debbugs.gnu.org; 13 May 2021 11:53:17 +0000 Received: from localhost ([127.0.0.1]:41511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lh9u1-0002Gt-2o for submit@debbugs.gnu.org; Thu, 13 May 2021 07:53:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lh9ty-0002Ga-KD for control@debbugs.gnu.org; Thu, 13 May 2021 07:53:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=c2+/DzSXI4CoJnjLTEzk//278GTLMHPVcGz4ZLG5JKg=; b=hVbbGldACGDAnznP9Eu2/fuYZC 0P+kHpP3RJUKFCyjy9+nyxFj6zhs4oO1UXir7fo6dgasnUsC8ekTctbAS1F7Nt5azhyr5tlzrlRo1 C15OKOK67CwwbyWxIFrnLiw3hnwRHjhKeX7HR7UdsohaZ0n3usixTv8vH+jX93aaNtEg=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lh9tr-0004VW-4A for control@debbugs.gnu.org; Thu, 13 May 2021 13:53:09 +0200 Date: Thu, 13 May 2021 13:53:06 +0200 Message-Id: <87a6oyq28t.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #46797 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 46797 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 46797 quit From unknown Wed Jun 25 09:06:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 11 Jun 2021 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator