The multimaster node detection uses stacks to sort the node groups. The size of this stack was always assumed to be positive but it was possible that it dropped down to -1 causing a crash when the stack was accessed with the index number.