On 6/27/06, <b class="gmail_sendername">Thomas Wouters</b> &lt;<a href="mailto:thomas@python.org">thomas@python.org</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br><div></div><div><span class="e" id="q_10c16625048f0fdf_1"><span class="gmail_quote">On 6/27/06, <b class="gmail_sendername">Brett Cannon</b> &lt;<a href="mailto:brett@python.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
brett@python.org</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>If you look at that crasher, you will notice that recursion depth is set to 1 &lt;&lt; 30 before any code is run.&nbsp; If you remove that setting high setting and go with the default then the test doesn't crash and raises the appropriate RuntimeError.
<br><br>Setting the recursion depth to such a high number will crash the interpreter even when the proper recursion checks are in place.&nbsp; This doesn't seem like a legit crasher to me if it requires an insane recursion depth that would crash almost any C program that had recursion in it.
<br><br>Anyone have any objections if I call foul on the test and remove it without any changes to Python?</div></blockquote></span></div><div><div><br>Well, it's a valid crasher. It crashes Python to recurse too much. The recursion limit was added to CPython to prevent the crash from happening too easily, but that limit is just an implementation detail (and furthermore, the actual limit is just guessed.) It's not like a real solution is impossible, it's just very complex. Much like, say, 
restricted execution :-)</div></div></div></blockquote><div><br>OK, let me rephrase: I don't feel like fixing this if the proper thing happens when the default recursion depth is in place.&nbsp; There are a ton of other recursion issues if you set the recursion depth to 1,073,741,824.&nbsp; One could try to make the interpreter non-recursive or stackless, but I leave that to people who are smarter than me.&nbsp; =)
<br><br>And so, with that view, I don't see the test as something that needs special attention that is brought by being in crashers since I suspect that one will sit there forever.&nbsp; =)<br><br>-Brett<br></div><div><br>Hi! I'm a .signature virus! copy me into your .signature file to help me spread!


</div></div><br>