[issue12071] test_concurrent_futures.test_context_manager_shutdown() hangs on OpenIndiana

Charles-François Natali report at bugs.python.org
Sat May 14 09:22:07 CEST 2011


Charles-François Natali <neologix at free.fr> added the comment:

This makes sense.
I was suspecting a system limit exhaustion, maybe OOM or maximum number of threads, something like that.
But at least on Linux, in OOM condition, the process would either get nuked by the OOM-killer, or pthread_create would bail out with ENOMEM (when allocating the stack for example), so we would be able to - somewhat - catch the error and get an exception (well, OOM condition is also often a sort of "undefined behaviour", so we can't really make a guarantee on the state of the interpreter when it's hit).
Out of curioisity, could you try the attached test to see how it behaves on your VM?
Usage: ./test_thread_oom <number of threads to create>
On Linux it fails with ENOMEM "Resource temporarily unavailable".

----------
Added file: http://bugs.python.org/file21998/test_thread_oom.c

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12071>
_______________________________________


More information about the Python-bugs-list mailing list