[IPython-dev] iptest memory leak on Mac

Brian Granger ellisonbg.net@gmail....
Tue Apr 14 14:02:48 CDT 2009


I just did a bzr pull from lp:ipython and am seeing the following
memory issue on my Mac.  This only occurs some of the time and I would
be surprised if any of the recent merges _caused_ this.  I am
wondering if there is a subtle bug in the cocoa stuff that is now
showing up.

Barry, any thoughts on this one?  Can you try to reproduce?

Thanks,

Brian

bgranger$ iptest
..........S.........................................................................................................................................................................................................................2009-04-14
10:56:28.812 Python[85670:260f] *** _NSAutoreleaseNoPool(): Object
0x27f1510 of class NSCFDictionary autoreleased with no pool in place -
just leaking
Stack: (0x94d7573f 0x94c81e32 0x16e31ea 0x16e3435 0x16d9a92 0x96c7f5ba
0x16fa14e 0x15ebfd 0x129812 0x15ce6f 0x15ce6f 0x13e376 0x148f5f
0x14ae15 0x1b6d80 0x1b6f52 0x1b7024 0x129516 0x125f1e 0x1264b0
0x18e5e8 0x191173 0x13b488 0x121505 0x129e3a 0x121505 0x18a82d
0x12606f 0x121505 0x18f832 0x191173 0x18f79d 0x18f700 0x18f700
0x191173 0x18f79d 0x191173 0x13b488 0x121505 0x18fcd0 0x191173
0x13b488 0x121505 0x18fcd0 0x191173 0x13b488 0x121505 0x18fcd0
0x191173 0x13b488 0x121505 0x18fcd0 0x18f700 0x191173 0x13b488
0x121505 0x129e3a 0x121505 0x18a82d 0x1b788f 0x937ad095 0x937acf52)
............................................................................................................................................................................................S....S...SS..SSS.............E....SSS
======================================================================
ERROR: Test that object's __del__ methods are called on exit.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/bgranger/Library/Python/2.5/site-packages/nose-0.10.4-py2.5.egg/nose/case.py",
line 182, in runTest
    self.test(*self.arg)
  File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/tests/test_magic.py",
line 85, in test_obj_del
    out = _ip.IP.getoutput('ipython %s' % del_file)
  File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/iplib.py",
line 694, in <lambda>
    verbose=self.rc.system_verbose)
  File "/Users/bgranger/Documents/Computation/IPython/Code/ipython/IPython/genutils.py",
line 411, in getoutput
    output = os.popen(cmd).read()
IOError: [Errno 4] Interrupted system call

----------------------------------------------------------------------
Ran 450 tests in 60.574s

FAILED (SKIP=11, errors=1)


More information about the IPython-dev mailing list