Fix one more exception handling issue
Fix one more exception handling issue

This change fixes exception handling issue that resulted in a finally block being invoked multiple
times in case of a rethrown exception in some specific cases.
The problem was caused by the ExceptionTracker::StackRange::CombineWith that was not handling
correctly the case when the current stack range was empty. It was copying only the upper limit
from the previous range and leaving the lower limit at the default (max) value.
This case happens in the interleaved exception handling when processing the first managed
frame after a block of native frames was unwound.
There is one additional fix in the UnwindManagedExceptionPass1 where we were popping one
frame from the thread's frame list before performing the native frames unwind. This was
not correct since in some cases, there can be more frames that need to be removed.

iamjasonp/coreclr,geertdoornbos/coreclr,OryJuVog/coreclr,GuilhermeSa/coreclr,gitchomik/coreclr,cydhaselton/coreclr,LLITCHEV/coreclr,wateret/coreclr,misterzik/coreclr,andschwa/coreclr,krk/coreclr,chuck-mitchell/coreclr,russellhadley/coreclr,Lucrecious/coreclr,Lucrecious/coreclr,fffej/coreclr,rartemev/coreclr,wkchoy74/coreclr,parjong/coreclr,zmaruo/coreclr,swgillespie/coreclr,mmitche/coreclr,James-Ko/coreclr,LLITCHEV/coreclr,chaos7theory/coreclr,AlexGhiondea/coreclr,chrishaly/coreclr,Djuffin/coreclr,dasMulli/coreclr,JonHanna/coreclr,geertdoornbos/coreclr,shahid-pk/coreclr,schellap/coreclr,bartdesmet/coreclr,yeaicc/coreclr,Dmitry-Me/coreclr,bitcrazed/coreclr,krytarowski/coreclr,AlfredoMS/coreclr,russellhadley/coreclr,Alcaro/coreclr,Djuffin/coreclr,YongseopKim/coreclr,JonHanna/coreclr,wkchoy74/coreclr,Alcaro/coreclr,yizhang82/coreclr,AlexGhiondea/coreclr,GuilhermeSa/coreclr,SpotLabsNET/coreclr,andschwa/coreclr,wkchoy74/coreclr,AlfredoMS/coreclr,hanu412/coreclr,matthubin/coreclr,david-mitchell/coreclr,jamesqo/coreclr,sergey-raevskiy/coreclr,ragmani/coreclr,matthubin/coreclr,bartonjs/coreclr,chaos7theory/coreclr,DickvdBrink/coreclr,perfectphase/coreclr,kyulee1/coreclr,david-mitchell/coreclr,roncain/coreclr,vinnyrom/coreclr,spoiledsport/coreclr,spoiledsport/coreclr,mmitche/coreclr,poizan42/coreclr,schellap/coreclr,pgavlin/coreclr,apanda/coreclr,dkorolev/coreclr,fernando-rodriguez/coreclr,martinwoodward/coreclr,manu-silicon/coreclr,josteink/coreclr,jhendrixMSFT/coreclr,bitcrazed/coreclr,rartemev/coreclr,grokys/coreclr,ganeshran/coreclr,martinwoodward/coreclr,benpye/coreclr,sjsinju/coreclr,OryJuVog/coreclr,sergey-raevskiy/coreclr,cmckinsey/coreclr,xtypebee/coreclr,Godin/coreclr,libengu/coreclr,perfectphase/coreclr,rartemev/coreclr,sejongoh/coreclr,MCGPPeters/coreclr,cydhaselton/coreclr,misterzik/coreclr,Samana/coreclr,chuck-mitchell/coreclr,jhendrixMSFT/coreclr,benpye/coreclr,JosephTremoulet/coreclr,gitchomik/coreclr,roncain/coreclr,qiudesong/coreclr,jhendrixMSFT/coreclr,josteink/coreclr,chenxizhang/coreclr,geertdoornbos/coreclr,gitchomik/coreclr,botaberg/coreclr,libengu/coreclr,JosephTremoulet/coreclr,ramarag/coreclr,ericeil/coreclr,swgillespie/coreclr,david-mitchell/coreclr,botaberg/coreclr,benpye/coreclr,zmaruo/coreclr,apanda/coreclr,alexperovich/coreclr,chrishaly/coreclr,qiudesong/coreclr,shahid-pk/coreclr,richardlford/coreclr,sejongoh/coreclr,tijoytom/coreclr,lzcj4/coreclr,James-Ko/coreclr,taylorjonl/coreclr,jamesqo/coreclr,DasAllFolks/coreclr,ganeshran/coreclr,fernando-rodriguez/coreclr,tijoytom/coreclr,cshung/coreclr,sjsinju/coreclr,James-Ko/coreclr,qiudesong/coreclr,krytarowski/coreclr,mokchhya/coreclr,gkhanna79/coreclr,chrishaly/coreclr,Sridhar-MS/coreclr,MCGPPeters/coreclr,shana/coreclr,dkorolev/coreclr,Samana/coreclr,shana/coreclr,ruben-ayrapetyan/coreclr,JosephTremoulet/coreclr,tijoytom/coreclr,ZhichengZhu/coreclr,mmitche/coreclr,AlexGhiondea/coreclr,jakesays/coreclr,blackdwarf/coreclr,gitchomik/coreclr,bartdesmet/coreclr,wateret/coreclr,SlavaRa/coreclr,DickvdBrink/coreclr,zmaruo/coreclr,benpye/coreclr,sergey-raevskiy/coreclr,perfectphase/coreclr,serenabenny/coreclr,tijoytom/coreclr,botaberg/coreclr,bitcrazed/coreclr,KrzysztofCwalina/coreclr,fernando-rodriguez/coreclr,manu-silicon/coreclr,cydhaselton/coreclr,vinnyrom/coreclr,geertdoornbos/coreclr,fffej/coreclr,AlexGhiondea/coreclr,dasMulli/coreclr,lzcj4/coreclr,Lucrecious/coreclr,ZhichengZhu/coreclr,xtypebee/coreclr,matthubin/coreclr,yeaicc/coreclr,pgavlin/coreclr,mocsy/coreclr,russellhadley/coreclr,sejongoh/coreclr,mocsy/coreclr,stormleoxia/coreclr,cshung/coreclr,rartemev/coreclr,shahid-pk/coreclr,ragmani/coreclr,libengu/coreclr,YongseopKim/coreclr,Djuffin/coreclr,neurospeech/coreclr,ericeil/coreclr,ganeshran/coreclr,Dmitry-Me/coreclr,neurospeech/coreclr,josteink/coreclr,lzcj4/coreclr,grokys/coreclr,SpotLabsNET/coreclr,OryJuVog/coreclr,Dmitry-Me/coreclr,ktos/coreclr,sagood/coreclr,mocsy/coreclr,OryJuVog/coreclr,andschwa/coreclr,bartdesmet/coreclr,matthubin/coreclr,bitcrazed/coreclr,ganeshran/coreclr,KrzysztofCwalina/coreclr,dpodder/coreclr,cmckinsey/coreclr,Godin/coreclr,schellap/coreclr,shana/coreclr,bjjones/coreclr,SlavaRa/coreclr,ruben-ayrapetyan/coreclr,misterzik/coreclr,ZhichengZhu/coreclr,James-Ko/coreclr,kyulee1/coreclr,DasAllFolks/coreclr,chenxizhang/coreclr,dasMulli/coreclr,ytechie/coreclr,Godin/coreclr,stormleoxia/coreclr,bartonjs/coreclr,roncain/coreclr,Lucrecious/coreclr,xoofx/coreclr,DickvdBrink/coreclr,roncain/coreclr,chaos7theory/coreclr,martinwoodward/coreclr,orthoxerox/coreclr,James-Ko/coreclr,ytechie/coreclr,sperling/coreclr,Lucrecious/coreclr,bjjones/coreclr,LLITCHEV/coreclr,xoofx/coreclr,ganeshran/coreclr,manu-silicon/coreclr,cshung/coreclr,parjong/coreclr,LLITCHEV/coreclr,bjjones/coreclr,James-Ko/coreclr,MCGPPeters/coreclr,orthoxerox/coreclr,cydhaselton/coreclr,wateret/coreclr,KrzysztofCwalina/coreclr,perfectphase/coreclr,chrishaly/coreclr,blackdwarf/coreclr,mmitche/coreclr,zmaruo/coreclr,jakesays/coreclr,kyulee1/coreclr,gitchomik/coreclr,mokchhya/coreclr,SlavaRa/coreclr,richardlford/coreclr,dpodder/coreclr,swgillespie/coreclr,yizhang82/coreclr,bartonjs/coreclr,Sridhar-MS/coreclr,krytarowski/coreclr,jhendrixMSFT/coreclr,sejongoh/coreclr,stormleoxia/coreclr,krytarowski/coreclr,orthoxerox/coreclr,shahid-pk/coreclr,sejongoh/coreclr,YongseopKim/coreclr,manu-silicon/coreclr,jamesqo/coreclr,KrzysztofCwalina/coreclr,dkorolev/coreclr,shana/coreclr,JonHanna/coreclr,serenabenny/coreclr,bartdesmet/coreclr,jamesqo/coreclr,AlexGhiondea/coreclr,Samana/coreclr,alexperovich/coreclr,taylorjonl/coreclr,wkchoy74/coreclr,krk/coreclr,andschwa/coreclr,krixalis/coreclr,hseok-oh/coreclr,chenxizhang/coreclr,cshung/coreclr,pgavlin/coreclr,mskvortsov/coreclr,xtypebee/coreclr,andschwa/coreclr,wtgodbe/coreclr,russellhadley/coreclr,rartemev/coreclr,richardlford/coreclr,perfectphase/coreclr,xoofx/coreclr,ktos/coreclr,matthubin/coreclr,poizan42/coreclr,chuck-mitchell/coreclr,hanu412/coreclr,dasMulli/coreclr,GuilhermeSa/coreclr,schellap/coreclr,mskvortsov/coreclr,taylorjonl/coreclr,spoiledsport/coreclr,yizhang82/coreclr,Alcaro/coreclr,JosephTremoulet/coreclr,benpye/coreclr,sergey-raevskiy/coreclr,wateret/coreclr,bartdesmet/coreclr,mocsy/coreclr,Godin/coreclr,krytarowski/coreclr,Djuffin/coreclr,chuck-mitchell/coreclr,krixalis/coreclr,shana/coreclr,fernando-rodriguez/coreclr,david-mitchell/coreclr,stormleoxia/coreclr,botaberg/coreclr,yeaicc/coreclr,YongseopKim/coreclr,bartdesmet/coreclr,manu-silicon/coreclr,fffej/coreclr,sagood/coreclr,Sridhar-MS/coreclr,chaos7theory/coreclr,krk/coreclr,ericeil/coreclr,mskvortsov/coreclr,blackdwarf/coreclr,YongseopKim/coreclr,ZhichengZhu/coreclr,sperling/coreclr,vinnyrom/coreclr,ericeil/coreclr,chaos7theory/coreclr,cmckinsey/coreclr,ruben-ayrapetyan/coreclr,JonHanna/coreclr,martinwoodward/coreclr,misterzik/coreclr,wkchoy74/coreclr,bartdesmet/coreclr,dkorolev/coreclr,apanda/coreclr,andschwa/coreclr,dpodder/coreclr,GuilhermeSa/coreclr,josteink/coreclr,jhendrixMSFT/coreclr,alexperovich/coreclr,sjsinju/coreclr,benpye/coreclr,mmitche/coreclr,wkchoy74/coreclr,Samana/coreclr,serenabenny/coreclr,ramarag/coreclr,mocsy/coreclr,parjong/coreclr,neurospeech/coreclr,blackdwarf/coreclr,lzcj4/coreclr,xoofx/coreclr,vinnyrom/coreclr,fffej/coreclr,dkorolev/coreclr,sejongoh/coreclr,serenabenny/coreclr,chenxizhang/coreclr,taylorjonl/coreclr,mokchhya/coreclr,mmitche/coreclr,swgillespie/coreclr,JonHanna/coreclr,krk/coreclr,wtgodbe/coreclr,jakesays/coreclr,sjsinju/coreclr,Sridhar-MS/coreclr,GuilhermeSa/coreclr,hseok-oh/coreclr,bitcrazed/coreclr,alexperovich/coreclr,SlavaRa/coreclr,cmckinsey/coreclr,SlavaRa/coreclr,stormleoxia/coreclr,Dmitry-Me/coreclr,ZhichengZhu/coreclr,mskvortsov/coreclr,bartonjs/coreclr,manu-silicon/coreclr,chenxizhang/coreclr,hanu412/coreclr,OryJuVog/coreclr,yeaicc/coreclr,shahid-pk/coreclr,hanu412/coreclr,richardlford/coreclr,qiudesong/coreclr,ramarag/coreclr,SpotLabsNET/coreclr,dasMulli/coreclr,ramarag/coreclr,bjjones/coreclr,josteink/coreclr,swgillespie/coreclr,Alcaro/coreclr,david-mitchell/coreclr,swgillespie/coreclr,fffej/coreclr,chaos7theory/coreclr,JonHanna/coreclr,parjong/coreclr,iamjasonp/coreclr,poizan42/coreclr,naamunds/coreclr,DasAllFolks/coreclr,fernando-rodriguez/coreclr,sejongoh/coreclr,spoiledsport/coreclr,DasAllFolks/coreclr,taylorjonl/coreclr,Godin/coreclr,GuilhermeSa/coreclr,stormleoxia/coreclr,yizhang82/coreclr,ruben-ayrapetyan/coreclr,ragmani/coreclr,ytechie/coreclr,JosephTremoulet/coreclr,geertdoornbos/coreclr,jhendrixMSFT/coreclr,YongseopKim/coreclr,stormleoxia/coreclr,geertdoornbos/coreclr,qiudesong/coreclr,serenabenny/coreclr,alexperovich/coreclr,bjjones/coreclr,russellhadley/coreclr,ramarag/coreclr,roncain/coreclr,yizhang82/coreclr,ramarag/coreclr,taylorjonl/coreclr,blackdwarf/coreclr,ZhichengZhu/coreclr,sperling/coreclr,apanda/coreclr,gkhanna79/coreclr,krixalis/coreclr,grokys/coreclr,bartonjs/coreclr,DickvdBrink/coreclr,chuck-mitchell/coreclr,sergey-raevskiy/coreclr,kyulee1/coreclr,sperling/coreclr,hanu412/coreclr,AlfredoMS/coreclr,roncain/coreclr,gkhanna79/coreclr,orthoxerox/coreclr,sagood/coreclr,ytechie/coreclr,wtgodbe/coreclr,serenabenny/coreclr,OryJuVog/coreclr,shahid-pk/coreclr,orthoxerox/coreclr,KrzysztofCwalina/coreclr,neurospeech/coreclr,ragmani/coreclr,ktos/coreclr,Djuffin/coreclr,cydhaselton/coreclr,schellap/coreclr,jamesqo/coreclr,zmaruo/coreclr,naamunds/coreclr,LLITCHEV/coreclr,Sridhar-MS/coreclr,schellap/coreclr,blackdwarf/coreclr,jakesays/coreclr,ragmani/coreclr,ktos/coreclr,kyulee1/coreclr,martinwoodward/coreclr,AlfredoMS/coreclr,mskvortsov/coreclr,Dmitry-Me/coreclr,Godin/coreclr,hseok-oh/coreclr,apanda/coreclr,zmaruo/coreclr,krk/coreclr,sagood/coreclr,taylorjonl/coreclr,chuck-mitchell/coreclr,cshung/coreclr,jhendrixMSFT/coreclr,jamesqo/coreclr,mokchhya/coreclr,richardlford/coreclr,hseok-oh/coreclr,mocsy/coreclr,naamunds/coreclr,xtypebee/coreclr,sperling/coreclr,manu-silicon/coreclr,gkhanna79/coreclr,ramarag/coreclr,ytechie/coreclr,orthoxerox/coreclr,ytechie/coreclr,dpodder/coreclr,fffej/coreclr,Sridhar-MS/coreclr,spoiledsport/coreclr,lzcj4/coreclr,DasAllFolks/coreclr,Alcaro/coreclr,sergey-raevskiy/coreclr,SlavaRa/coreclr,misterzik/coreclr,tijoytom/coreclr,spoiledsport/coreclr,SpotLabsNET/coreclr,ruben-ayrapetyan/coreclr,xoofx/coreclr,LLITCHEV/coreclr,ganeshran/coreclr,bitcrazed/coreclr,andschwa/coreclr,cmckinsey/coreclr,perfectphase/coreclr,pgavlin/coreclr,cydhaselton/coreclr,jakesays/coreclr,vinnyrom/coreclr,roncain/coreclr,ericeil/coreclr,sagood/coreclr,gkhanna79/coreclr,naamunds/coreclr,bitcrazed/coreclr,shahid-pk/coreclr,sjsinju/coreclr,MCGPPeters/coreclr,JosephTremoulet/coreclr,blackdwarf/coreclr,AlfredoMS/coreclr,wateret/coreclr,david-mitchell/coreclr,schellap/coreclr,gitchomik/coreclr,martinwoodward/coreclr,yeaicc/coreclr,matthubin/coreclr,xtypebee/coreclr,dasMulli/coreclr,DasAllFolks/coreclr,krytarowski/coreclr,pgavlin/coreclr,Dmitry-Me/coreclr,ericeil/coreclr,botaberg/coreclr,fernando-rodriguez/coreclr,poizan42/coreclr,SpotLabsNET/coreclr,sperling/coreclr,krk/coreclr,bartonjs/coreclr,neurospeech/coreclr,grokys/coreclr,KrzysztofCwalina/coreclr,Godin/coreclr,libengu/coreclr,lzcj4/coreclr,KrzysztofCwalina/coreclr,sagood/coreclr,sjsinju/coreclr,jakesays/coreclr,hseok-oh/coreclr,Samana/coreclr,naamunds/coreclr,cmckinsey/coreclr,wtgodbe/coreclr,AlfredoMS/coreclr,dpodder/coreclr,wtgodbe/coreclr,xtypebee/coreclr,DickvdBrink/coreclr,iamjasonp/coreclr,dpodder/coreclr,naamunds/coreclr,chrishaly/coreclr,chenxizhang/coreclr,gkhanna79/coreclr,grokys/coreclr,vinnyrom/coreclr,wtgodbe/coreclr,xoofx/coreclr,krixalis/coreclr,cmckinsey/coreclr,libengu/coreclr,libengu/coreclr,wkchoy74/coreclr,kyulee1/coreclr,mskvortsov/coreclr,ZhichengZhu/coreclr,josteink/coreclr,Dmitry-Me/coreclr,ragmani/coreclr,chrishaly/coreclr,MCGPPeters/coreclr,chuck-mitchell/coreclr,Alcaro/coreclr,wateret/coreclr,swgillespie/coreclr,yeaicc/coreclr,misterzik/coreclr,mocsy/coreclr,Samana/coreclr,neurospeech/coreclr,ruben-ayrapetyan/coreclr,AlexGhiondea/coreclr,cshung/coreclr,pgavlin/coreclr,shana/coreclr,mokchhya/coreclr,SpotLabsNET/coreclr,LLITCHEV/coreclr,mokchhya/coreclr,grokys/coreclr,benpye/coreclr,richardlford/coreclr,josteink/coreclr,russellhadley/coreclr,iamjasonp/coreclr,sperling/coreclr,tijoytom/coreclr,apanda/coreclr,rartemev/coreclr,Lucrecious/coreclr,hseok-oh/coreclr,Lucrecious/coreclr,dkorolev/coreclr,Djuffin/coreclr,naamunds/coreclr,geertdoornbos/coreclr,yeaicc/coreclr,martinwoodward/coreclr,ktos/coreclr,iamjasonp/coreclr,bartonjs/coreclr,parjong/coreclr,poizan42/coreclr,botaberg/coreclr,krixalis/coreclr,parjong/coreclr,vinnyrom/coreclr,bjjones/coreclr,hanu412/coreclr,iamjasonp/coreclr,mokchhya/coreclr,DickvdBrink/coreclr,ktos/coreclr,MCGPPeters/coreclr,alexperovich/coreclr,yizhang82/coreclr,poizan42/coreclr,qiudesong/coreclr,ktos/coreclr,dasMulli/coreclr,krixalis/coreclr