IronLanguages / main

Work for this repo has moved to https://github.com/IronLanguages/ironpython2
1.16k stars 347 forks source link

SimpleHTTPServer import causes stack overflow #1628

Closed jpmaterial closed 7 years ago

jpmaterial commented 7 years ago

The simple act of importing SimpleHTTPServer causes a stack overflow. I'm on Windows 10. It's the same under cmd.exe, PowerShell and MinGW. This is my complete console output:

IronPython 2.7.7 (2.7.7.0) on .NET 4.0.30319.42000 (64-bit)
Type "help", "copyright", "credits" or "license" for more information.
>>> import BaseHTTPServer
>>> import SimpleHTTPServer

Process is terminated due to StackOverflowException.
slide commented 7 years ago

I just tried this on my codebase that has this fix in it #1625 and I don't see the StackOverflowException.

jpmaterial commented 7 years ago

That's good. When will the next release with this fix be?

slide commented 7 years ago

I'd like to do one within the next couple of weeks.

slozier commented 7 years ago

@slide I don't think this one is related to #1625. I can reproduce over here on 64-bit (although only intermittently).

slide commented 7 years ago

Ok, we can continue to look into it of course.

slozier commented 7 years ago

May be related to #1070.

slozier commented 7 years ago

Did a bit of digging and boiled it down to the following repro:

def test_gh1628():
    def error():
        raise Exception()

    for _ in xrange(100000):
        try:
            error()
        except Exception:
            continue

This seems to fail somewhat consistently for me when run with ipy64.

jpmaterial commented 7 years ago

Bingo, that reproduction produces a stack overflow for me too.

slozier commented 7 years ago

I think this is the same issue as #1570

slide commented 7 years ago

This issue was moved to IronLanguages/ironpython2#40