From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kun Liu Newsgroups: gmane.emacs.bugs Subject: bug#70760: 29.3.50; core dumps when copy in other apps Date: Sat, 4 May 2024 14:37:43 -0700 Message-ID: References: <86wmoagigo.fsf@gnu.org> <86zft5e6yf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002efef20617a7a6db" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4779"; mail-complaints-to="usenet@ciao.gmane.io" To: Eli Zaretskii , 70760@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 04 23:39:06 2024 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 1s3N61-0000z1-E8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 May 2024 23:39:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3N5f-0001Fq-4V; Sat, 04 May 2024 17:38:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s3N5b-0001FW-4L for bug-gnu-emacs@gnu.org; Sat, 04 May 2024 17:38:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3N5a-0000Ez-S9 for bug-gnu-emacs@gnu.org; Sat, 04 May 2024 17:38:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s3N5y-0003We-1w for bug-gnu-emacs@gnu.org; Sat, 04 May 2024 17:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kun Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 May 2024 21:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70760 X-GNU-PR-Package: emacs Original-Received: via spool by 70760-submit@debbugs.gnu.org id=B70760.171485870713546 (code B ref 70760); Sat, 04 May 2024 21:39:02 +0000 Original-Received: (at 70760) by debbugs.gnu.org; 4 May 2024 21:38:27 +0000 Original-Received: from localhost ([127.0.0.1]:55915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3N5P-0003WQ-6V for submit@debbugs.gnu.org; Sat, 04 May 2024 17:38:27 -0400 Original-Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:50484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3N5N-0003WH-IP for 70760@debbugs.gnu.org; Sat, 04 May 2024 17:38:26 -0400 Original-Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2e271acb015so10291631fa.1 for <70760@debbugs.gnu.org>; Sat, 04 May 2024 14:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714858676; x=1715463476; darn=debbugs.gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=QQIdS+TSKIFWytC5OAMxTdIQrofWGdWDudqHE/j5gaw=; b=kNTnsyqkMIz6oNioFmtB4XxhWvBvnMClxcMwmOM+ZtxiVaaacKwhCbtZR23hjp9Dlz zsSLjpovwBKJjlb5LVPuv6HSucduembddYR+4eHFYzqUMat4wkKQGrowBguEJcicgAcK bqeFHi/xnIeo0GcjNhBIOgpTUsVDdg/kTUI83OPpy1s0MEajypukWS2N7oWwjwBwcOCW iKG/xy8KR7CjHZlTK/Ji7KlzAxbtFCUJnq4wy5viF1V5vNeb8wnrZVa691QpabcxYy32 oWE9NzjvTkZ400+Vep8QW0HTb1yyt0e4FcyTxoHIEbzPh20fxbQnnSA+i3rd7jKYuMVF /nBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714858676; x=1715463476; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QQIdS+TSKIFWytC5OAMxTdIQrofWGdWDudqHE/j5gaw=; b=l5BJdFK8KtP7JlMCxdqqioXnJxUn3GwdpUQUYcCwDLoilZf/s95pOYmL63B2V5yD8Z miGPfA6QiLBsggC9FBAsDo09HupUbwdOyyu+SQEg9Y8Zk8desU8GoqQHTBVq37Nt3Q2j dxlZlMa1uBqrVFp8GApMvesRNTeoasCAWTgMnuxI6wyhcW9KIsYXetsVCDnzdxwoZ6OH 0F73QhCMH2Ej+66PHzoFSdL3l5od1MMfweV+shQZ79R5r9W8g9a+ZIulHcYyRxpraBrk xvIGDY/LLZSCRfZ0B5oG7UhAL/ihuVXxPcuIif7AZRZd+W9A/w2Ka2XrLZ1TivvXQLwq 0bGw== X-Forwarded-Encrypted: i=1; AJvYcCW63m3cfun3Z/MiTGdcZn4ki+W9gEk75Piud4aiQr0TYxq89voqzHtJv4L5CGWBUV5UhxnboXLXEkZKRNC846HSPx9P4b4= X-Gm-Message-State: AOJu0YzCELvMzl9wxQckz81KweANNHHK8MOsOIZfdGIby88+VTfcEd8d 6PO+J7gjYL1H9LR/+L7NXkNJKhKEli9p85TVjri4AS4RVp908ViHspdIW+PzdP2zyhJtVrAdBXQ x9nlfQfFxOaEnKKCpqHsO27i/eVQ= X-Google-Smtp-Source: AGHT+IGBq9XOzfGBmNfxGw1+WTLx9++KCZB9Nnt4ak4oOVjww2dGKe2lpJQgapIhCKbnCR+RWNV0Ph2y2Kv1Sz9cuHU= X-Received: by 2002:a2e:981a:0:b0:2dd:409:3b25 with SMTP id a26-20020a2e981a000000b002dd04093b25mr4394008ljj.4.1714858675335; Sat, 04 May 2024 14:37:55 -0700 (PDT) In-Reply-To: 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284468 Archived-At: --0000000000002efef20617a7a6db Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable + 70760@debbugs.gnu.org On Sat, May 4, 2024 at 1:49=E2=80=AFPM Kun Liu wrote: > Thank you, Eli. > > Here is the result. > > (gdb) print data > $1 =3D XIL(0x55f268372323) > (gdb) xtype > Lisp_Cons > (gdb) xcar > $2 =3D 0x11f40 > (gdb) xtype > Lisp_Symbol > (gdb) xsymbol > $3 =3D (struct Lisp_Symbol *) 0x55f2626ad440 > "wrong-type-argument" > > To your question, I wasn't doing anything in Emacs. I was just copying in > Chrome. > > Also I upgraded VirtualBox from 6 to 7. And looks like Emacs is no longer > crashing. Now it reports the following in mini-bufffer: > > funcall-interactively: Wrong type argument: listp, [(2 19 1) ((emacs > (24))) "A modern list library for Emacs" tar ((:commit . > "39d067b9fbb2db65fc7a6938bfb21489ad990cb4") (:authors ("Magnar Sveen" . " > magnars@gmail.com")) (:maintainers ("Magnar Sveen" . "magnars@gmail.com")= ) > (:maintainer "Magnar Sveen" . "magnars@gmail.com") (:keywords > "extensions" "lisp") (:url . "https://github.com/magnars/dash.el"))] > > On Sat, May 4, 2024 at 12:02=E2=80=AFPM Eli Zaretskii wrot= e: > >> > From: Kun Liu >> > Date: Sat, 4 May 2024 11:08:31 -0700 >> > Cc: 70760@debbugs.gnu.org >> > >> > (gdb) xtype data >> > Lisp_Cons >> > (gdb) xcar data >> > $2 =3D 0x11f40 >> > (gdb) xcdr data >> > $3 =3D 0x0 >> > (gdb) xstring data >> > $4 =3D (struct Lisp_String *) 0x0 >> > "DEAD" >> >> This is not how you explore a cons cell in GDB. The correct sequence >> is: >> >> (gdb) print data >> (gdb) xtype >> >> If "xtype" says it's a cons cell, the next command should be "xcar", >> followed by "xtype", to show the type of car. If "xtype" says it's a >> symbol, the next command should be "xsymbol", to show the symbol's >> name. Once you are done with car, continue to cdr, like this: >> >> (gdb) print data >> (gdb) xcdr >> (gdb) xtype >> >> Then again use the appropriate command given what "xtype" says. Etc., >> etc. >> >> Also, do you remember what you did in Emacs when it crashed? Was it >> C-y or something similar? >> > --0000000000002efef20617a7a6db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, May 4, 2024 at 1:49=E2=80=AFPM Kun Liu <kun.liu@gmail.com> wrote:
Thank you, Eli.=

