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

Re: svnfsfs stats division by zero on empty repository

From: Stefan Fuhrmann <stefan.fuhrmann_at_wandisco.com>
Date: Thu, 10 Sep 2015 20:58:31 +0200

On Tue, Sep 8, 2015 at 12:56 PM, Philip Martin <philip.martin_at_wandisco.com>
wrote:

> $ 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
>

Thanks for the report, Philip. Fixed in r1702310.

-- Stefan^2.
Received on 2015-09-10 20:58:40 CEST

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.