[issue2733] mmap resize fails on anonymous memory (Windows)

Kathryn M Kowalski report at bugs.python.org
Thu May 1 19:04:17 CEST 2008


New submission from Kathryn M Kowalski <kathy.kowalski at ae.ge.com>:

We have a shared memory module that has been running fine on Windows 
with Active State Python 2.4.3 Build 12.  On machines with 2.5.1.1 
mmap.resize fails on an existing anonymous shared memory.  The attached 
file is a stripped down version of the code to illustrate the problem.  
Start it running in one window to create the shared memory, then in 
another window run it again to hook into existing shared memory. Result:
Testing SharedMemory
open -self.memory_size 336
Traceback (most recent call last):
  File "C:/home/weather/TESTOF~1.PY", line 164, in <module>
    example()
  File "C:/home/weather/TESTOF~1.PY", line 147, in example
    sm = SharedMemory( 'my_shared_memory')
  File "C:/home/weather/TESTOF~1.PY", line 31, in __init__
    self.__open()
  File "C:/home/weather/TESTOF~1.PY", line 94, in __open
    self.memory.resize(self.memory_size)
WindowsError: [Error 8] Not enough storage is available to process this 
command

----------
components: Library (Lib)
files: testofResizeB.txt
messages: 66036
nosy: kmk
severity: normal
status: open
title: mmap resize fails on anonymous memory (Windows)
type: crash
versions: Python 2.5
Added file: http://bugs.python.org/file10151/testofResizeB.txt

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2733>
__________________________________


More information about the Python-bugs-list mailing list