svnsync crash on empty repo
From: Julian Foad <julianfoad_at_gmail.com>
Date: Sat, 5 Sep 2015 11:01:51 +0100
Hi, Bert.
On trunk (released versions are unaffected), "svnsync sync" with an
subversion/libsvn_ra/ra_loader.c' line 1198: assertion failed
because start_revision is 1 and end_revision is 0.
The assertion was added in r1665480
One possible fix is to avoid calling it with an empty revision range, like this:
Index: subversion/svnsync/svnsync.c
- if (from_latest < last_merged)
That makes the caller return early when there are no revisions to
However, I think we need to continue allowing the historical usage of
- && start_revision <= end_revision
I haven't yet seen where the problem or restriction existed in some RA
The attached patch contains both possible fixes, a log msg and a
(I found this by running tests with the "--dump-load-cross-check"
- Julian
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.