Here is the result.

(gdb) prin= t data
$1 =3D XIL(0x55f268372323)
(gdb) xtype
Lisp_Cons
(gdb) x= car
$2 =3D 0x11f40
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol
$3 = =3D (struct Lisp_Symbol *) 0x55f2626ad440 <lispsym+73536>
"wr= ong-type-argument"

To your question, I wa= sn't doing anything in Emacs. I was just copying in Chrome.
<= br>
Also I upgraded VirtualBox from 6 to 7. And looks like Emacs = is no longer crashing. Now it reports the following in mini-bufffer:
<= div>
funcall-interactively: Wrong type argument: listp, [(2 1= 9 1) ((emacs (24))) "A modern list library for Emacs" tar ((:comm= it . "39d067b9fbb2db65fc7a6938bfb21489ad990cb4") (:authors ("= ;Magnar Sveen" . "magnars@gmail.com")) (:maintainers ("Magnar Sveen&quo= t; . "magnars@g= mail.com")) (:maintainer "Magnar Sveen" . "magnars@gmail.com"= ) (:keywords "extensions" "lisp") (:url . "https://github.co= m/magnars/dash.el"))]

On Sat, May 4, 2024 at 12:02=E2=80=AFPM= Eli Zaretskii <eliz@g= nu.org> wrote:
> From: Kun Liu <kun.liu@gmail.com>
> Date: Sat, 4 May 2024 11:08:31 -0700
> Cc: 70760@d= ebbugs.gnu.org
>
> (gdb) xtype data
> Lisp_Cons
> (gdb) xcar data
> $2 =3D 0x11f40
> (gdb) xcdr data
> $3 =3D 0x0
> (gdb) xstring data
> $4 =3D (struct Lisp_String *) 0x0
> "DEAD"

This is not how you explore a cons cell in GDB.=C2=A0 The correct sequence<= br> is:

=C2=A0 (gdb) print data
=C2=A0 (gdb) xtype

If "xtype" says it's a cons cell, the next command should be = "xcar",
followed by "xtype", to show the type of car.=C2=A0 If "xtyp= e" says it's a
symbol, the next command should be "xsymbol", to show the symbol&= #39;s
name.=C2=A0 Once you are done with car, continue to cdr, like this:

=C2=A0 (gdb) print data
=C2=A0 (gdb) xcdr
=C2=A0 (gdb) xtype

Then again use the appropriate command given what "xtype" says.= =C2=A0 Etc.,
etc.

Also, do you remember what you did in Emacs when it crashed?=C2=A0 Was it C-y or something similar?
--0000000000002efef20617a7a6db--