Subject: bin/19380: cvs assertion failed in rcs.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Ryo HAYASAKA <ryoh@jaist.ac.jp>
List: netbsd-bugs
Date: 12/14/2002 18:46:27
>Number:         19380
>Category:       bin
>Synopsis:       cvs assertion failed in rcs.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 14 01:47:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ryo HAYASAKA
>Release:        NetBSD 1.6K
>Organization:
Japan Advanced Institute of Science and Technology (JAIST)
>Environment:
System: NetBSD bonnie.jaist.ac.jp 1.6K NetBSD 1.6K (BONNIE) #349: Tue Dec 10 15:06:24 JST 2002 ryoh@bonnie.jaist.ac.jp:/home/ryoh/util/compile/BONNIE i386
Architecture: i386
Machine: i386
>Description:
Today, I got the following "assertion failed" messages from cvs when I
typed "cvs up vmstat.c" in /usr/src/usr.bin/vmstat.

assertion "ptr >= rcsbuf_buffer && ptr < rcsbuf_buffer + rcsbuf_buffer_size" failed: file "/usr/src/gnu/dist/cvs/src/rcs.c", line 1097, function "rcsbuf_getkey"
cvs [update aborted]: received abort signal

Apparently, the assertion should be "ptr >= rcsbuf_buffer && ptr <=
rcsbuf_buffer + rcsbuf_buffer_size".

I've checked the master repository of the cvs project (cvshome) and
this problem was already fixed there in rev. 1.259 of rcs.c.

So, I request import of rev. 1.259 (at least) of rcs.c from the cvs
repository even before its next release.
	
>How-To-Repeat:
Code inspection.
	
>Fix:
Import the diffs (mainly between rev. 1.258 to rev. 1.259) from the
repository of cvs.  Refer to
http://ccvs.cvshome.org/source/browse/ccvs/src/rcs.c .
	
>Release-Note:
>Audit-Trail:
>Unformatted: