Re: [Python-Dev] Preventing recursion core dumps
Isn't the solution to this problem to just implement PyOS_CheckStack() for unix? I assume you can implement it fairly cheaply by having the first call compute a stack warning address and subsequent calls simply checking that the stack hasn't extended below the limit yet. It might also be needed to add a few more PyOS_CheckStack() calls here and there, but I think most of them are in place. -- Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++ Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++ www.oratrix.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm
-----Original Message----- From: python-dev-admin@python.org [mailto:python-dev-admin@python.org]On Behalf Of Jack Jansen Sent: 14 August 2000 10:45 To: Guido van Rossum Cc: Vladimir Marangozov; Python core developers Subject: Re: [Python-Dev] Preventing recursion core dumps
Isn't the solution to this problem to just implement PyOS_CheckStack() for unix?
And for Windows... I still want to control the recursion depth for other reasons than preventing crashes. Especially when I have embedded Python inside my app. (CUrrently I have to defend against a GPF under windows when def x(): x() is called.) Barry
participants (2)
-
Barry Scott -
Jack Jansen