Re: MemoryError vs malloc error

2011-07-16 Thread Dan Stromberg
Is the whole program pure python? Sometimes a reference to undefined memory or a lack of error checking elsewhere in a program, can cause innocuous code to fail later: http://stromberg.dnsalias.org/~dstromberg/checking-early.html If the program uses ctypes, or an unusual Python/C API module, I'd

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 happening in pure pyth