Painful passing of stool is ideally in condition called fissure. It is a small wound in the anal opening, to which hard stool irritaes while passing from there (friction). If the wound is deep, it bleeds, which is only 1-2 drops.
Next Steps
Sitting in hot water (fomentation) will help immediately to subside pain and spasm. Long term Ayurveda treatment cures the wound completely and generally operation is not needed.
Health Tips
always try to keep stools soft by drinking sufficient water, walking exercise. avoid hot spicy food