From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin Date: Thu, 23 Feb 2017 18:19:50 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1487892073 25544 195.159.176.226 (23 Feb 2017 23:21:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2017 23:21:13 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 To: 25854@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 24 00:21:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch2hB-0006Fs-6n for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 00:21:09 +0100 Original-Received: from localhost ([::1]:33430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ch2hH-0002CC-2D for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Feb 2017 18:21:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ch2h8-0002Bu-7d for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 18:21:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ch2h5-0005Hb-2Z for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 18:21:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ch2h4-0005HX-V5 for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 18:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ch2h4-0001GK-NE for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 18:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Feb 2017 23:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25854 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14878920124769 (code B ref -1); Thu, 23 Feb 2017 23:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Feb 2017 23:20:12 +0000 Original-Received: from localhost ([127.0.0.1]:53358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch2gG-0001Eq-7t for submit@debbugs.gnu.org; Thu, 23 Feb 2017 18:20:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch2gE-0001Ed-JS for submit@debbugs.gnu.org; Thu, 23 Feb 2017 18:20:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ch2g7-0004zX-Q6 for submit@debbugs.gnu.org; Thu, 23 Feb 2017 18:20:04 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43580) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ch2g7-0004zT-N2 for submit@debbugs.gnu.org; Thu, 23 Feb 2017 18:20:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ch2g6-00025W-F6 for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 18:20:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ch2g3-0004ys-B4 for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 18:20:02 -0500 Original-Received: from limerock02.mail.cornell.edu ([128.84.13.242]:39455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ch2g3-0004yJ-4o for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 18:19:59 -0500 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id v1NNJqXQ031749 for ; Thu, 23 Feb 2017 18:19:52 -0500 Original-Received: from [192.168.1.10] (mta-68-175-148-36.twcny.rr.com [68.175.148.36] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id v1NNJoGZ023520 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Thu, 23 Feb 2017 18:19:51 -0500 X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:129701 Archived-At: Starting with commit 3a6df2d, tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin. The reason is that inode numbers tend to be very large, on the order of 10^17, at least on my systems. As a result, the "convert inode" code in tramp-convert-file-attributes always falls back to tramp-get-inode. Since this increments by 1 on every call, the file-attribute comparisons in tramp-test19-directory-files-and-attributes always fail. The significance of commit 3a6df2d is that it makes tramp-get-remote-stat return a non-nil value, so that tramp uses 'stat' for file attributes; this returns the true (large) inode number. Prior to that commit, tramp-get-remote-stat would always return nil, so that the tramp-perl-file-attributes script would be used for file attributes. This script uses whatever inode number is returned by Perl's version of 'stat', which is presumably some sort of 32-bit truncation of the true inode number. Although I'm seeing this on 32-bit Cygwin, it seems to me that it could in principle happen on any 32-bit platform. Ken In GNU Emacs 26.0.50 (build 11, i686-pc-cygwin, GTK+ Version 3.18.9) of 2017-02-23 built on desktop-new Repository revision: 16efea3a883ebf633946ee9b9d0681eb55437878 Windowing system distributor 'The Cygwin/X Project', version 11.0.11901000