When running r.quantile with percentiles set at 0-100 at steps of 0.25, all runs fine, the output would look like e.g (output in the recode rules format - only first and last three shown) .,
It uses an 8-bit value to store the bin number for each slot, which
imposes a limit of 255 bins. Exceeding this number causes earlier bins
to be "recycled" while later bins aren't filled (leaving them
containing zeroes).
In r53951, I've enlarged this to 16 bits and added an error if there
are more than 65535 quantiles (the number of bins will never exceed
the number of quantiles).
It uses an 8-bit value to store the bin number for each slot, which
imposes a limit of 255 bins. Exceeding this number causes earlier bins
to be "recycled" while later bins aren't filled (leaving them
containing zeroes).
In r53951, I've enlarged this to 16 bits and added an error if there
are more than 65535 quantiles (the number of bins will never exceed
the number of quantiles).