cvs-1.11.17-8.RHEL4 When the CVS history file gets bigger than 2GB, cvs checkouts and other operations on the server fail with a "File size limit exceeded" error. The fix (verified) is adding the following line to the .spec before the make: CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"; export CFLAGS $ cat filler.c #include <stdio.h> main() { FILE *fp; fp = fopen("/var/cvs/CVSROOT/history","a+"); while (1) fprintf(fp,"A448ee4ee|marco|~/cvstest|testprj|1.1|hello.txt\n"); fclose(fp); } $ mkdir /var/cvs $ mkdir /var/cvs/testprj $ export CVSROOT=/var/cvs $ mkdir cvstest && cd cvstest $ cvs init $ mkdir testprj $ echo "hello world" > testprj/hello.txt $ cvs checkout testprj/ $ cvs add testprj/hello.txt $ cvs commit -m "test" $ gcc filler.c -o filler $ ./filler File size limit exceeded $ cvs commit -m "test" cvs commit: Examining testprj RCS file: /var/cvs/testprj/edge.txt,v done Checking in testprj/edge.txt; /var/cvs/testprj/edge.txt,v <-- edge.txt initial revision: 1.1 done File size limit exceeded $ ls -lh /var/cvs/CVSROOT/history -rw-rw-rw- 1 marco marco 2.0G Jun 13 17:18 /var/cvs/CVSROOT/history
fixed in rawhide
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Created attachment 328457 [details] Testcase testing bug 196259, 218324, 441694 Created testcase for testing bugs in cvs, It check right link to web pages, assertion when use rtag and large file support(more than 2Gb
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-0971.html