subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Martin <philip.mar...@wandisco.com>
Subject svnfsfs stats division by zero on empty repository
Date Tue, 08 Sep 2015 10:56:41 GMT
$ 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

Mime
View raw message