weiliu89 / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
4.77k stars 1.68k forks source link

double free or corruption free error #296

Open trungtpham opened 7 years ago

trungtpham commented 7 years ago

Hi, I am trying to compile SSD under Ubuntu 16.04 and Cuda 8.0. The compilation works fine. But when I run "make runtest", it didn't succeed. I've got the following error. Do you have any idea?

Error in `.build_release/tools/caffe': double free or corruption (out): 0x0000000001498100 ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f21e64d57e5] /lib/x86_64-linux-gnu/libc.so.6(+0x7fe0a)[0x7f21e64dde0a] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f21e64e198c] /usr/lib/x86_64-linux-gnu/libprotobuf.so.9(_ZN6google8protobuf8internal28DestroyDefaultRepeatedFieldsEv+0x1f)[0x7f21e70118af] /usr/lib/x86_64-linux-gnu/libprotobuf.so.9(_ZN6google8protobuf23ShutdownProtobufLibraryEv+0x8b)[0x7f21e7010b3b] /usr/lib/x86_64-linux-gnu/libmirprotobuf.so.3(+0x20329)[0x7f21c7e42329] /lib64/ld-linux-x86-64.so.2(+0x10c17)[0x7f21e83f0c17] /lib/x86_64-linux-gnu/libc.so.6(+0x39ff8)[0x7f21e6497ff8] /lib/x86_64-linux-gnu/libc.so.6(+0x3a045)[0x7f21e6498045] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf7)[0x7f21e647e837] .build_release/tools/caffe[0x407f99]

Everything works fine with the Caffe Master branch.

Cheers, Trung

weiliu89 commented 7 years ago

Not sure what happens. You could try to make it again..

amlarraz commented 7 years ago

Me too...any idea?? Maybe is neccesary anaconda?

OyunfanO commented 7 years ago

This question is driving me mad, could any one help me?TAT.....

jontitalukdar commented 7 years ago

This issue is very similar and occurs while make runtest step. Do have a look. https://github.com/BVLC/caffe/issues/5282

novate commented 6 years ago

Thank you, @jontitalukdar, BVLC#5282 really helps. But the solution of modifying the source code makes it impossible to utilize anything with audio output on screen, due to disability of highgui. Now the best solution is to remake openCV with qt5 I think. What’s more, Here is something I suggest: when making openCV, I strongly suggest add -D WITH_GTK=NO, without this my computer will automatically build with gtk if it can find gtk packs on computer.

panecho commented 6 years ago

this may help #5777.