* Unreliability in process output
@ 2005-06-07 12:25 Richard Stallman
2005-06-07 12:51 ` Nick Roberts
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Richard Stallman @ 2005-06-07 12:25 UTC (permalink / raw)
After emacs -Q, visiting src/window.c and then doing C-x v l gives
unreliable results. Large chunks of the buffer are missing. Which
parts are missing varies each time, but the first missing chunk seems
to start on a 4096-character boundary.
The problem still happens if process-adaptive-read-buffering is nil
and coding-system-for-read is no-conversion. I've determined that the
variable carryover in read_process_output is always zero in that mode.
When I tried this with a breakpoint at read_process_output, and paused
for some time in that breakpoint, the text obtained consisted of the
first chunk plus a little more; nearly all was lost.
Stepping through read_process_output showed that the only calls
to emacs_read were from read_process_output, and that the text they
read was the text that appeared in the buffer. Somehow the rest
of the text is disappearing.
Similar problems happen with an executable I compiled almost 3 years
ago. It is not a newly introduced problem.
Can anyone else observe this problem? Can anyone make more headway
debugging this?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Unreliability in process output
2005-06-07 12:25 Unreliability in process output Richard Stallman
@ 2005-06-07 12:51 ` Nick Roberts
2005-06-07 12:57 ` Kim F. Storm
2005-06-07 13:14 ` Andreas Schwab
2 siblings, 0 replies; 10+ messages in thread
From: Nick Roberts @ 2005-06-07 12:51 UTC (permalink / raw)
Cc: emacs-devel
> After emacs -Q, visiting src/window.c and then doing C-x v l gives
> unreliable results. Large chunks of the buffer are missing. Which
> parts are missing varies each time, but the first missing chunk seems
> to start on a 4096-character boundary.
Isn't this the problem with ssh referred to in INSTALL.CVS? It was discussed
on emacs-devel last October with the subject vc-version-other-window.
Nick
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Unreliability in process output
2005-06-07 12:25 Unreliability in process output Richard Stallman
2005-06-07 12:51 ` Nick Roberts
@ 2005-06-07 12:57 ` Kim F. Storm
2005-06-08 12:02 ` Richard Stallman
2005-06-08 14:23 ` Robert J. Chassell
2005-06-07 13:14 ` Andreas Schwab
2 siblings, 2 replies; 10+ messages in thread
From: Kim F. Storm @ 2005-06-07 12:57 UTC (permalink / raw)
Cc: emacs-devel
Richard Stallman <rms@gnu.org> writes:
> After emacs -Q, visiting src/window.c and then doing C-x v l gives
> unreliable results. Large chunks of the buffer are missing.
> Can anyone else observe this problem? Can anyone make more headway
> debugging this?
It's an old problem with CVS over SSH -- it has been discussed
before on the mailing list.
Here is what INSTALL.CVS has to say about the topic:
Note on using SSH to access the CVS repository from inside Emacs
----------------------------------------------------------------
Write access to the CVS repository requires using SSH v2.
If you execute cvs commands inside Emacs, specifically if you use
pcl-cvs, output from CVS may be lost due to a problem in the
interface between ssh, cvs, and libc. Corrupted checkins have
also been rumored to have happened.
To fix the problem, save the following script into a file, make it
executable, and set CVS_RSH to the file name of the script:
#!/bin/bash
exec 2> >(exec cat >&2 2>/dev/null)
exec ssh "$@"
This may be combined with the following entry in ~/.ssh/config to
simplify accessing the CVS repository:
Host subversions.gnu.org
Protocol 2
ForwardX11 no
User YOUR_USERID
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Unreliability in process output
2005-06-07 12:25 Unreliability in process output Richard Stallman
2005-06-07 12:51 ` Nick Roberts
2005-06-07 12:57 ` Kim F. Storm
@ 2005-06-07 13:14 ` Andreas Schwab
2005-06-08 10:18 ` public
2005-06-08 12:02 ` Richard Stallman
2 siblings, 2 replies; 10+ messages in thread
From: Andreas Schwab @ 2005-06-07 13:14 UTC (permalink / raw)
Cc: emacs-devel
Richard Stallman <rms@gnu.org> writes:
> After emacs -Q, visiting src/window.c and then doing C-x v l gives
> unreliable results. Large chunks of the buffer are missing. Which
> parts are missing varies each time, but the first missing chunk seems
> to start on a 4096-character boundary.
Do you happen to run Linux 2.6.10? That might be the same issue that
Stefan observed recently (see topic "File botched up using Tramp"
<http://lists.gnu.org/archive/html/emacs-devel/2005-05/msg01468.html>).
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Unreliability in process output
2005-06-07 13:14 ` Andreas Schwab
@ 2005-06-08 10:18 ` public
2005-06-08 11:34 ` Andreas Schwab
2005-06-08 12:02 ` Richard Stallman
1 sibling, 1 reply; 10+ messages in thread
From: public @ 2005-06-08 10:18 UTC (permalink / raw)
Andreas Schwab <schwab@suse.de> writes:
> Do you happen to run Linux 2.6.10? That might be the same issue that
> Stefan observed recently (see topic "File botched up using Tramp"
> <http://lists.gnu.org/archive/html/emacs-devel/2005-05/msg01468.html>).
Just to add another data point: I have observed file corruption when
using tramp to edit files on a remote machine which happens to be
running a 2.6.10 kernel, even when the local machine on which Emacs is
running has an unaffected kernel version.
Peter
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Unreliability in process output
2005-06-08 10:18 ` public
@ 2005-06-08 11:34 ` Andreas Schwab
0 siblings, 0 replies; 10+ messages in thread
From: Andreas Schwab @ 2005-06-08 11:34 UTC (permalink / raw)
Cc: emacs-devel
public@heslin.eclipse.co.uk writes:
> Andreas Schwab <schwab@suse.de> writes:
>> Do you happen to run Linux 2.6.10? That might be the same issue that
>> Stefan observed recently (see topic "File botched up using Tramp"
>> <http://lists.gnu.org/archive/html/emacs-devel/2005-05/msg01468.html>).
>
> Just to add another data point: I have observed file corruption when
> using tramp to edit files on a remote machine which happens to be
> running a 2.6.10 kernel, even when the local machine on which Emacs is
> running has an unaffected kernel version.
Yes, the bug only manifests at the remote side, because this where the PTY
communication happens that triggers the bug.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Unreliability in process output
2005-06-07 13:14 ` Andreas Schwab
2005-06-08 10:18 ` public
@ 2005-06-08 12:02 ` Richard Stallman
1 sibling, 0 replies; 10+ messages in thread
From: Richard Stallman @ 2005-06-08 12:02 UTC (permalink / raw)
Cc: emacs-devel
Do you happen to run Linux 2.6.10? That might be the same issue that
Stefan observed recently (see topic "File botched up using Tramp"
<http://lists.gnu.org/archive/html/emacs-devel/2005-05/msg01468.html>).
It is version 2.4.23.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Unreliability in process output
2005-06-07 12:57 ` Kim F. Storm
@ 2005-06-08 12:02 ` Richard Stallman
2005-06-08 12:45 ` Andreas Schwab
2005-06-08 14:23 ` Robert J. Chassell
1 sibling, 1 reply; 10+ messages in thread
From: Richard Stallman @ 2005-06-08 12:02 UTC (permalink / raw)
Cc: emacs-devel
It's an old problem with CVS over SSH -- it has been discussed
before on the mailing list.
Thanks. I will try this solution.
However, we simply must correct the problem. Could you tell me the
dates of that discussion so I can find the relevant mail? I want to
see if I can persuade someone to make a change that will solve the
problem.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Unreliability in process output
2005-06-08 12:02 ` Richard Stallman
@ 2005-06-08 12:45 ` Andreas Schwab
0 siblings, 0 replies; 10+ messages in thread
From: Andreas Schwab @ 2005-06-08 12:45 UTC (permalink / raw)
Cc: emacs-devel, Kim F. Storm
Richard Stallman <rms@gnu.org> writes:
> It's an old problem with CVS over SSH -- it has been discussed
> before on the mailing list.
>
> Thanks. I will try this solution.
>
> However, we simply must correct the problem. Could you tell me the
> dates of that discussion so I can find the relevant mail? I want to
> see if I can persuade someone to make a change that will solve the
> problem.
See <http://lists.gnu.org/archive/html/bug-cvs/2002-07/msg00423.html> for
a good explanation.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Unreliability in process output
2005-06-07 12:57 ` Kim F. Storm
2005-06-08 12:02 ` Richard Stallman
@ 2005-06-08 14:23 ` Robert J. Chassell
1 sibling, 0 replies; 10+ messages in thread
From: Robert J. Chassell @ 2005-06-08 14:23 UTC (permalink / raw)
Today's GNU Emacs CVS snapshot, Wed, 2005 Jun 8 12:07 UTC
GNU Emacs 22.0.50.21 (i686-pc-linux-gnu, GTK+ Version 2.6.4)
built using bootfast
started with
emacs/src/emacs -Q -D
After running PCL-CVS and vc-annotate
> After emacs -Q, visiting src/window.c and then doing C-x v l gives
> unreliable results. Large chunks of the buffer are missing.
The same occurs with me, but only when I do this with an instance of
Emacs that has my .emacs file. Then the beginning of lisp/files.el was
6553 bytes in even after applying the fixes that Kim Storm mentioned
from INSTALL.CVS and the beginning of the file appeared.
In the past, without that fix, emacs/src/emacs -Q -D
also missed part of the buffer.
But after applying those fixes from INSTALL.CVS emacs/src/emacs -Q -D
appears to work consistently.
I lack the time for the next few days to figure out what is happening
in my .emacs file.
--
Robert J. Chassell
bob@rattlesnake.com GnuPG Key ID: 004B4AC8
http://www.rattlesnake.com http://www.teak.cc
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-06-08 14:23 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-07 12:25 Unreliability in process output Richard Stallman
2005-06-07 12:51 ` Nick Roberts
2005-06-07 12:57 ` Kim F. Storm
2005-06-08 12:02 ` Richard Stallman
2005-06-08 12:45 ` Andreas Schwab
2005-06-08 14:23 ` Robert J. Chassell
2005-06-07 13:14 ` Andreas Schwab
2005-06-08 10:18 ` public
2005-06-08 11:34 ` Andreas Schwab
2005-06-08 12:02 ` Richard Stallman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).