South Africa’s hopes of building a big lead were derailed by Temba Bavuma’s injury and a collapse on day three of the first test against Bangladesh at the Wanderers on Tuesday.
The Proteas closed on 386/7, still 14 runs behind Bangladesh’s 400, after rain and lightning wiped out play after lunch.
South Africa had looked in control when they resumed on 287/4, with Bavuma and Ryan Rickelton taking the total to 358/4.
But the skipper, on 49, retired hurt with a right calf injury shortly after Bangladesh took the second new ball.
He had received lengthy treatment on the field before hobbling through for a single.
His departure sparked a collapse of three wickets for 15 runs. Wiaan Mulder edged Taskin Ahmed behind, Marco Jansen followed, and Simon Harmer edged Hasan Mahmud to wicketkeeper Litton Das.
Das took six catches in the innings, a Bangladesh test record, as he became only the third player in test history to score a century and take six dismissals in an innings.
Denis Lindsay achieved the feat in Johannesburg in 1966/67 before Ab de Villiers followed in 2012/13.
Rickelton, dropped on 30, was unbeaten on 56.
Cricket South Africa said Bavuma was being assessed and would return to bat.
Mahmud was Bangladesh’s best bowler with 4/72, despite leaving the field briefly with a right elbow injury.