public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Don Hatch <hatch@plunk.org>
To: cygwin@cygwin.com
Cc: Don Hatch <hatch@plunk.org>
Subject: Re: checking in >= 256k file fatally corrupts rcs file
Date: Wed, 09 Oct 2013 00:24:00 -0000	[thread overview]
Message-ID: <20131009003055.GA30082@plunk.org> (raw)
In-Reply-To: <525499E5.4090608@etr-usa.com>

On Tue, Oct 08, 2013 at 05:48:53PM -0600, Warren Young wrote:
> On 10/8/2013 04:22, Don Hatch wrote:
> >
> >Checking in a text file of size >= 256k
> >corrupts the rcs file, irretrievably losing most of the contents
> 
> It's documented in the rcs NEWS file:
> 
>     - Env var RCS_MEM_LIMIT controls stdio threshold.
> 
>       For speed, RCS uses memory-based routines for files up to
>       256 kilobytes, and stream-based (stdio) routines otherwise.
>       You can change this threshold value by setting the environment
>       variable ?RCS_MEM_LIMIT? to a non-negative integer, measured in
>       kilobytes.  An empty ?RCS_MEM_LIMIT? value is silently ignored.
> 
> So, use the new environment variable, or build up your huge diffs a
> few steps at a time, so as to avoid spamming this buffer.

Hi Warren,

Thanks for the pointer.

That quote certainly doesn't describe or justify the very serious
corruption bug I'm seeing in any way;
however, it seems very likely that the corruption bug
was introduced along with this new optimization feature
that you reference, so it's good information.

If it's indeed the case that this bug was introduced along with this
non-essential feature, it would be really good if the feature
could be backed out, and possibly re-introduced at a later time
after it has been re-worked so that doesn't break the product.

Don

-- 
Don Hatch
hatch@plunk.org
http://www.plunk.org/~hatch/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2013-10-09  0:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-08 10:16 Don Hatch
2013-10-08 23:49 ` Warren Young
2013-10-09  0:24   ` Don Hatch [this message]
2013-10-09  1:30     ` Warren Young
2013-10-09  2:07       ` Gary Johnson
2013-10-09  3:29         ` Warren Young
2013-10-09  6:59       ` Don Hatch
2013-10-09 13:37         ` Warren Young
2013-10-09 14:00           ` Ryan Johnson
2013-10-09 17:58           ` Don Hatch
2013-10-09 13:47   ` Ryan Johnson
2013-10-09 18:28     ` Achim Gratz
2013-10-09 20:57       ` Richard Gribble
2014-02-26 13:26 Wagemans, Peter

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=20131009003055.GA30082@plunk.org \
    --to=hatch@plunk.org \
    --cc=cygwin@cygwin.com \
    /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.
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).