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#70760: 29.3.50; core dumps when copy in other apps Date: Sat, 04 May 2024 10:11:03 +0300 Message-ID: <86wmoagigo.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7486"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70760@debbugs.gnu.org To: Kun Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 04 09:11:54 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 1s39Yn-0001i6-4Q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 May 2024 09:11:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s39Yc-00014D-1F; Sat, 04 May 2024 03:11:42 -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 1s39YZ-00013E-Ca for bug-gnu-emacs@gnu.org; Sat, 04 May 2024 03:11: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 1s39YZ-0002Yh-0Y for bug-gnu-emacs@gnu.org; Sat, 04 May 2024 03:11:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s39Yv-0006qM-QI for bug-gnu-emacs@gnu.org; Sat, 04 May 2024 03:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 May 2024 07:12:01 +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.171480670126294 (code B ref 70760); Sat, 04 May 2024 07:12:01 +0000 Original-Received: (at 70760) by debbugs.gnu.org; 4 May 2024 07:11:41 +0000 Original-Received: from localhost ([127.0.0.1]:51690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s39Ya-0006q2-SP for submit@debbugs.gnu.org; Sat, 04 May 2024 03:11:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s39YY-0006pw-4H for 70760@debbugs.gnu.org; Sat, 04 May 2024 03:11:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s39Y4-0002Uu-7O; Sat, 04 May 2024 03:11:09 -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=Kf53La/R1M1i4013RPfDucTaUcqUWViRbkFRuUkuSYM=; b=Lg+8LRXbaVRR rVtHWUjy6+SKx0O9tgiQGx9JobIhQit4GxipZx+/z0hU7Rr/JZMH1UWZZ2UPa89w3jQ1lfUwuCCKo y5Nhbne3osJlCwA8LmzffVpivk5R/tCb/90GVPiwdsd39DaJFEaU1lpY6xmfmrrDQab4lOezyd4A/ X8Pq7hSFbcZH6xj9dGAeKvtixHiuQCtAfw2O8hAbPtSq5UZOeDWFxUeuRorqc/ZzZH3CosoJvWs6f 1G2M6f5juMh7HdcrvF+OUKmzYF/6Xp7rBD6ArxbQDa2MOo71939fkFVqbEtYZyM+ylkT6tmTTvow6 yuJnWqQTJSHENdNoRhgkRg==; In-Reply-To: (message from Kun Liu on Fri, 3 May 2024 14:30:37 -0700) 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:284406 Archived-At: > From: Kun Liu > Date: Fri, 3 May 2024 14:30:37 -0700 > > Emacs is running inside VirtualBox on Windows 11. It randomly crashes > when I do a copy from other apps running on the host, e.g., Chrome on > Windows 11. Emacs seems to segfault trying to display an invalid Lisp object. The invalid object seems to come from an error message. IOW, Emacs tried to signal an error, and crashed showing the data of the error. I have no idea how VirtualBox converts Windows clipboard data into X clipboard/selection data -- do you happen to know? The reason of this problem is probably there. However, please provide more details, as the backtrace below doesn't say enough. First, please say "source src/.gdbinit" in GDB, to have special commands in .gdbinit defined, which help in debugging Emacs. Second, please rebuild Emacs with "-O0 -g3", so that debug info is more comprehensive. After that, when Emacs crashes, show the backtrace, which should now include the Lisp backtrace as well (by virtue of src/.gdbinit). And finally, the values of the following variables are of interest: > #11 0x000055b069603f3e in print_error_message (data=, data@entry=0x55b085976613, > stream=stream@entry=0x30, context=, caller=caller@entry=0x7fe0) at lisp.h:1172 > obj = > li = {tortoise = 0x55b0859765f3, max = 2, n = 0, q = 1} > sep = 0x55b0696ad6a0 ", " > errname = 0x11f40 > errmsg = 0x55b06c78e6e4 > file_error = 0x0 > tail = 0x55b0859765e3 In this call-stack frame, what is the value of 'data'? It is a Lisp object, so showing it should involve using the commands xtype, xcar, and xcdr, and probably also xstring (which are defined in .gdbinit). Also, if you know what was the text copied from the other application, please show that text. Thanks.