From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jonathan Mitchell Newsgroups: gmane.emacs.bugs Subject: bug#56527: 28.1; Crash on macOS with magit Date: Thu, 14 Jul 2022 13:42:35 -0500 Message-ID: References: <83h73lw905.fsf@gnu.org> <83edyouv7i.fsf@gnu.org> <83v8s0tbgn.fsf@gnu.org> <835yjzu107.fsf@gnu.org> <834jzjtz6c.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008f3b6a05e3c844e9" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17562"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56527@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 14 21:06:10 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 1oC4A4-0004K1-Tt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 21:06:09 +0200 Original-Received: from localhost ([::1]:38660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oC4A3-0001Ai-Sp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 15:06:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC3nj-0008TV-25 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 14:43:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41109) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oC3ni-0005Tp-P5 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 14:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oC3ni-0002EU-Hz for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 14:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jonathan Mitchell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2022 18:43: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.16578241768570 (code B ref 56527); Thu, 14 Jul 2022 18:43:02 +0000 Original-Received: (at 56527) by debbugs.gnu.org; 14 Jul 2022 18:42:56 +0000 Original-Received: from localhost ([127.0.0.1]:38868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oC3nb-0002EA-Pz for submit@debbugs.gnu.org; Thu, 14 Jul 2022 14:42:56 -0400 Original-Received: from mail-pg1-f170.google.com ([209.85.215.170]:34454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oC3nZ-0002Dv-NG for 56527@debbugs.gnu.org; Thu, 14 Jul 2022 14:42:54 -0400 Original-Received: by mail-pg1-f170.google.com with SMTP id g4so2376802pgc.1 for <56527@debbugs.gnu.org>; Thu, 14 Jul 2022 11:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6qfTY6VUHUGgKlqzxjIvvPZ00mP6ABlBJVYzrh1gY8k=; b=NiQsbP8wi9CqFFbhfJAInqdHMvDPR4tseORqqppuaumRqRf+uAUFhAoITK45XXixNo ajGl4xHfvvSOYbSdAeXEBdFkXP2nfgVX6ioCf4l1OH6K3cBvFt91IH1OaFZoIhHSoNTg ue7mYovvZBHGKXZfzuS8WqcLEkVfhKBvxod+/QZRttSzlpc8IDJn860YggE2I+20DUU5 jPKaVa+1kLfkr40HNS7iyC9fBYDfoSO0BAvL5aMTiApumlwQcyAH7JV6ZLgTZnZLm299 e3xFN32rvHgoCucsVk1u6eNdbqtxMGuBmToATJTaUO2mDL4asOMSLQTwZxn8od0hN1wW eL0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6qfTY6VUHUGgKlqzxjIvvPZ00mP6ABlBJVYzrh1gY8k=; b=Iy4YNMDyqihoaFUBXMRE33sFUJkQG9F+LFHYQ7hYuS+KDTVrtpGRwCBVHgEieZn3y6 xGcnw52Iu3su2AxiPzeKklDW/GtBOCCHS9H52e1W0NBmE20Zoz/Kt1Eotw9/ppsgFwWQ INBeuYpGDsQX6sW1zpEPTtt9s1FgycXiPOXaFE+u6ACoxKAvo+i+aM0uYISZHen7ON1Y 8OZofe9LnZiQcZsqFuq/h8CmUgz0DTuit1OkwT2tU5GkNgEMTJgJRhSNa1lv5kcUc4+k uOeFIWe54FswUiKB493i3vlLlOheGgWHzqmeWo3eWTrBffYdH5ySzIJ/hELKZilLLv/y 7ViA== X-Gm-Message-State: AJIora/nuy1j2oNAmeewEU3w+Ao0wGUnx3VdCjfi2PFVBiKE/mn01NE9 rbn5LSCyKOvcl8rVMa9h7GZSCBO18KHcojJYEyY= X-Google-Smtp-Source: AGRyM1sALOH8+fmgX7jeDfKVApiFmy5DNg1IIT+B6iTu7otiHKtBVxyA8Dml49MEXR73lDy6HBxSX2kcM/NZFFyU+1Y= X-Received: by 2002:a63:165a:0:b0:415:4564:6ae1 with SMTP id 26-20020a63165a000000b0041545646ae1mr8513036pgw.526.1657824166753; Thu, 14 Jul 2022 11:42:46 -0700 (PDT) In-Reply-To: <834jzjtz6c.fsf@gnu.org> 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:237036 Archived-At: --0000000000008f3b6a05e3c844e9 Content-Type: text/plain; charset="UTF-8" I guess it could be an Apple quality problem :-). Unless I'm reading LLDB incorrectly, it says m->charpos = 0 for that frame. On Thu, Jul 14, 2022 at 11:52 AM Eli Zaretskii wrote: > > From: Jonathan Mitchell > > Date: Thu, 14 Jul 2022 11:18:02 -0500 > > Cc: 56527@debbugs.gnu.org > > > > I think this should be the "m" variable in the assert: > > > > (lldb) frame select 9 > > > > frame #9: 0x000000010020bab4 emacs`adjust_markers_for_insert(from=1, > > from_byte=1, to=15403, to_byte=15413, before_markers=false) at > insdel.c:294: > > 7 > > 291 adjust_suspend_auto_hscroll (from, to); > > 292 for (m = BUF_MARKERS (current_buffer); m; m = m->next) > > 293 { > > -> 294 eassert (m->bytepos >= m->charpos > > 295 && m->bytepos - m->charpos <= Z_BYTE - Z); > > 296 > > 297 if (m->bytepos == from_byte) > > (lldb) p *(struct Lisp_Marker *) m > > (struct Lisp_Marker) $1158 = { > > header = (size = 4611686018477740032) > > buffer = 0x00000001026b2718 > > need_adjustment = false > > insertion_type = true > > next = 0x00000001026f5f70 > > charpos = 0 > > bytepos = 11043 > > } > > ??? charpos = 0? How can that happen? charpos can never be zero, it > starts at 1. > > Are you sure your machine doesn't have problems with its memory chips? > --0000000000008f3b6a05e3c844e9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I guess it could be an Apple quality problem :-). Unless I= 'm reading LLDB incorrectly, it says m->charpos =3D 0 for that frame= .

