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.
|LeBron or Kawhi could lead Lakers to the Finals - World Peace|
|Serena steps up Roland Garros training ahead of French Open|
|Nainggolan left out of Belgium´s World Cup squad|
|The long goodbye: Iniesta sits alone in Camp Nou after final Barcelona match|
|Wane to leave Warriors at end of season|
|Dr Fury will see you now - Tyson plans future career in medicine|
|Harden, D´Antoni rue ´soft´ Rockets performance in Warriors drubbing|
|Liverpool players can change their lives in Kiev, says Gerrard|
|Real Madrid v Liverpool: Can great deeds of the past fuel the bid for Champions League glory?|
|Wash your mouth out! - Curry´s expletive outburst earns scolding from mother|
|Rakitic lost for words as Iniesta heads for Barcelona exit|
|Conte: Chelsea must overhaul squad to change style|
|Johnston: Liverpool can´t lose Suarez, Coutinho and Salah!|
|Messi: I like Griezmann, he´s one of the best|
|Ohtani says he´s not good enough for Home Run Derby yet|
|Mendy: France are eyeing World Cup glory|
|Scott accepts two-week ban for Walker punch|
|Braves rally for six runs in the ninth to defeat Marlins|
|MLS Review: Red Bulls upstage Atlanta thanks to Wright-Phillips brace|
|Warriors breeze past Rockets in game three|
|We have a quality squad – Man City chairman hints at caution in transfer market|
|Wise cruises to maiden PGA Tour victory at Byron Nelson|
|Matic: United can fight for Premier League and Champions League with experience|
|Golden Knights GM on Stanley Cup Finals berth: I don´t know how we did it|
|I did a ´s*** job´ defending LeBron James – Morris|
|Dembele suffers sprained right ankle|
|We know Fellaini´s not going to renew with United – Mirabelli suggests Milan move|
|Cavs´ Lue not satisfied with just one win|
|They even whistled at Torres – Simeone backs Griezmann|
|I arrived as a boy, I leave as a man – Iniesta in emotional Barcelona farewell|
|Lingard: Wembley loss my worst feeling in football|
|Cahill: Conte uncertainty affecting Chelsea|
|Sarri has run out of time – Napoli chief De Laurentiis|
|Barca boss Valverde salutes departing Iniesta|
|I feel like I´ve been run over by a truck or had 15 pints - Crutchlow|
|Four sent off as Ajaccio win chaotic Le Havre play-off on penalties|
|Sweden win shoot-out to retain world title|
|De Vrij penalty was destiny for Inter - Icardi|
|PSG? Maybe one day - Pogba coy over long-term future at Manchester United|
|Messi wins fifth European Golden Shoe|
|Gattuso calls for more malice at Milan|
|Barcelona 1 Real Sociedad 0: Coutinho stunner lights up Iniesta´s farewell|
|Lazio 2 Inter 3: Spalletti´s men seal Champions League qualification with stunning comeback|
|Royals reach play-offs as Kings XI come up short|
|Nadal sees clearly after Rome rain is gone|
|Double whammy for Zverevs as Mischa bows out in Geneva|
|Atletico Madrid pay fitting tribute to tearful Torres|
|Hull FC claim derby spoils, Dragons off the bottom|
|Buzarnescu battles through as McHale impresses in Nuremberg|
|Neymar an artist who will not need special treatment - new PSG coach Tuchel|
|Atletico Madrid 2 Eibar 2: Torres bows out with a double|
|Napoli 2 Crotone 1: Milik and Callejon condemn visitors to the drop|
|Iniesta starts on Barcelona goodbye but Messi rested|
|Nadal rallies after rain break to dethrone Zverev in Rome|
|AC Milan 5 Fiorentina 1: Cutrone brace secures Europa League group stage spot|
|I think I made a fantastic decision - Garoppolo key to Sherman joining 49ers|
|FIFPro appeals to FIFA over Guerrero World Cup ban|
|Neymar made mistake joining PSG - Rivaldo|
|Simple for Simon as outstanding Yates extends Giro advantage|
|Ulster qualify for Champions Cup as Biggar makes history|
|Neymar tired of rumours and staying at PSG, president Al-Khelaifi claims|
|Beaten Halep calms injury concerns ahead of French Open|
|Van der Vaart´s Midtjylland nightmare set to end|
|It has been a crazy ride - Klopp proud of Liverpool ahead of Champions League showdown|
|Raonic pulls out of French Open|
|Liverpool youngster Alexander-Arnold not overwhelmed by England call-up|
|Torres captains Atletico Madrid on farewell|
|Otaegui claims second European Tour win at Belgian Knockout|
|Green: Warriors play best when we feel threatened|
|Daredevils dump out defending IPL champions Mumbai|