homepage

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.

classification
Title: obmalloc: mmap() returns MAP_FAILED on error, not 0
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: neologix, pitrou, python-dev, vstinner
Priority: normal Keywords: patch

Created on 2012年03月09日 00:17 by vstinner, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
obmalloc_map_failed.patch vstinner, 2012年03月09日 00:17 review
Messages (3)
msg155192 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012年03月09日 00:17
Python fails to catch memory allocation error in its memory allocator when mmap() is used. Attached patch fixes the issue.
msg155239 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012年03月09日 16:20
Ha, good catch. Indeed, under Linux MMAP_FAILED seems to be ((void *) -1).
msg155271 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012年03月09日 23:21
New changeset ba8f85e16dd9 by Victor Stinner in branch 'default':
Close #14232: catch mmap() failure in new_arena() of obmalloc
http://hg.python.org/cpython/rev/ba8f85e16dd9 
History
Date User Action Args
2022年04月11日 14:57:27adminsetgithub: 58440
2012年03月09日 23:21:41python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg155271

resolution: fixed
stage: commit review -> resolved
2012年03月09日 16:20:04pitrousettype: behavior
messages: + msg155239
stage: commit review
2012年03月09日 00:17:59vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /