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 10:11:52 +0300 Message-ID: <83v8s0tbgn.fsf@gnu.org> References: <83h73lw905.fsf@gnu.org> <83edyouv7i.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1737"; 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 09:14:06 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 1oBt2z-0000EQ-GI for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 09:14:05 +0200 Original-Received: from localhost ([::1]:36438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBt2y-0006n0-8a for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 03:14:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBt1z-0006lT-P3 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 03:13:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBt1z-00070q-24 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 03:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBt1y-00071U-Qq for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 03:13: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 07:13: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.165778273226917 (code B ref 56527); Thu, 14 Jul 2022 07:13:02 +0000 Original-Received: (at 56527) by debbugs.gnu.org; 14 Jul 2022 07:12:12 +0000 Original-Received: from localhost ([127.0.0.1]:48599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBt1A-000704-4B for submit@debbugs.gnu.org; Thu, 14 Jul 2022 03:12:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBt15-0006zc-5j for 56527@debbugs.gnu.org; Thu, 14 Jul 2022 03:12:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBt0y-0006v9-EW; Thu, 14 Jul 2022 03:12:01 -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=3Hy6zumIsJw9jjoscMqCHucxlIkeRsHP0pLitFIVNtg=; b=A8JfolmEAxpI 3YIddLjyYQN953F7/Mo509NejORq5GWPtLktuUWUwnVvkJNjEOUnv2gCiCKWxXoDQ14lNA9j2Ikhu Bq88frKlPncOiWL2iii5i9zbDkXCg9Bhk1XPxX4UpMcCIcAybim0YD1YzUXuTCrK60+cB7mjjI8wq 3rio7rBzbUeIFC13hPYZBUPek8NsLvXqxoxTr1YVV4bmqMs7kaPeneLgmGd2Rw08XDKegzL7OIXxr HggYloTxnhex5P4LXbvhnPD2CO44ijMymzzHLFGQDFNnna+bkddmWTPdY+qWQ0xirKdQzQ+jLyjl8 cOlddgonJoyBT0sN7EC0CA==; Original-Received: from [87.69.77.57] (port=1993 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 1oBt0x-0003GI-Cx; Thu, 14 Jul 2022 03:12:00 -0400 In-Reply-To: (message from Jonathan Mitchell on Thu, 14 Jul 2022 01:11:27 -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:236966 Archived-At: > From: Jonathan Mitchell > Date: Thu, 14 Jul 2022 01:11:27 -0500 > Cc: 56527@debbugs.gnu.org > > I think I've worked out how to print basic values in LLDB. The > vector=0x0000000102931240 appears to be a Marker object in the buffer > "magit-log: emacs". Both the marker and buffer are printed in the > attached debugger log. Thanks. > (lldb) p *(struct Lisp_Marker *) 0x0000000102931240 > (struct Lisp_Marker) $1248 = { > header = (size = 4611686018477740032) > buffer = 0x0000000131008600 > need_adjustment = false > insertion_type = false > next = nullptr > charpos = 1 > bytepos = 1 So the problem happens because sweep_buffer doesn't set the marker's buffer to NULL, which is supposed to happen in unchain_dead_markers, called by sweep_buffers. The question is why.