On Thu, Jul 14, 2022 at 11:52 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Jonathan Mitchell <mitchell.jkyle@gmail.com> > Date: Thu, 14 Jul 2022 11:18:02 -0500
> Cc: 56527@d= ebbugs.gnu.org
>
> I think this should be the "m" variable in the assert:
>
> (lldb) frame select 9
>
> frame #9: 0x000000010020bab4 emacs`adjust_markers_for_insert(from=3D1,=
> from_byte=3D1, to=3D15403, to_byte=3D15413, before_markers=3Dfalse) at= insdel.c:294:
> 7
>=C2=A0 =C2=A0 291=C2=A0 =C2=A0adjust_suspend_auto_hscroll (from, to); >=C2=A0 =C2=A0 292=C2=A0 =C2=A0for (m =3D BUF_MARKERS (current_buffer); = m; m =3D m->next)
>=C2=A0 =C2=A0 293=C2=A0 =C2=A0 =C2=A0{
> -> 294=C2=A0 =C2=A0 =C2=A0 =C2=A0eassert (m->bytepos >=3D m-&= gt;charpos
>=C2=A0 =C2=A0 295=C2=A0 =C2=A0 =C2=A0 =C2=A0 && m->bytepos -= m->charpos <=3D Z_BYTE - Z);
>=C2=A0 =C2=A0 296
>=C2=A0 =C2=A0 297=C2=A0 =C2=A0 =C2=A0 =C2=A0if (m->bytepos =3D=3D fr= om_byte)
> (lldb) p *(struct Lisp_Marker *) m
> (struct Lisp_Marker) $1158 =3D {
>=C2=A0 =C2=A0header =3D (size =3D 4611686018477740032)
>=C2=A0 =C2=A0buffer =3D 0x00000001026b2718
>=C2=A0 =C2=A0need_adjustment =3D false
>=C2=A0 =C2=A0insertion_type =3D true
>=C2=A0 =C2=A0next =3D 0x00000001026f5f70
>=C2=A0 =C2=A0charpos =3D 0
>=C2=A0 =C2=A0bytepos =3D 11043
> }

??? charpos =3D 0?=C2=A0 How can that happen?=C2=A0 charpos can never be ze= ro, it
starts at 1.

Are you sure your machine doesn't have problems with its memory chips?<= br>
--0000000000008f3b6a05e3c844e9--