[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svnfsfs stats division by zero on empty repository

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 08 Sep 2015 11:56:41 +0100

$ svnadmin create repo
$ svnfsfs stats repo
...
Extensions by number of representations:
Floating point exception

Program received signal SIGFPE, Arithmetic exception.
0x000000000040311c in print_extensions_by_changes (stats=0x61bf10,
    pool=0x60c450) at ../src/subversion/svnfsfs/stats-cmd.c:249
249 (int)((stats->file_histogram.total.count - sum) * 100 /
(gdb) l
244 }
245
246 printf(_("%11s %20s (%2d%%) representations\n"),
247 "(others)",
248 svn__ui64toa_sep(stats->file_histogram.total.count - sum, ',', pool),
249 (int)((stats->file_histogram.total.count - sum) * 100 /
250 stats->file_histogram.total.count));
251 }
252
253 /* Print the (up to) 16 extensions in STATS with the largest total size of
(gdb) p stats->file_histogram.total.count
$1 = 0

-- 
Philip Martin
WANdisco
Received on 2015-09-08 12:56:52 CEST

This is an archived mail posted to the Subversion Dev mailing list.