[Python-Dev] 2.4 & 2.5 beta 3 crash
Dino Viehland
dinov at exchange.microsoft.com
Wed Aug 16 19:46:46 CEST 2006
Yeah, continue inside the finally block is illegal. If you don't have the extra try/except nesting then continue is detected as a syntax error.
-----Original Message-----
From: Dennis Allison [mailto:allison at shasta.stanford.edu]
Sent: Wednesday, August 16, 2006 10:22 AM
To: Josiah Carlson
Cc: Dino Viehland; python-dev at python.org
Subject: Re: [Python-Dev] 2.4 & 2.5 beta 3 crash
def test():
for abc in range(10):
try: pass
finally:
try:
pass
except:
pass
test()
does not raise a segmentation fault.
On Wed, 16 Aug 2006, Josiah Carlson wrote:
>
> Dino Viehland <dinov at exchange.microsoft.com> wrote:
> >
> > We've been working on fixing some exception handling bugs in
> > IronPython where we differ from CPython. Along the way we ran into
> > this issue which causes CPython to crash when the code below is run.
> > It crashes on both 2.4 and 2.5 beta 3. The code's technically
> > illegal, but it probably shouldn't crash either :)
>
> > def test():
> > for abc in range(10):
> > try: pass
> > finally:
> > try:
> > continue
> > except:
> > pass
> >
> >
> > test()
>
> It also reliably crashes 2.3, though I don't see anything in there as
> being illegal, but maybe I don't understand the langauge as well as I
> think I do.
>
> Note that there is another segfaulting bug in CPython with regards to
> threads that was recently closed, but which is still a problem:
> http://python.org/sf/780714
>
> Does IronPython survive in that case?
>
>
> - Josiah
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/allison%40shasta.sta
> nford.edu
>
--
More information about the Python-Dev
mailing list