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 15:09:41 +0300 Message-ID: <86wmnrcoe2.fsf@gnu.org> 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> <87a5knxrm7.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1712"; 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 14:11:24 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 1s8IuK-0000Ba-Cx for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 May 2024 14:11:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8Itx-0007lU-S5; Sat, 18 May 2024 08:11: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 1s8Itv-0007lB-OI for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 08:11:00 -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 1s8Itv-0001kM-5N for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 08:10:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8Ity-0005VS-8Y for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 08:11: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 12:11: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.171603420321142 (code B ref 70760); Sat, 18 May 2024 12:11:02 +0000 Original-Received: (at 70760) by debbugs.gnu.org; 18 May 2024 12:10:03 +0000 Original-Received: from localhost ([127.0.0.1]:33129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8It0-0005Uw-Ub for submit@debbugs.gnu.org; Sat, 18 May 2024 08:10:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8Isy-0005UH-VC for 70760@debbugs.gnu.org; Sat, 18 May 2024 08:10:02 -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 1s8Iso-0001Z2-En; Sat, 18 May 2024 08:09:51 -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=6LiP9nygFITPDQOZZRhM+xydZ4kaY3j57o6DMuytd1g=; b=ZmZmG9dJ5J9K jrlhotxWtM9+aCr2dPyyBXUpKvqMVbjTjR+BlAU1IL8azdGPLKBbVpsUeZznBZ+pJHQgeD1c+1GuG 5brTrbbguoaOrYraVsQytrL7PCDDIVdvo5+tl9VWKEl0C1MVIS401LB08Uy4sPCoQxeTESQZeYyKc 4Nne+gkP8ZKQQSso35jxdx5dgJVnqoyDjPixGoMKyG8QG99/Eg5Zt5d52H8QzsimO5IDmkAREOqbu c3AKzBHNpByacbnpvxhcLOPdjTquPJceYs9r2nxL54CeoK7amcvvFQ3SjjbtXJSp7W/PXmR89pntw 2X7X+o08GWvRm7nFqM9d3Q==; In-Reply-To: <87a5knxrm7.fsf@gmx.de> (message from Michael Albinus on Sat, 18 May 2024 13:54:24 +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:285330 Archived-At: > From: Michael Albinus > Cc: kun.liu@gmail.com, 70760@debbugs.gnu.org > Date: Sat, 18 May 2024 13:54:24 +0200 > > Eli Zaretskii writes: > > > 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. OK. So how could a non-D-Bus event end up being interpreted as a D-Bus event? Can we arrange for some breakpoints or watchpoints to try to catch these inputs on their way to being interpreted as D-Bus events, so that we could try figuring out where did those inputs come from? The only hint we have until now is that this happens when copying stuff from other applications. Does that ring any bells or suggest any ideas?