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#21435: 25.0.50; file-notify has problems after renames Date: Wed, 09 Sep 2015 05:39:34 +0300 Message-ID: <83zj0w5na1.fsf@gnu.org> References: <87y4gh47sr.fsf@gnu.org> <83k2s07vaf.fsf@gnu.org> <87wpw0g2ar.fsf@gnu.org> <831te87m7p.fsf@gnu.org> <87oahcg0bd.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1441766434 11759 80.91.229.3 (9 Sep 2015 02:40:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Sep 2015 02:40:34 +0000 (UTC) Cc: 21435@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 09 04:40:21 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 1ZZVIz-0001nt-MX for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Sep 2015 04:40:13 +0200 Original-Received: from localhost ([::1]:38979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZVJ0-0001Rz-Gb for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Sep 2015 22:40:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZVIt-0001QW-Co for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 22:40:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZVIp-0001ka-DG for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 22:40:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZVIp-0001k1-B6 for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 22:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZZVIo-0003Jl-NN for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 22:40: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: Wed, 09 Sep 2015 02:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21435-submit@debbugs.gnu.org id=B21435.144176636612707 (code B ref 21435); Wed, 09 Sep 2015 02:40:02 +0000 Original-Received: (at 21435) by debbugs.gnu.org; 9 Sep 2015 02:39:26 +0000 Original-Received: from localhost ([127.0.0.1]:53150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZVID-0003It-Fw for submit@debbugs.gnu.org; Tue, 08 Sep 2015 22:39:25 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:53962) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZVIA-0003Ih-2b for 21435@debbugs.gnu.org; Tue, 08 Sep 2015 22:39:23 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NUE00L001QH8200@a-mtaout21.012.net.il> for 21435@debbugs.gnu.org; Wed, 09 Sep 2015 05:39:20 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUE00LTH21J7A10@a-mtaout21.012.net.il>; Wed, 09 Sep 2015 05:39:20 +0300 (IDT) In-reply-to: <87oahcg0bd.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:106281 Archived-At: > From: Tassilo Horn > Cc: 21435@debbugs.gnu.org > Date: Tue, 08 Sep 2015 21:47:50 +0200 > > Eli Zaretskii writes: > > >> I stepped through inotify_callback in inotify.c which can read 64 > >> byte from inotifyfd where the size of one inotify event is 32 and > >> that produces 2 emacs events (although I cannot see which events are > >> created). The Locals GUD frame always shows just nil for the `event' > >> local variable even after the assignments to it and I stepped into > >> the then-branch of an `if (!NILP(event.arg))' which makes it pretty > >> clear that it cannot be nil. Why is that? > > > > Could be some gud bug. Do you see the same when you invoke GDB from > > the shell? > > Oh, my GDB foo on the command line ends with making backtraces. ;-) > > But just typing in "info locals" in the *gud-bootstrap-emacs* buffer is > about the same, no? And that shows > > event = {kind = FILE_NOTIFY_EVENT, part = scroll_bar_nowhere, code = 0, modifiers = 0, x = 0, y = 0, timestamp = 0, frame_or_window = 0, arg = 0} > > whereas the relevant line in the locals GUD window is just > > struct input_event event nil > > So that looks like a bug. I guess I should report this, or will you fix > this right now? Please report it, with a test case. A C struct can never be nil, so this is a clear bug.