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 vstinner
Recipients barry, benjamin.peterson, christian.heimes, ctheune, ebfe, gvanrossum, hynek, jcea, pitrou, vstinner
Date 2013-10-10.23:11:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381446663.51.0.495607109429.issue16381@psf.upfronthosting.co.za>
In-reply-to
Content
This issue is maybe a new usecase of the PEP 445.

Try attached Python module fatalmalloc.c, use attached setup.py script to build it.

$ python3.4 -c 'import fatalmalloc; x="x"*(50*1024*1024); print(len(x))'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
MemoryError

$ python3.4 -c 'import fatalmalloc; fatalmalloc.enable(); x="x"*(50*1024*1024)'
$ echo $?
1
History
Date User Action Args
2013-10-10 23:11:03vstinnersetrecipients: + vstinner, gvanrossum, barry, jcea, ctheune, pitrou, christian.heimes, benjamin.peterson, ebfe, hynek
2013-10-10 23:11:03vstinnersetmessageid: <1381446663.51.0.495607109429.issue16381@psf.upfronthosting.co.za>
2013-10-10 23:11:03vstinnerlinkissue16381 messages
2013-10-10 23:11:03vstinnercreate