From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21313: 25.0.50; Strange errors from dbus-handle-event Date: Fri, 11 Sep 2015 16:59:33 +0300 Message-ID: <83wpvx2h16.fsf@gnu.org> References: <877foo4nkd.fsf@gnu.org> <87wpvzs4r3.fsf@gnu.org> <87bnd9cf7g.fsf@gnu.org> <831te53zbq.fsf@gnu.org> <871te5cdg7.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1441980123 31897 80.91.229.3 (11 Sep 2015 14:02:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Sep 2015 14:02:03 +0000 (UTC) Cc: 21313@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 11 16:01:51 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZaOtc-0004EH-2U for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Sep 2015 16:01:44 +0200 Original-Received: from localhost ([::1]:56510 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaOtb-0001Qv-Io for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Sep 2015 10:01:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaOs8-0007SC-OL for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 10:00:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaOs3-0000zq-O5 for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 10:00:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaOs3-0000yq-Dd for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 10:00:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZaOs2-0000GC-Q7 for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 10:00:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Sep 2015 14:00:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21313 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21313-submit@debbugs.gnu.org id=B21313.1441979984940 (code B ref 21313); Fri, 11 Sep 2015 14:00:06 +0000 Original-Received: (at 21313) by debbugs.gnu.org; 11 Sep 2015 13:59:44 +0000 Original-Received: from localhost ([127.0.0.1]:56987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaOrf-0000F5-QO for submit@debbugs.gnu.org; Fri, 11 Sep 2015 09:59:44 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:36793) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaOrd-0000Ew-BF for 21313@debbugs.gnu.org; Fri, 11 Sep 2015 09:59:42 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NUI00700MC3KW00@mtaout28.012.net.il> for 21313@debbugs.gnu.org; Fri, 11 Sep 2015 16:59:25 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUI00PW1MV15190@mtaout28.012.net.il>; Fri, 11 Sep 2015 16:59:25 +0300 (IDT) In-reply-to: <871te5cdg7.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106422 Archived-At: > From: Tassilo Horn > Cc: 21313@debbugs.gnu.org > Date: Fri, 11 Sep 2015 15:06:48 +0200 > > > So I suggest to read the description of the root cause posted by > > Robert Pluim in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21337#31, > > and then look for something very similar, but involving other sources > > of input events, perhaps D-Bus. The symptoms you describe exactly > > match what he explained there. > > The problem is that I have almost no idea what that code does and how it > is intended to work, so I can't really debug it in a sensible way. You mean, wait_reading_process_output? Please feel free to ask questions about the things you don't understand. In a nutshell, it waits until one of the input sources has some input, and then we read from that source using whatever method is appropriate for interpreting that source. > If you have some ideas where things could go wrong, I'm happy to do > whatever may help. I think things go wrong exactly like in that other bug: we have some source ready to be read from, but dispatch those events to a "handler" for another source. > Maybe adding some debugging code or conditional breakpoints could > narrow down the scope a bit? I'd start by looking at the indicators returned by 'pselect'. > BTW, the last errors came from `file-notify-handle-event' but I'm > reasonably sure that in this emacs session I only had used Gnus so far. > I don't use auto-revert-mode, so actually filenotify.el should not even > have been loaded so far and no watches should have existed. My current > emacs session is the same: only Gnus => (featurep 'filenotify) ;=> nil. > Does that give any clue? My theory is that we think there's an inotify event waiting to be read, where in fact the event is of another kind, perhaps from D-Bus. The flags returned by 'pselect' should tell you.