Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

MTCNN segmentation fault with latest intel-caffe but works fine with intel-caffe-1.0.3 release #280

Open
ingjieye opened this issue May 8, 2019 · 0 comments

Comments

@ingjieye
Copy link

ingjieye commented May 8, 2019

Step to reproduce the issue:

  1. build the latest intel-caffe:
git clone https://github.com/intel/caffe
mkdir build
cd build
cmake .. -DUSE_MLSL=OFF
make -j4
make install -j4
  1. clone the https://github.com/DaFuCoding/MTCNN_Caffe, compile MTCNN_Caffe/examples/MTSrc/MTMain.cpp with previously built intel-caffe
  2. run MTMain.cpp with /MTCNN_Caffe/examples/MTmodel/ MTCNN model

will give a segmentation fault. gdb back trace:

(gdb) bt
#0  _int_malloc (av=av@entry=0x7ffff5925b20 <main_arena>, bytes=bytes@entry=3711960)
    at malloc.c:3622
#1  0x00007ffff55e5184 in __GI___libc_malloc (bytes=3711960) at malloc.c:2913
#2  0x00007fffe8c1199a in mkl_serv_malloc ()
   from /home/yeyj/dev/source_code/intel-caffe/./external/mkl/mklml_lnx_2019.0.1.20180928//lib/libmklml_intel.so
#3  0x00007ffff67b9e52 in caffe::SyncedMemory::mutable_cpu_data() ()
   from /home/yeyj/dev/source_code/intel-caffe/build/install/lib/libcaffe.so.1.1.5
#4  0x00007ffff645bd02 in caffe::Blob<float>::mutable_cpu_data() ()
   from /home/yeyj/dev/source_code/intel-caffe/build/install/lib/libcaffe.so.1.1.5
#5  0x00007ffff6565b59 in caffe::PReLULayer<float>::Forward_cpu(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&) ()
   from /home/yeyj/dev/source_code/intel-caffe/build/install/lib/libcaffe.so.1.1.5
#6  0x00007ffff6413832 in caffe::Net<float>::ForwardFromTo(int, int) ()
   from /home/yeyj/dev/source_code/intel-caffe/build/install/lib/libcaffe.so.1.1.5
#7  0x00007ffff6413a7c in caffe::Net<float>::Forward(float*) ()
   from /home/yeyj/dev/source_code/intel-caffe/build/install/lib/libcaffe.so.1.1.5
#8  0x0000000000414300 in MTCNN::Detect (this=0x7fffffffde60, image=...,
    faceInfo=std::vector of length 0, capacity 0, minSize=40, threshold=0x7fffffffdf20,
    factor=0.70899999999999996) at /home/yeyj/dev/mtcnn_caffe/src/main.cpp:534
#9  0x0000000000414b13 in main (argc=3, argv=0x7fffffffe138)
    at /home/yeyj/dev/mtcnn_caffe/src/main.cpp:601
(gdb)

How ever, when I compile it with intel-caffe-1.0.3 release, every thing works fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant