If your 9-month-old baby is crying when passing stools, it could be a sign of constipation. You may want to try some home remedies such as increasing their fiber intake or offering more water. If the issue persists, it is best to seek advice from a healthcare professional such as a pharmacist for personalized assistance.