caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Abort when exit from ipython

Open yqbeyond opened this issue 8 years ago • 0 comments

I have compiled caffe successfully on mac os 10.13.3. but when I import caffe and then exit from ipython, it aborts unexceptedly, as well as other python REPL.

I haven't read caffe source code, but I think it might be a "memory leak".

➜  caffe git:(master) ✗ ipython
Python 2.7.14 (default, Feb  6 2018, 20:04:00)
Type "copyright", "credits" or "license" for more information.

IPython 5.5.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import caffe

In [2]: exit
src/tcmalloc.cc:331] Attempt to free invalid pointer 0x7fa2ce11f600
[1]    4293 abort      ipython
➜  caffe git:(master) ✗

yqbeyond avatar Feb 12 '18 02:02 yqbeyond