From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alex =?UTF-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.bugs Subject: bug#48337: Fwd: 28.0.50; Emacs crashing randomly (possibly minibuffer activity related) Date: Tue, 11 May 2021 13:54:02 +0100 Message-ID: References: <87tunasd2u.fsf@linaro.org> <83fsyu57oj.fsf@gnu.org> <838s4l5uld.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000258df005c20d6432" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13733"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , 48337@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 14:55:57 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 1lgRvZ-0003Pp-FF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 14:55:57 +0200 Original-Received: from localhost ([::1]:47890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgRvY-0004HI-Hl for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 08:55:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgRug-0002vE-Re for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 08:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51995) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgRug-0005Gv-Is for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 08:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgRug-0001No-HF for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 08:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex =?UTF-8?Q?Benn=C3=A9e?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 May 2021 12:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48337 X-GNU-PR-Package: emacs Original-Received: via spool by 48337-submit@debbugs.gnu.org id=B48337.16207376625261 (code B ref 48337); Tue, 11 May 2021 12:55:02 +0000 Original-Received: (at 48337) by debbugs.gnu.org; 11 May 2021 12:54:22 +0000 Original-Received: from localhost ([127.0.0.1]:35308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgRu2-0001Mn-8R for submit@debbugs.gnu.org; Tue, 11 May 2021 08:54:22 -0400 Original-Received: from mail-lj1-f175.google.com ([209.85.208.175]:39558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgRu0-0001MZ-Ah for 48337@debbugs.gnu.org; Tue, 11 May 2021 08:54:21 -0400 Original-Received: by mail-lj1-f175.google.com with SMTP id y9so24969710ljn.6 for <48337@debbugs.gnu.org>; Tue, 11 May 2021 05:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ecmveUGFqsmKL29mYXq8tWxUF2VBGIPhXa8pbOEIeCU=; b=ldEf/0ZW4GT7i8Ssmm45AHgRBPSvQpWZSuwCZhCid4qNfIulKEv9aYEcJsRWMO1x8M LYL7RvPQAIaavvemF9BMPtYb1C//ezb3ilubM5lZ4Kcebsj9j9HYkP56PvVA9VZVKjo5 IyqnOZiAmOOrrWEBUftN2nlwwdBJ63Xpf9YEOQiv7pVdlSKP9X5oNPigIAozz2Tdpf9C Ap3D68K0jHiT7IZxXpSJzRZ7G8QNeQyVLiRf0SDyYZQ9OIQEH1DCbQHxPrpe/Htca2Rq syTigSqJP5Fd8fFUTuj1ThtOABk5CYvv4hAjfIKR6cKaAOqt8LzZZxmue3YZNB5j0NcE YHSA== 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:cc; bh=ecmveUGFqsmKL29mYXq8tWxUF2VBGIPhXa8pbOEIeCU=; b=nDMUXo+oRB+F/Q7mbJN9acOcs31QJo2bdy7WVyCIl4zpXNpQeEH7voBw6R9l/N/Ssz WJV7+GfMQYWgu2D/LgzQ4LoR4Tsh6MRHxMj/KBB2MrUW+p5MvxJ1CqCsBw5JboWohha2 asTttGvN0WfckZyid3VHaEP9hl2qeSkO/hkGMW10fTFB7QesGGQ/o7Kf1VFFkR/tDXOc xcm1+2ysRanH18jjzK/L8LONzWL6AH9paNXZOTNonxbV/NwAhFCSJd1RU/YzcfST79qL qwKqI6RLbJkx2amEE7T/EsVGlUovK1p+mBGzG7q2rBOjvQMEo0+g0nIo5w/k3lGl+Gbc Hx8Q== X-Gm-Message-State: AOAM533uV2TnIuWevDH6ny+a6fVZEpOvs2rQNKlEErPLlAMkB2/gKXim JIiZp6i7f5CVHM550T/gJqfZp3w9iIRWxA5dX7U+IQ== X-Google-Smtp-Source: ABdhPJw/vMDRtZLlrTGsYKtpdpY1x8knn9iVYKxTipCeB9+ni0u2p2kvQHuYcS2pzZjjGr3JSUEmj0pPAS8OhgniURs= X-Received: by 2002:a2e:8e21:: with SMTP id r1mr24213388ljk.166.1620737654093; Tue, 11 May 2021 05:54:14 -0700 (PDT) In-Reply-To: <838s4l5uld.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:206230 Archived-At: --000000000000258df005c20d6432 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (gdb) pp Vminibuffer_list (# #) On Tue, 11 May 2021 at 13:21, Eli Zaretskii wrote: > > From: Alex Benn=C3=A9e > > Date: Tue, 11 May 2021 07:51:20 +0100 > > Cc: 48337@debbugs.gnu.org, Alan Mackenzie > > > > I can now recreate at will with a magit sequence (l o hackbox/ TAB) > which triggers a minibuffer re-size to > > accommodate the list of git branches: > > > > (gdb) info frame 0 > > Stack frame at 0x7fffffffb2e0: > > rip =3D 0x5555556a80ef in Factive_minibuffer_window (minibuf.c:230); > saved rip =3D 0x5555556f52ab > > called by frame at 0x7fffffffb340 > > source language c. > > Arglist at 0x7fffffffb2c8, args: > > Locals at 0x7fffffffb2c8, Previous frame's sp is 0x7fffffffb2e0 > > Saved registers: > > rip at 0x7fffffffb2d8 > > (gdb) x/5i $pc > > =3D> 0x5555556a80ef : mov > -0x3(%rax),%r10 > > 0x5555556a80f3 : lea > -0x3(%rdx),%eax > > 0x5555556a80f6 : test $0x7,%al > > 0x5555556a80f8 : jne > 0x5555556a8153 > > > > 0x5555556a80fa : nopw > 0x0(%rax,%rax,1) > > (gdb) p/x $rax > > $4 =3D 0x0 > > (gdb) p/x $r10 > > $5 =3D 0x7fffeece9c6d > > (gdb) l > > 225 Lisp_Object innermost_MB; > > 226 > > 227 if (!minibuf_level) > > 228 return Qnil; > > 229 > > 230 innermost_MB =3D nth_minibuffer (minibuf_level); > > 231 FOR_EACH_FRAME (frames, frame) > > 232 { > > 233 f =3D XFRAME (frame); > > 234 if (FRAME_LIVE_P (f) > > (gdb) p minibuf_level > > $6 =3D 2 > > (gdb) p Vminibuffer_list > > $7 =3D (Lisp_Object) 0x555555c9aca3 > > (gdb) p $* > > A syntax error in expression, near `'. > > (gdb) p *$ > > $8 =3D > > (gdb) > > > > Let me know if you want something else. > > I want this: > > (gdb) pp Vminibuffer_list > > If GDB says it doesn't know "pp", you need to source the .gdbinit file > in the Emacs's src directory. > > Thanks. > --=20 Alex Benn=C3=A9e KVM/QEMU Hacker for Linaro --000000000000258df005c20d6432 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(gdb) pp Vminibuffer_list
(#<buffer =C2=A0*Minibuf-0= *> #<buffer =C2=A0*Minibuf-1*>)

On Tue, 11 May 2021 at 13:21, E= li Zaretskii <eliz@gnu.org> wrote= :
> From: Ale= x Benn=C3=A9e <alex.bennee@linaro.org>
> Date: Tue, 11 May 2021 07:51:20 +0100
> Cc: 48337@d= ebbugs.gnu.org, Alan Mackenzie <acm@muc.de>
>
> I can now recreate at will with a magit sequence (l o hackbox/ TAB) wh= ich triggers a minibuffer re-size to
> accommodate the list of git branches:
>
> (gdb) info frame 0
> Stack frame at 0x7fffffffb2e0:
>=C2=A0 rip =3D 0x5555556a80ef in Factive_minibuffer_window (minibuf.c:2= 30); saved rip =3D 0x5555556f52ab
>=C2=A0 called by frame at 0x7fffffffb340
>=C2=A0 source language c.
>=C2=A0 Arglist at 0x7fffffffb2c8, args:
>=C2=A0 Locals at 0x7fffffffb2c8, Previous frame's sp is 0x7fffffffb= 2e0
>=C2=A0 Saved registers:
>=C2=A0 =C2=A0rip at 0x7fffffffb2d8
> (gdb) x/5i $pc
> =3D> 0x5555556a80ef <Factive_minibuffer_window+79>:=C2=A0 =C2= =A0 =C2=A0 =C2=A0mov=C2=A0 =C2=A0 -0x3(%rax),%r10
>=C2=A0 =C2=A0 0x5555556a80f3 <Factive_minibuffer_window+83>:=C2= =A0 =C2=A0 =C2=A0 =C2=A0lea=C2=A0 =C2=A0 -0x3(%rdx),%eax
>=C2=A0 =C2=A0 0x5555556a80f6 <Factive_minibuffer_window+86>:=C2= =A0 =C2=A0 =C2=A0 =C2=A0test=C2=A0 =C2=A0$0x7,%al
>=C2=A0 =C2=A0 0x5555556a80f8 <Factive_minibuffer_window+88>:=C2= =A0 =C2=A0 =C2=A0 =C2=A0jne=C2=A0 =C2=A0 0x5555556a8153
> <Factive_minibuffer_window+179>
>=C2=A0 =C2=A0 0x5555556a80fa <Factive_minibuffer_window+90>:=C2= =A0 =C2=A0 =C2=A0 =C2=A0nopw=C2=A0 =C2=A00x0(%rax,%rax,1)
> (gdb) p/x $rax
> $4 =3D 0x0
> (gdb) p/x $r10
> $5 =3D 0x7fffeece9c6d
> (gdb) l
> 225=C2=A0 =C2=A0 =C2=A0 =C2=A0Lisp_Object innermost_MB;
> 226
> 227=C2=A0 =C2=A0 =C2=A0 =C2=A0if (!minibuf_level)
> 228=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return Qnil;
> 229
> 230=C2=A0 =C2=A0 =C2=A0 =C2=A0innermost_MB =3D nth_minibuffer (minibuf= _level);
> 231=C2=A0 =C2=A0 =C2=A0 =C2=A0FOR_EACH_FRAME (frames, frame)
> 232=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{
> 233=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0f =3D XFRAME (frame);
> 234=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (FRAME_LIVE_P (f)
> (gdb) p minibuf_level
> $6 =3D 2
> (gdb) p Vminibuffer_list
> $7 =3D (Lisp_Object) 0x555555c9aca3
> (gdb) p $*
> A syntax error in expression, near `'.
> (gdb) p *$
> $8 =3D <incomplete type>
> (gdb)
>
> Let me know if you want something else.

I want this:

=C2=A0 (gdb) pp Vminibuffer_list

If GDB says it doesn't know "pp", you need to source the .gdb= init file
in the Emacs's src directory.

Thanks.


--
Alex Benn=C3=A9e
KVM/QEMU Hacker for Linaro
--000000000000258df005c20d6432--