➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 Michael.Felt
收信人 Michael.Felt, matrixise, miss-islington, ned.deily, ronaldoussoren, steve.dower, vstinner
日期 2019-08-02.09:52:26
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1564739546.32.0.528055045668.issue18049@roundup.psfhosted.org>
In-reply-to
内容
Going to take a stab in the dark - the the issue lies here:

"./Python/errors.c"
#ifndef Py_NORMALIZE_RECURSION_LIMIT
#define Py_NORMALIZE_RECURSION_LIMIT 32
#endif

As there is not enough memory for this to run in the default memory model.

However, 32 does not seem to be a counter limit:

With this "hack" I get success:

        script = """if True:
            import threading

            def recurse(loop=0):
                loop = loop+1
                if loop < 128+32+8+3:
                    return recurse(loop)
                else:
                    return

            def outer():
                try:
                    recurse()
                except RecursionError:
                    pass

            w = threading.Thread(target=outer)
            w.start()
            w.join()
            print('end of main thread')
            """

So, I hope this helps point at where we need to look to find why RecursionError is not being returned when (I assume) memory runs out.
历史
日期 用户 动作 参数
2019-08-02 09:52:26Michael.Felt修改recipients: + Michael.Felt, ronaldoussoren, vstinner, ned.deily, steve.dower, matrixise, miss-islington
2019-08-02 09:52:26Michael.Felt修改messageid: <1564739546.32.0.528055045668.issue18049@roundup.psfhosted.org>
2019-08-02 09:52:26Michael.Felt链接issue18049 messages
2019-08-02 09:52:26Michael.Felt创建