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, 18 May 2024 14:44:08 +0300 Message-ID: <8634qfe453.fsf@gnu.org> References: <86wmoagigo.fsf@gnu.org> <86zft5e6yf.fsf@gnu.org> <86wmo8etca.fsf@gnu.org> <86r0egck5b.fsf@gnu.org> <87cyq0tb5w.fsf@gmx.de> <86le4cx3w2.fsf@gnu.org> <87le4be520.fsf@gmx.de> <87a5krdkq2.fsf@gmx.de> <87seyicduz.fsf@gmx.de> <8734qgz9t9.fsf@gmx.de> <86pltkfilr.fsf@gnu.org> <87ttivxveq.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36378"; mail-complaints-to="usenet@ciao.gmane.io" Cc: kun.liu@gmail.com, 70760@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 18 13:45:16 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 1s8IUy-0009BI-Pe for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 May 2024 13:45:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8IUn-0007nd-00; Sat, 18 May 2024 07:45:01 -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 1s8IUl-0007mt-Fm for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 07:44:59 -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 1s8IUl-00055s-5v for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 07:44:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8IUo-00051i-Hd for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 07:45: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: Sat, 18 May 2024 11:45: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.171603266319269 (code B ref 70760); Sat, 18 May 2024 11:45:02 +0000 Original-Received: (at 70760) by debbugs.gnu.org; 18 May 2024 11:44:23 +0000 Original-Received: from localhost ([127.0.0.1]:33006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8IUA-00050j-MZ for submit@debbugs.gnu.org; Sat, 18 May 2024 07:44:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8IU8-00050X-Ua for 70760@debbugs.gnu.org; Sat, 18 May 2024 07:44:21 -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 1s8IU0-0004w4-0S; Sat, 18 May 2024 07:44:12 -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=RPvyy2sldYCbO8pJpW+ehryopak/ccFRUHlYAJdTeUA=; b=pVIJ4Hj4Mkg+ zhWpvl+p2SFWXJ9eH9JH+5pGgZEfpL8+jE41mCrlhy5QCouSGGsYKsqoV48IJBTM8FvzZVqkQ8pja tpBzzzvPB2oAX1U/ooAp5WyiWJc/3jX6gd4sybzqGZJZNDVdrzjPY+yIqLn/VskU0CwIaLwA5vyQz TsYqsv+b0Jc415w5cYzMwl7gRr7j0EbWADtEsFT/zlbUEnPA4RZar5del2TIUw90hYMmxGhT+Ef1i /SpR3uVsmT4h7yWfxnsEqrNjb02tiP0LFUUlmhnWEaJ97LGiKeWxMENk01CgzOEku0ffjavYpSlEf R/FCM6h1kvfGWuucwZ5+Mg==; In-Reply-To: <87ttivxveq.fsf@gmx.de> (message from Michael Albinus on Sat, 18 May 2024 12:32:29 +0200) 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:285325 Archived-At: > From: Michael Albinus > Cc: kun.liu@gmail.com, 70760@debbugs.gnu.org > Date: Sat, 18 May 2024 12:32:29 +0200 > > Eli Zaretskii writes: > > Hi Eli, > > >> But what if an event is added to the input event queue, which has an > >> arbitrary format? Or an existing event has been modified? It could look > >> like a D-Bus event (the car of the event is `dbus-event'), but the rest > >> of the list is random. It must not come via the dbusevent.c mechanism > >> I've explained above, anybody can push such an event onto then input > >> event queue. But I have no idea how to debug this. > > > > Which file descriptors do we listen to, apart of sub-processes and > > inotify? > > See xd_add_watch. xd_find_watch_fd returns the file descriptor > reponsible for a given D-Bus connection (this is a bus like the system > bus, the session bus, or a private bus). This file descriptor is added > to Emacs via add_write_fd and add_read_fd, using the callback > xd_read_queued_messages. So it might look like a subprocess ... You are saying that output of some subprocess could be interpreted as D-Bus event? How do we know which inputs to try to interpret as D-Bus events? IOW, can you hypothesize how could we take some non-D-Bus input and end up interpreting it as D-Bus?