Re: MemoryError vs malloc error

2011-07-16 Thread Dan Stromberg
python process (running on freebsd). Sometimes when it > uses too much memory it core dumps. I would've expected it to raise > MemoryError. Normally, when would a python process raise MemoryError and > when would it fail with malloc error and cores? This is happening in pure > pyt

MemoryError vs malloc error

2011-07-15 Thread Amit Dev
Hi, I've a long running python process (running on freebsd). Sometimes when it uses too much memory it core dumps. I would've expected it to raise MemoryError. Normally, when would a python process raise MemoryError and when would it fail with malloc error and cores? This is happeni

Re: [C-API] malloc error in PyDict_New

2010-03-26 Thread Stefan Behnel
Jonas H., 26.03.2010 20:10: I'm currently diving into Python C programming and I have a problem with `PyDict_New`. My application receives a SIGABRT from malloc every time I execute `PyDict_New`. malloc throws the following error: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((

[C-API] malloc error in PyDict_New

2010-03-26 Thread Jonas H.
Hi there, I'm currently diving into Python C programming and I have a problem with `PyDict_New`. My application receives a SIGABRT from malloc every time I execute `PyDict_New`. malloc throws the following error: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &

Re: malloc (error code=12)

2009-01-22 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arash Arfaee wrote: > Very BIG Jesse It works on a huge Boolean function. > And thanks Roger. Do you think it will be solved if I run it over > another OS like windows? By far the simplest solution is to use a 64 bit process on a 64 bit operating

Re: malloc (error code=12)

2009-01-21 Thread Arash Arfaee
Very BIG Jesse It works on a huge Boolean function. And thanks Roger. Do you think it will be solved if I run it over another OS like windows? Cheers, Arash On Wed, Jan 21, 2009 at 7:19 PM, Jesse Noller wrote: > On Wed, Jan 21, 2009 at 9:38 PM, Arash Arfaee wrote: > > > > Hi All, > > > > I

Re: malloc (error code=12)

2009-01-21 Thread Jesse Noller
On Wed, Jan 21, 2009 at 9:38 PM, Arash Arfaee wrote: > > 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 (

Re: malloc (error code=12)

2009-01-21 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arash Arfaee wrote: > Python(15492,0xb0103000) malloc: *** mmap(size=393216) failed (error > code=12) errno 12 is ENOMEM on Macs (and Linux for that matter). You may have run out of swap space, but that is unlikely. The most likely cause is that you

malloc (error code=12)

2009-01-21 Thread Arash Arfaee
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 ha

Re: Malloc error

2008-05-17 Thread mankoff
other languages. > > Welcome...! > > > I'm Trying to get > > some legacy code to run on a newer machine. I don't have access to the > > legacy box for debugging. > > > I'm getting the following error: > > > Python(36979) malloc: *** error f

Re: Malloc error

2008-05-16 Thread Gabriel Genellina
't have access to the legacy box for debugging. I'm getting the following error: Python(36979) malloc: *** error for object 0x88374: Non-aligned pointer being freed *** set a breakpoint in malloc_error_break to debug Ouch. I'd like to think that the error doesn't come from

Malloc error

2008-05-16 Thread mankoff
t;copyright", "credits" or "license" for more information. >>> And this is on an Intel MacBook running 10.5.2 The error is getting printed hundreds of times until I CTRL+C at which point I see: Python(36979) malloc: *** error for object 0xa58074: Non-align

Re: malloc error for newbie

2007-07-07 Thread David
On Jul 7, 6:27 am, John Machin <[EMAIL PROTECTED]> wrote: > On Jul 7, 4:59 pm, David <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Very new to python. When I uncomment the line > > #self.im.putpalette(mkpalette()) > > Try to focus in on where the nasty is happening: > >p = mkpalette() >

Re: malloc error for newbie

2007-07-07 Thread John Machin
On Jul 7, 4:59 pm, David <[EMAIL PROTECTED]> wrote: > Hi, > > Very new to python. When I uncomment the line > #self.im.putpalette(mkpalette()) Try to focus in on where the nasty is happening: p = mkpalette() # self.im.putpalette(p) > in the following code, I get the error: > > pyt

malloc error for newbie

2007-07-07 Thread David
Hi, Very new to python. When I uncomment the line #self.im.putpalette(mkpalette()) in the following code, I get the error: python $ ./mandelbrot.py Python(2860) malloc: *** Deallocation of a pointer not malloced: 0xff00; This could be a double free(), or free() called with the middle