caffe icon indicating copy to clipboard operation
caffe copied to clipboard

segmentation fault(core dumped)

Open LiquidE3 opened this issue 10 years ago • 1 comments

Hello everyone,

I encountered a problem, troubled for a long time.Could anyone help me?

previously I set up a development environment based on Yangqing Jia's website(http://caffe.berkeleyvision.org/).

Then I trained my caffemodel based on setting up my images1 and label.txt2

Now I want to classify my image for recognition, and I use lenet to test.

Caffe User cpp file

https://groups.google.com/forum/#!topic/caffe-users/tMwpaf3s8GQ

the code => http://codepad.org/SkFxxPOH

the linking address I use the code and compiler is no problem,but it says 程式記憶體區段錯誤segmentation fault(core dumped) when the "AddMatVector" funtion is execution in the cpp file.

here is my code. http://codepad.org/NhkcfMIu

If my description is not clear enough, I will make it clearly. Thank you.

LiquidE3 avatar Mar 07 '16 16:03 LiquidE3

From https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md:

When reporting a bug, it's most helpful to provide the following information, where applicable:

  • What steps reproduce the bug?
  • Can you reproduce the bug using the latest master, compiled with the DEBUG make option?
  • What hardware and operating system/distribution are you running?
  • If the bug is a crash, provide the backtrace (usually printed by Caffe; always obtainable with gdb).

seanbell avatar Mar 07 '16 16:03 seanbell