From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70760: 29.3.50; core dumps when copy in other apps Date: Sat, 18 May 2024 13:54:24 +0200 Message-ID: <87a5knxrm7.fsf@gmx.de> References: <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> <8634qfe453.fsf@gnu.org> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1925"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: kun.liu@gmail.com, 70760@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 18 13:55:15 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 1s8Ieg-0000HK-RH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 May 2024 13:55:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8IeS-0002qr-Uw; Sat, 18 May 2024 07:55:00 -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 1s8IeQ-0002qG-Vk for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 07:54:58 -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 1s8IeQ-00074o-Nu for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 07:54:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8IeU-00057N-34 for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 07:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 May 2024 11:55: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.171603327719656 (code B ref 70760); Sat, 18 May 2024 11:55:02 +0000 Original-Received: (at 70760) by debbugs.gnu.org; 18 May 2024 11:54:37 +0000 Original-Received: from localhost ([127.0.0.1]:33053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8Ie5-00056y-8K for submit@debbugs.gnu.org; Sat, 18 May 2024 07:54:37 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:33585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8Ie3-00056p-Et for 70760@debbugs.gnu.org; Sat, 18 May 2024 07:54:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1716033265; x=1716638065; i=michael.albinus@gmx.de; bh=sDufllqElxk/CQvfSlubFUNO7ORoTL79y1lZpUAsNGw=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=FvLNrGk6CHlO6ALOew/tDg9xXKVq4w9W9PuQDJh/ql56dJlwZt8slAukn+/BTHJc BkSfvZ1ouUpQGFdSO06ldhiiByOEB1i3E08d8/BHe54lwTvN0S2vBXPoAp3XTrHT/ wWA27456/QfDfDCviIrU4Q+JBC0LIIwVk7DqT75LiY7G/XvVRJ5qmUMizVO2p1Lzi m1UHbvpOpvaBaO69O93hBpDuFFnhbnvRhGea0VNHbNSHWYCOXZnz3OOAZ0nKCQCRB RqCTjD0C/jklUlY/mH+4riT21XldD90VvVkJzoz3zx5AYvUCF89QHArjVsZu/G7Wu 2Gi1GrC5FqyKD4AJ3g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.151]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3KTy-1sZD75273S-010PcX; Sat, 18 May 2024 13:54:25 +0200 In-Reply-To: <8634qfe453.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 18 May 2024 14:44:08 +0300") X-Provags-ID: V03:K1:5ke41s3m16Pjg78NXKBZipYnBmBc1H+Z+AWwwBV8ZpNUKzO8C+8 w8aD8XZH/JKWboM59lA1YJ38fiBstkqU5JqEFHTanGxOMvQpnS43Au0Ffv2VKz/hwOhPocM FYehjQCLToyQyopC8exJdOdzvu8/nSGaReE4f2D5++ewTVTBZnO0wsLv1UXxfaW+yjSqgx/ raMFoW1/pj1vv/41JY1YA== UI-OutboundReport: notjunk:1;M01:P0:DKv7+l1keps=;WHMfyu9zKfPOtPRe8wVMXyN344v BAn4k02fk3GNT2aYa2344hTBXajTAU1w6y+heVubz+OgeBGcC7NWFcCPFS0pi2yzD7UBS8jmD 8nUfGLYa6IhDXQouy0cnidq1KDP4c9MzytnhvCwSQRizgR+xQL0nR7L+eBim0+iT2jjvFjm9W g/U+yefijGNZfK01muhpQ9IYOXZrob8cEjHZXbKXsMQEV+WxuFA8E5ThXBiYHAG47fMsZJUUL 9/AcHjuq1L480H+MHwfXFRi9OAwFebJk+P3SnxmQn2IVG/TW5U8XM5eoQpQPiJlkqgnxY/ZNL AH/AtO/fM+tLwkgThxpgTc3X2pLXhgneEWX8D9Wp1sNWtfdmSWeIYJE5jySNLyRo1s1dlP460 54bEaTFt/q2EA6OSEb2SiamC3WalK61h5/0NtdPjJhYKWaesWjpKwaXhOZtlfENy7csqFSaN4 byp7lfXdwbqgZtu6bmnmuIEVGPTmsjxUHqItVcRDo7rR1EkVvqqbwoYe4wIE8HtndMj8aZqNN r7VUFd9I1X50+aJjR1n44Kvc+Zz826FXxE93ZHZydqZg7UAQ0+U7JIVfpKLNX0OQhvgwhC7PU hzN/+rDIoP81Wvw7/DVTmrbv5vKNH6EtFBONnvLTB3J0beeJG2Rws9s4BRB5fPFt8ucJeJVU8 tztSQjX/FSyQbGzC6c0wCV1eWD2tkSovAQJy0FoA9E5Uo9lGsf2dwNfo6CiJ9DcbJ0eOIhZ6u vHt/NagdDmevFQGHyr6TpVuZVaY88HExCNXA3t+8lMPFS5EgX6N9TH+STsDY2Qt1YiUK+bHH 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:285327 Archived-At: Eli Zaretskii writes: Hi Eli, >> 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? No. I'm saying that dbusbind.c uses add_write_fd and add_read_fd, which are defined in process.c. I don't believe that file descriptors of other subprocesses will provide data for dbusbind.c. The registered file descriptors for D-Bus use the callback xd_read_queued_messages, and only this callback reads the data from the file descriptors, and generates D-Bus events. This looks stable to me, and this architecture exists for many years. Best regards, Michael.