fix some descriptor errors and add an sample analysis to stack protector.