Message17513
Logged In: YES
user_id=341410
>>> import sys
>>> sys.setrecursionlimit(10000)
>>> class foo:
... def __str__(self):
... return str(self)
...
>>> import threading
>>> threading.Thread(target=foo().__str__).start()
Kills 2.3, 2.4, and 2.5 on Windows, and 2.3 and 2.4 on linux
(I can't test 2.5 on linux). Running in the main thread on
Windows doesn't seem to be a big deal:
>>> import sys
>>> sys.setrecursionlimit(10000)
>>> class foo:
... def __str__(self):
... return str(self)
...
>>> try:
... str(foo())
... except Exception, why:
... print why
...
Stack overflow
>>>
Note that the above crashes 2.3 and 2.4 on Linux.
This is still a bug, at least in maintenance on 2.4.
Suggested reopen.
|
|
Date |
User |
Action |
Args |
2007-08-23 14:15:34 | admin | link | issue780714 messages |
2007-08-23 14:15:34 | admin | create | |
|