thread attr & bug