From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56527: 28.1; Crash on macOS with magit Date: Thu, 14 Jul 2022 08:20:01 +0300 Message-ID: <83edyouv7i.fsf@gnu.org> References: <83h73lw905.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19421"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56527@debbugs.gnu.org To: Jonathan Mitchell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 14 07:21:24 2022 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 1oBrHw-0004vJ-Cj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 07:21:24 +0200 Original-Received: from localhost ([::1]:53504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBrHv-0006ur-6p for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 01:21:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBrHa-0006ua-PD for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 01:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBrHa-0005x6-Fq for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 01:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBrHa-00040O-A0 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 01:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2022 05:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56527 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 56527-submit@debbugs.gnu.org id=B56527.165777602115308 (code B ref 56527); Thu, 14 Jul 2022 05:21:02 +0000 Original-Received: (at 56527) by debbugs.gnu.org; 14 Jul 2022 05:20:21 +0000 Original-Received: from localhost ([127.0.0.1]:48374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBrGu-0003yp-TL for submit@debbugs.gnu.org; Thu, 14 Jul 2022 01:20:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBrGq-0003yW-0a for 56527@debbugs.gnu.org; Thu, 14 Jul 2022 01:20:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBrGk-0002w9-PT; Thu, 14 Jul 2022 01:20:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=yamoPpD1w5HpnjqFCJmxvw+3NfiRq0ohd5+YnCCGgFs=; b=SX41DZUTIEMJ /Fr+h5wr89kZQWSeaDn9g15g9Pst+eDCA+SANMMtJmnNo922IKXdqcM+1J9ZdvXZhptKYK2pIdwrE vW+PIxd4Dp38+i859LhzGfoha8284rFxbbGJSCYz/75GdhgR/enfB2TMVO/+zis6O6UNjvm6fVXMh p1No95ewJ9IZ2aiclXREUfayqAebrxceYi44FqACG5g0imOhCchLHy3FIFzPpxWF923TYANuiHavk b6TwJ2cotkQdq2iW2vBRwa/Vd+BkFwhJtBsT/TP651152T2wvJEq08ZOv2NKjbm+wI2DYVuY5gVIF BP1plbs620vYGbFnB6IFiA==; Original-Received: from [87.69.77.57] (port=2926 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBrGi-0002Cn-Cs; Thu, 14 Jul 2022 01:20:10 -0400 In-Reply-To: (message from Jonathan Mitchell on Wed, 13 Jul 2022 17:16:21 -0500) 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:236948 Archived-At: > From: Jonathan Mitchell > Date: Wed, 13 Jul 2022 17:16:21 -0500 > Cc: 56527@debbugs.gnu.org > > I built a debug version of emacs-28 with this configuration: > `configure --enable-checking=all --enable-check-lisp-object-type > 'CFLAGS=-O0 -g3' --without-png --without-rsvg`. > > I was in magit repeatedly pressing the "l" key (bound to magit-log in > magit-log-mode-map) when it crashed this time. The LLDB trace is > below. > > (lldb) target create "./emacs" > Current executable set to '/Users/kyle/emacs/src/emacs' (arm64). > (lldb) run > Process 77095 launched: '/Users/kyle/emacs/src/emacs' (arm64) > > alloc.c:3139: Emacs fatal error: assertion failed: ! PSEUDOVEC_STRUCT > (vector, Lisp_Marker)->buffer > Process 77095 stopped > * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT > frame #0: 0x00000001bdae6d98 libsystem_kernel.dylib`__pthread_kill + 8 > libsystem_kernel.dylib`__pthread_kill: > -> 0x1bdae6d98 <+8>: b.lo 0x1bdae6db8 ; <+40> > 0x1bdae6d9c <+12>: pacibsp > 0x1bdae6da0 <+16>: stp x29, x30, [sp, #-0x10]! > 0x1bdae6da4 <+20>: mov x29, sp > Target 0: (emacs) stopped. > (lldb) xbacktrace > (unsigned char *) data = evaluate: parent is NULL> > (unsigned char *) data = evaluate: parent is NULL> > (unsigned char *) data = evaluate: parent is NULL> > (unsigned char *) data = evaluate: parent is NULL> > (unsigned char *) data = evaluate: parent is NULL> > (unsigned char *) data = evaluate: parent is NULL> > (unsigned char *) data = evaluate: parent is NULL> > (unsigned char *) data = evaluate: parent is NULL> > (unsigned char *) data = evaluate: parent is NULL> > (unsigned char *) data = evaluate: parent is NULL> > (unsigned char *) data = evaluate: parent is NULL> > (lldb) bt > * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT > * frame #0: 0x00000001bdae6d98 libsystem_kernel.dylib`__pthread_kill + 8 > frame #1: 0x00000001bdb1bee0 libsystem_pthread.dylib`pthread_kill + 288 > frame #2: 0x00000001bda1e680 libsystem_c.dylib`raise + 32 > frame #3: 0x0000000100478d70 emacs`terminate_due_to_signal(sig=6, > backtrace_limit=40) at emacs.c:437:3 > frame #4: 0x00000001004791f4 emacs`emacs_abort at sysdep.c:2282:3 > frame #5: 0x0000000100405488 emacs`ns_term_shutdown(sig=6) at > nsterm.m:5367:7 > frame #6: 0x00000001001a0788 emacs`shut_down_emacs(sig=6, stuff=-> > ) at emacs.c:2796:3 > frame #7: 0x0000000100478cf8 emacs`terminate_due_to_signal(sig=6, > backtrace_limit=2147483647) at emacs.c:420:11 > frame #8: 0x00000001004796b8 emacs`die(msg="! PSEUDOVEC_STRUCT > (vector, Lisp_Marker)->buffer", file="alloc.c", line=3139) at > alloc.c:7481:3 > frame #9: 0x0000000100289520 > emacs`cleanup_vector(vector=0x0000000102931240) at alloc.c:3139:7 > frame #10: 0x0000000100288c50 emacs`sweep_vectors at alloc.c:3218:5 > frame #11: 0x0000000100281278 emacs`gc_sweep at alloc.c:7245:3 > frame #12: 0x000000010027f8c8 emacs`garbage_collect at alloc.c:6178:3 > frame #13: 0x000000010027f170 emacs`maybe_garbage_collect at alloc.c:6045:5 > frame #14: 0x00000001002d5c9c emacs`maybe_gc at lisp.h:5142:5 This is not a crash, it's an abort inside GC, so it seems like a different problem. Of course, it could be that this abort in a debug build caught the reason for the crash in your original build. Anyway, the next step is to establish what is this bad object that causes the abort: > frame #8: 0x00000001004796b8 emacs`die(msg="! PSEUDOVEC_STRUCT > (vector, Lisp_Marker)->buffer", file="alloc.c", line=3139) at > alloc.c:7481:3 > frame #9: 0x0000000100289520 > emacs`cleanup_vector(vector=0x0000000102931240) at alloc.c:3139:7 That 'vector' -- what is it and where did it come from? Can you examine its components and show their contents? Thanks.