Sun 01 Feb 2009 01:56:51 PM UTC, original submission:
cvs log/rlog(most probably others cause problems also) failing with: Program terminated with signal 11, Segmentation fault.
Cause: some how files (under Attic in my case) has the following format:
more /path/to/file/Attic/File.java
--------------------------------
head 1.2;
access;
symbols
locks; strict;
comment @# @;
1.2
date 2004.08.11.16.35.08; author nomad; state dead;
branches;
next 1.1;
--------------------------------
The problem is "symbols" keyword. At some point in time this file was deleted, "symbols" keyword present, but no actual "symbols" specified.
[QUESTION1] How does this used to happen I don't know.
Tested workaround (manually) is to replace "symbols" with "symbols;" or to add actual symbols.
[QUESTION2] Reasonable error code could be returned by cvs.
cvs version:
cvs -v
Concurrent Versions System (CVS) 1.11.17 (client/server)
Copyright (c) 1989-2004 Brian Berliner, david d `zoo' zuhn,
Jeff Polk, and other authors
CVS may be copied only under the terms of the GNU General Public License,
a copy of which can be found with the CVS distribution kit.
Specify the --help option for further information about CVS
GDB stack trace of core:
(gdb) bt
#0 0x0807db0c in do_symbols ()
#1 0x0807f66a in RCS_symbols ()
#2 0x08070dd4 in log_fileproc ()
#3 0x0808908b in do_file_proc ()
#4 0x08067f4f in walklist ()
#5 0x08088e29 in do_recursion ()
#6 0x08089a78 in unroll_files_proc ()
#7 0x08067f4f in walklist ()
#8 0x08088851 in start_recursion ()
#9 0x08070487 in rlog_proc ()
#10 0x08077531 in my_module ()
#11 0x08078202 in do_module ()
#12 0x0806ffff in cvslog ()
#13 0x08075e54 in main ()
|