zsh-users
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.org>
To: zsh-users@sunsite.dk
Subject: Re: History corruption (over NFS)
Date: Mon, 14 Feb 2005 16:56:30 +0100	[thread overview]
Message-ID: <20050214155630.GB6395@ay.vinc17.org> (raw)
In-Reply-To: <1050210184111.ZM22490@candle.brasslantern.com>

On 2005-02-10 18:41:11 +0000, Bart Schaefer wrote:
> One thing to check is whether the file on the NFS server actually does
> contain those nul bytes, or if it's only the NFS client that sees them.
> I vaguely recall that you may need to explicitly specify "noac" in the
> NFS mount options, but it's been quite some time since I encountered
> this particular problem.

The "noac" didn't change anything (except making command execution
slower).

Here's what my corrupted .zhistory file looked like:

[...]
: 1108388462:0;ssh priam
^@^@^@^@^@^@^@^@[...]^@^@: 1108388476:0;t3-exec ulysse 0 -c=3 -l=3 [...]
: 1108390243:0;lt results.*
: 1108390256:0;head old-xtp/results.ctp.-3.54.1
: 1108390282:0;t3-secstep -f=ctp -e=-3 -m=54 -i=40 -n=44 --imax=7935
: 1108390290:0;screen -h 6000 -t server 1 zsh -c "./t3-server -v
+results.ctp.-3.54 2> server.out"
: 1108390309:0;ssh priam
[...]

If I've understood correctly, the first "ssh priam" started a zsh that
truncated the history file (since its size was above the limit). Note
that I quit this shell immediately. Then the current zsh instances
went on writing to the history file without noticing that it had been
truncated, hence the null bytes. The corrupt history was detected when
I started the second "ssh priam".

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


  parent reply	other threads:[~2005-02-14 15:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-10 16:54 Vincent Lefevre
2005-02-10 18:41 ` Bart Schaefer
2005-02-10 23:54   ` Vincent Lefevre
2005-02-14 15:56   ` Vincent Lefevre [this message]
2005-02-14 16:24     ` Bart Schaefer
2005-02-15  9:50       ` Vincent Lefevre
2005-02-15 16:15         ` Bart Schaefer
2005-02-14 18:57     ` Wayne Davison
2005-02-14 21:06       ` Seth Kurtzberg
2005-02-14 22:33         ` Wayne Davison
2005-02-15  9:58       ` Vincent Lefevre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050214155630.GB6395@ay.vinc17.org \
    --to=vincent@vinc17.org \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).