Avalanches in stars and at finite temperature