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: Tue, 14 May 2024 10:13:17 +0300 Message-ID: <86le4cx3w2.fsf@gnu.org> References: <86wmoagigo.fsf@gnu.org> <86zft5e6yf.fsf@gnu.org> <86wmo8etca.fsf@gnu.org> <86r0egck5b.fsf@gnu.org> <87cyq0tb5w.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40279"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael.albinus@gmx.de, 70760@debbugs.gnu.org To: Kun Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 14 09:14:34 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 1s6mMr-000AGq-Iq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 May 2024 09:14:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6mMR-0008Ti-6B; Tue, 14 May 2024 03:14:07 -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 1s6mML-0008Sz-Io for bug-gnu-emacs@gnu.org; Tue, 14 May 2024 03:14:01 -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 1s6mML-0004jm-A6 for bug-gnu-emacs@gnu.org; Tue, 14 May 2024 03:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s6mMM-0003iQ-1s for bug-gnu-emacs@gnu.org; Tue, 14 May 2024 03:14: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: Tue, 14 May 2024 07:14: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.171567081314265 (code B ref 70760); Tue, 14 May 2024 07:14:02 +0000 Original-Received: (at 70760) by debbugs.gnu.org; 14 May 2024 07:13:33 +0000 Original-Received: from localhost ([127.0.0.1]:37585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6mLt-0003i1-0C for submit@debbugs.gnu.org; Tue, 14 May 2024 03:13:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6mLo-0003ht-2b for 70760@debbugs.gnu.org; Tue, 14 May 2024 03:13:31 -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 1s6mLg-0004gO-6N; Tue, 14 May 2024 03:13:20 -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=xAXsNuTiaypr7IyqDDMFMxwhzbf6HzJ/+eJB1pEoBXw=; b=UPhz4yY98sWF sOy8nLzK2YtE5tijhMGZl4YpcKtWWC0VduUYFzoKnOudNT3cDYSmRJ4TjR8HNqiddN1Icqo7pRjsx H9BXmoj0skhXh3repdlZJfNhH1fHh9y5PQJuHX3YKtRiggOQOx+Jl2QMmPlO+pBiTRaK5iVK/PD0g sFPccdD2HdXpHdElQ+yoFPkD6w/+LAUpjUwUPrUK9E2k9VFMYKeamnM3FL/q+2Yl8D20SrmqCVkXm cSMAVrtm6qNF4bciGnnMEcYDQQJ8P8TPFSRS10PDDUGArDJEBBj3wKZM0IhQ51gwulAoL4+DAvItu bVkzQdtvwoodwBY2wh4n/w==; In-Reply-To: (message from Kun Liu on Mon, 13 May 2024 23:17:16 -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:285000 Archived-At: > From: Kun Liu > Date: Mon, 13 May 2024 23:17:16 -0700 > Cc: Eli Zaretskii , 70760@debbugs.gnu.org > > I tried various things including upgrading the guest Linux to Debian 12, and trying master vs 29 branches. Still > seeing crashes. > > Today I tried configure emacs 29 without "--with-native-compilation". It appears that core dump is no longer > happening. Now when I copy on the host, I see the following message in Emacs: > > dbus-check-event: D-Bus error: "Not a valid D-Bus event", (dbus-event 10 14) > > Backtrace buffer shows the following: > > Debugger entered--Lisp error: (dbus-error "Not a valid D-Bus event" (dbus-event 10 14)) > signal(dbus-error ("Not a valid D-Bus event" (dbus-event 10 14))) > dbus-check-event((dbus-event 10 14)) > dbus-event-bus-name((dbus-event 10 14)) > dbus-notice-synchronous-call-errors((dbus-event 10 14) (dbus-error "Not a valid D-Bus event" (dbus-event 10 > 14))) > run-hook-with-args(dbus-notice-synchronous-call-errors (dbus-event 10 14) (dbus-error "Not a valid D-Bus > event" (dbus-event 10 14))) > dbus-handle-event((dbus-event 10 14)) > funcall-interactively(dbus-handle-event (dbus-event 10 14)) > call-interactively(dbus-handle-event nil [(dbus-event 10 14)]) > command-execute(dbus-handle-event nil [(dbus-event 10 14)] t) We have already established that some invalid D-Bus events cause these problems. What we need now is to find out what kind of D-Bus events are those, and what does VirtualBox mean to happen when it emits these D-Bus events? Looking at dbus-check-event, I see that event of the form (dbus-event 10 14) is invalid because the first member of the list after 'dbus-event' should be either a keyword (a symbol, AFAIU) or a string, but here we have a number. The event (dbus-event "[ \11]*$") from your previous message is also invalid, since it has only one member after 'dbus-event'. IOW, VirtualBox is emitting invalid D-Bus events, at least as far as our support for D-Bus is concerned. Michael, are these events invalid according to the D-Bus spec, or we just lack support for them in Emacs? If the former, I don't see how this can be an Emacs problem; you should ask the VirtualBox folks what to do to avoid this. Maybe we can make Emacs more tolerant to these issues, e.g., make the error a warning or a message? Reading the VirtualBox documentation I find on the net, I see that this page: https://www.virtualbox.org/manual/ch04.html#guestadd-dnd says you need to install "the latest version of the Guest Additions". Since copy/paste is a variant of drag-and-drop, perhaps this is relevant for your case as well, I don't know. See also https://www.virtualbox.org/manual/ch04.html#guestadd-dnd-limitations The following pages might also be relevant: https://www.virtualbox.org/manual/ch12.html#ts_linux-guest-x11-services https://www.virtualbox.org/manual/ch12.html#ts_win-dnd-uipi All in all, I feel like this is not an Emacs issue at all, and should not be brought to us.