all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin
@ 2017-02-23 23:19 Ken Brown
  2017-02-24  7:55 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Ken Brown @ 2017-02-23 23:19 UTC (permalink / raw)
  To: 25854

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





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin
  2017-02-23 23:19 bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin Ken Brown
@ 2017-02-24  7:55 ` Eli Zaretskii
  2017-02-24  7:59   ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2017-02-24  7:55 UTC (permalink / raw)
  To: Ken Brown; +Cc: 25854

> From: Ken Brown <kbrown@cornell.edu>
> Date: Thu, 23 Feb 2017 18:19:50 -0500
> 
> 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.

Would it work to convert the large inode values to a float?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin
  2017-02-24  7:55 ` Eli Zaretskii
@ 2017-02-24  7:59   ` Eli Zaretskii
  2017-02-24 14:04     ` Michael Albinus
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2017-02-24  7:59 UTC (permalink / raw)
  To: kbrown, Michael Albinus; +Cc: 25854

> Date: Fri, 24 Feb 2017 09:55:33 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 25854@debbugs.gnu.org
> 
> Would it work to convert the large inode values to a float?

Sorry, this would be sub-optimal.  Instead, how about using the same
format as file-attributes uses for large inode numbers?  Michael?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin
  2017-02-24  7:59   ` Eli Zaretskii
@ 2017-02-24 14:04     ` Michael Albinus
  2017-02-24 14:49       ` Ken Brown
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Albinus @ 2017-02-24 14:04 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 25854

Eli Zaretskii <eliz@gnu.org> writes:

> Sorry, this would be sub-optimal.  Instead, how about using the same
> format as file-attributes uses for large inode numbers?  Michael?

Tramp does something like this already, in
`tramp-do-file-attributes-with-ls'.

Ken, could you pls set `tramp-verbose' to 6, and rerun the test? With
the debug buffer as example, I will try to implement something similar
for your case.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin
  2017-02-24 14:04     ` Michael Albinus
@ 2017-02-24 14:49       ` Ken Brown
  2017-02-24 15:45         ` Ken Brown
  0 siblings, 1 reply; 9+ messages in thread
From: Ken Brown @ 2017-02-24 14:49 UTC (permalink / raw)
  To: Michael Albinus, Eli Zaretskii; +Cc: 25854

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

On 2/24/2017 9:04 AM, Michael Albinus wrote:
> Ken, could you pls set `tramp-verbose' to 6, and rerun the test? With
> the debug buffer as example, I will try to implement something similar
> for your case.

Message log attached.

Ken


[-- Attachment #2: test19.debug.xz --]
[-- Type: application/octet-stream, Size: 6148 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin
  2017-02-24 14:49       ` Ken Brown
@ 2017-02-24 15:45         ` Ken Brown
  2017-02-24 16:02           ` Michael Albinus
  2017-02-25 14:05           ` Michael Albinus
  0 siblings, 2 replies; 9+ messages in thread
From: Ken Brown @ 2017-02-24 15:45 UTC (permalink / raw)
  To: Michael Albinus, Eli Zaretskii; +Cc: 25854

[-- Attachment #1: Type: text/plain, Size: 366 bytes --]

On 2/24/2017 9:49 AM, Ken Brown wrote:
> On 2/24/2017 9:04 AM, Michael Albinus wrote:
>> Ken, could you pls set `tramp-verbose' to 6, and rerun the test? With
>> the debug buffer as example, I will try to implement something similar
>> for your case.
>
> Message log attached.

Sorry, I sent the ert messages rather than the debug buffer.  Here's the 
latter.

Ken


[-- Attachment #2: test19.debug_buffer.xz --]
[-- Type: application/octet-stream, Size: 6188 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin
  2017-02-24 15:45         ` Ken Brown
@ 2017-02-24 16:02           ` Michael Albinus
  2017-02-25 14:05           ` Michael Albinus
  1 sibling, 0 replies; 9+ messages in thread
From: Michael Albinus @ 2017-02-24 16:02 UTC (permalink / raw)
  To: Ken Brown; +Cc: 25854

Ken Brown <kbrown@cornell.edu> writes:

Hi Ken,

>> Message log attached.
>
> Sorry, I sent the ert messages rather than the debug buffer.  Here's
> the latter.

Thanks for both. I have sufficient data now; I'll look into this over
the weekend.

> Ken

Best regards, Michael.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin
  2017-02-24 15:45         ` Ken Brown
  2017-02-24 16:02           ` Michael Albinus
@ 2017-02-25 14:05           ` Michael Albinus
  2017-02-25 15:19             ` Ken Brown
  1 sibling, 1 reply; 9+ messages in thread
From: Michael Albinus @ 2017-02-25 14:05 UTC (permalink / raw)
  To: Ken Brown; +Cc: 25854

Ken Brown <kbrown@cornell.edu> writes:

Hi Ken,

>>> Ken, could you pls set `tramp-verbose' to 6, and rerun the test? With
>>> the debug buffer as example, I will try to implement something similar
>>> for your case.
>>
>> Message log attached.
>
> Sorry, I sent the ert messages rather than the debug buffer.  Here's
> the latter.

I've pushed a patch to master, which should fix this. Could you, pls, check?

> Ken

Best regards, Michael.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin
  2017-02-25 14:05           ` Michael Albinus
@ 2017-02-25 15:19             ` Ken Brown
  0 siblings, 0 replies; 9+ messages in thread
From: Ken Brown @ 2017-02-25 15:19 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 25854-done

On 2/25/2017 9:05 AM, Michael Albinus wrote:
> I've pushed a patch to master, which should fix this. Could you, pls, check?

That fixes it.  Thanks.

I'm closing the bug.

Ken






^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-02-25 15:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-23 23:19 bug#25854: 26.0.50; tramp-test19-directory-files-and-attributes fails on 32-bit Cygwin Ken Brown
2017-02-24  7:55 ` Eli Zaretskii
2017-02-24  7:59   ` Eli Zaretskii
2017-02-24 14:04     ` Michael Albinus
2017-02-24 14:49       ` Ken Brown
2017-02-24 15:45         ` Ken Brown
2017-02-24 16:02           ` Michael Albinus
2017-02-25 14:05           ` Michael Albinus
2017-02-25 15:19             ` Ken Brown

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.