[issue14212] Segfault when using re.finditer over mmap

2012-03-07 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue14212] Segfault when using re.finditer over mmap

2012-03-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think 2.7 might be hopeless. -- nosy: +benjamin.peterson resolution: fixed -> stage: committed/rejected -> status: closed -> open ___ Python tracker ___

[issue14212] Segfault when using re.finditer over mmap

2012-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 10a79a33d09b by Benjamin Peterson in branch '3.2': keep the buffer object around while we're using it (closes #14212) http://hg.python.org/cpython/rev/10a79a33d09b New changeset 17dfe24e5107 by Benjamin Peterson in branch 'default': merge 3.2 (#142

[issue14212] Segfault when using re.finditer over mmap

2012-03-07 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue14212] Segfault when using re.finditer over mmap

2012-03-07 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue14212] Segfault when using re.finditer over mmap

2012-03-07 Thread Matthew Barnett
Matthew Barnett added the comment: In the function "getstring" in _sre.c, the code obtains a pointer to the characters of the buffer and then releases the buffer. There's a comment before the release: /* Release the buffer immediately --- possibly dangerous but doing something else

[issue14212] Segfault when using re.finditer over mmap

2012-03-06 Thread Matthew Barnett
Matthew Barnett added the comment: It segfaults because it attempts to access the buffer of an mmap that has been closed. It would be certainly be more friendly if it checked whether the mmap was still open and, if not, raised an exception instead. -- nosy: +mrabarnett __

[issue14212] Segfault when using re.finditer over mmap

2012-03-06 Thread Maciej Fijalkowski
New submission from Maciej Fijalkowski : Example to get a segfault attached. Crashes under python3 as well. -- files: x.py messages: 155028 nosy: fijall priority: normal severity: normal status: open title: Segfault when using re.finditer over mmap type: crash versions: Python 2.7 Added