It seems to me that the current code for PetscSubcommSetTypeGeneral assumes that all colors will be provided within a range [0,max_color_value_provided]. The current patch (which simply zeroes the subsizes array) extend the code when there are holes in the colors' set.
-- Stefano
patch_subcomm
Description: Binary data
