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: mmap segfault
Type: crash Stage: resolved
Components: Extension Modules Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: amaury.forgeotdarc, loewis, pitrou, r.david.murray, rosslagerwall
Priority: normal Keywords: patch

Created on 2011年01月15日 15:18 by rosslagerwall, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
mmap.patch rosslagerwall, 2011年01月15日 15:18
Messages (3)
msg126334 - (view) Author: Ross Lagerwall (rosslagerwall) (Python committer) Date: 2011年01月15日 15:18
If a mmap length 0 is used and an offset is used as well, the size to mmap() is calculated as the size of the file instead of the size of the file minus offset. This means that trying to access a certain part does not result in an index error but a segfault (bus error).
Attached is a patch that fixes the issue + a unit test.
msg126337 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011年01月15日 16:19
Thanks for the patch. Committed in r88022 (3.2), r88023 (3.1) and r88024 (2.7).
msg126343 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011年01月15日 17:40
It also needed fixing on Windows: committed in r88036, r88037 and r88038.
History
Date User Action Args
2022年04月11日 14:57:11adminsetgithub: 55125
2011年01月15日 17:40:16pitrousetnosy: loewis, amaury.forgeotdarc, pitrou, r.david.murray, rosslagerwall
messages: + msg126343
2011年01月15日 16:19:28pitrousetstatus: open -> closed
nosy: loewis, amaury.forgeotdarc, pitrou, r.david.murray, rosslagerwall
messages: + msg126337

resolution: fixed
stage: resolved
2011年01月15日 15:18:57rosslagerwallcreate

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