malloc (error code=12)

Arash Arfaee erexsha at gmail.com
Wed Jan 21 21:38:26 EST 2009


Hi All,

I am writing a multiprocessing program using python 2.6. It works in most
cases, however when my input is large sometimes I get this message again and
again:

Python(15492,0xb0103000) malloc: *** mmap(size=393216) failed (error
code=12)
*** error: can't allocate region

and at the and I have these messages:


Python(15492,0xb0103000) malloc: *** mmap(size=393216) failed (error
code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Exception in thread Thread-2:
Traceback (most recent call last):
  File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py",
line 524, in __bootstrap_inner
    self.run()
  File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py",
line 479, in run
    self.__target(*self.__args, **self.__kwargs)
  File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/pool.py",
line 259, in _handle_results
    task = get()
MemoryError

Any idea what is wrong here? I didn't attached the code since it is a big
program and I don't know exactly which part of my program causes this error.
And since it is multiprocessing I can't debug it and run it line by line!

Thanks,
Arash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090121/b5771536/attachment.html>


More information about the Python-list mailing list