Grigor Dimitrov was forced to rescue two match points before eventually overcoming Malek Jaziri, while Rafael Nadal had no such problems at the Barcelona Open on Thursday.
Second seed Dimitrov, aiming for just his second clay-court title and his first in four years, was taken the distance - and to the brink of a shock defeat - before completing a 7-5 3-6 7-6 (10-8) success.
The opening set proved a sign of things to come as world number 88 Jaziri took a 4-2 lead, but Dimitrov hit back and belatedly forged ahead by converting his fifth set point.
Jaziri was unbowed, however, and broke at either end of the second to level the match before once again taking a 4-2 lead in the decider, and the Tunisian earned a match point at 6-5 with Dimitrov on serve.
He could only net a backhand, though, as the Bulgarian forced a tie-break, where the drama continued.
Dimitrov wasted a trio of match points - sending a makeable backhand wide on the third - and breathed a sigh of relief when Jaziri dumped a forehand into the tramlines at 8-7. As the match approached the end of its third hour the Tunisian finally cracked, netting a forehand as his opponent squeezed into the quarter-finals.
He will play Pablo Carreno Busta, who defeated Adrian Mannarino in another match decided on a final-set tie-break.
There was no such drama later in the day as Nadal breezed past compatriot Guillermo Garcia-Lopez 6-1 6-3 to chalk up his 16th straight victory on clay, as well as extending his record of consecutive sets won on the dirt to 40. Martin Klizan awaits in the last eight.
Third seed Dominic Thiem got the better of Jozef Kovalik, while there were also wins for Stefanos Tsitsipas, fourth seed David Goffin and Roberto Bautista Agut.
Meanwhile, there was a shock at the Hungarian Open as top seed and defending champion Lucas Pouille was dumped out 6-3 6-4 by John Millman. Yannick Maden, Andreas Seppi and Nikoloz Basilashvili were Thursday's other winners in Budapest.
|Zverev destroys racquet in Aus Open meltdown|
|From Villarreal to Aus Open quarters – Bautista Agut breaks major duck|
|Brees: I plan on being here next year and making another run at it|
|´Unf******-believable bro!´ - Brady stunned after reaching third straight Super Bowl|
|New England find answers, penalty costs Kansas City – three takeaways from Patriots´ win over Chiefs|
|Donald Trump congratulates Brady and Super Bowl-bound Patriots|
|Rose helps Timberwolves down Suns|
|Brady leads Patriots into third straight Super Bowl|
|Osaka overcomes Sevastova to reach quarters|
|Chelsea remain behind Sarri – David Luiz|
|McVay explains Gurley´s limited role in Rams´ win over Saints|
|Southgate hails ´tremendous talent´ Rashford|
|Long earns maiden PGA Tour win at Desert Classic|
|Flanagan resigns as Sharks head coach|
|Rams´ Robey-Coleman admits he committed penalty on controversial no-call|
|NFL admits they blew the call – Saints coach Payton|
|Terrible no-call, Goff shines – three takeaways from Rams´ win over Saints|
|Lonzo Ball to miss 4-6 weeks with ankle sprain|
|Patterson added to Australia Test squad|
|Zuerlein´s overtime kick sinks Saints and sends Rams to Super Bowl|
|It was a clear goal – Valverde dismisses Barca VAR controversy|
|Rashford can emulate Man United greats Ronaldo and Rooney – Solskjaer|
|Karmichael Hunt swaps Reds for Waratahs|
|Barcelona forward Dembele set for tests on sprained ankle|
|Neymar insists Barcelona and Real Madrid links not ´concrete´|
|England trio Nowell, Slade and Cowan-Dickie sign fresh Exeter deals|
|Windies coach Pybus not distracted by detractors|
|Barcelona 3 Leganes 1: Messi and Suarez combine to spare Barca´s blushes|
|I´m sure Michael would be extremely proud - Vettel hails Mick Schumacher|
|Young plays down injury fears for England trio Launchbury, Shields and Hughes|
|Pochettino: Lucas Moura fit for Chelsea clash|
|Ranieri positive on Fulham survival chances despite ´unbelievable´ Spurs loss|
|United Arab Emirates v Kyrgyzstan: Zaccheroni confident in attack|
|South Korea lose Ki to hamstring injury|
|It doesn´t look great - Pochettino to wait on Alli assessment|
|Messi benched as Barcelona face Leganes|
|Dalglish texts me before matches - Van Dijk|
|Patrick Mahomes could sign NFL´s first $200m contract - reports|
|Iran 2 Oman 0: Jahanbakhsh and Dejagah secure last-eight spot|
|Helloooo u remember me? Nkoudou reminds Spurs fans he exists|
|Japan v Saudi Arabia: Pizzi believes Saudis can upset the odds|
|Repsol Honda´s Lorenzo to have surgery on fractured wrist|
|Fulham 1 Tottenham 2: Winks heads late winner after Alli injury|
|Leinster seal home quarter-final with win over Wasps|
|Vince, Curran star as Sixers trounce Heat to move second|
|Sharapova stunned by Barty as Kvitova takes Anisimova to school|
|Guardiola demands improvement after Man City win|
|Sexton has bat phone to referees - Jones|
|Alonso accepts Chelsea guilty of ´silly mistakes´ in Arsenal defeat|
|Guardiola woke us up - Sane reveals half-time rocket for Man City|
|A first step to something bigger - Tsitsipas eyeing glory after shocking Federer|
|Thailand 1 China 2: Gao Lin keeps dream alive for Lippi|
|Tsitsipas in dreamland after ousting Federer, birthday boy Tiafoe breaks new ground|
|Huddersfield Town 0 Manchester City 3: Danilo, Sterling and Sane on target for ton-up City|
|Allegri: Khedira will be like a new signing for Juventus|
|Manchester City reach 100 goals in 2018-19|
|Australia v Uzbekistan: Leckie´s return is ´like a new signing´, says Arnold|
|Jordan 1 Vietnam 1 (aet, 2-4 on penalties): Keeper Van Lam the shoot-out hero|
|Federer confirms French Open return after Melbourne exit|
|I accept his decision - Gattuso axes Chelsea-bound Higuain|
|The rapid rise of Federer-conqueror Tsitsipas|
|Gracious Federer hails ´better player´ Tsitsipas after Australian Open exit|
|Tsitsipas ´happiest man on earth´ after stunning Federer|
|Harden focused on wins, not personal feats after scoring 48 points|
|PSG midfielder Verratti suffers sprained ankle|
|Inspired Tsitsipas dethrones Federer|
|PSG´s Cavani considering career finale in Uruguay|
|Feisty Collins ready to make more noise after thrashing Kerber|
|I´ve got to work on my soccer skills! - Mavs´ Doncic didn´t know ejection rule|
|Lakers won´t rush LeBron & Rondo back despite Ball injury|