finally, the stl problem solved. The rule is that be careful to things in static function where stl container involved