classification
Title: mmap resize fails on anonymous memory (Windows)
Type: crash
Components: Library (Lib) Versions: Python 2.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Trent.Nelson, amaury.forgeotdarc, kmk
Priority: Keywords:

Created on 2008-05-01 17:04 by kmk, last changed 2008-05-02 16:11 by Trent.Nelson.

Files
File name Uploaded Description Edit Remove
testofResizeB.txt kmk, 2008-05-01 17:04 Stripped down code to illustrate resize fail
testofResize.py.txt kmk, 2008-05-02 15:58
Messages
msg66036 (view) Author: Kathryn M Kowalski (kmk) Date: 2008-05-01 17:04
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
msg66044 (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) Date: 2008-05-01 21:01
It seems that you attached the output file instead of a python script...
msg66097 (view) Author: Kathryn M Kowalski (kmk) Date: 2008-05-02 15:58
sorry
History
Date User Action Args
2008-05-02 16:11:51Trent.Nelsonsetnosy: + Trent.Nelson
2008-05-02 15:58:11kmksetfiles: + testofResize.py.txt
messages: + msg66097
2008-05-01 21:01:10amaury.forgeotdarcsetnosy: + amaury.forgeotdarc
messages: + msg66044
2008-05-01 17:04:16kmkcreate