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.

Author neologix
Recipients jcea, neologix, pitrou, vstinner
Date 2011-05-14.07:22:06
SpamBayes Score 2.5190156e-10
Marked as misclassified No
Message-id <1305357727.67.0.917561703796.issue12071@psf.upfronthosting.co.za>
In-reply-to
Content
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".
History
Date User Action Args
2011-05-14 07:22:07neologixsetrecipients: + neologix, jcea, pitrou, vstinner
2011-05-14 07:22:07neologixsetmessageid: <1305357727.67.0.917561703796.issue12071@psf.upfronthosting.co.za>
2011-05-14 07:22:07neologixlinkissue12071 messages
2011-05-14 07:22:06neologixcreate