Ishitori opened a new issue #9814: C++ Convolution layer usage produces 
"Segmentation fault"
URL: https://github.com/apache/incubator-mxnet/issues/9814
 
 
   ## Description
   Compiled version 1.1.0 C++ package with `make -j USE_OPENCV=0 
USE_CPP_PACKAGE=1` on Mac and trying to run LeNet example. Fails with 
Segmentation fault exeception
   
   ### Package used (Python/R/Scala/Julia):
   C++ package
   
   ## Build info (Required if built from source)
   ### Compiler
   g++
   Configured with: --prefix=/Library/Developer/CommandLineTools/usr 
--with-gxx-include-dir=/usr/include/c++/4.2.1
   Apple LLVM version 9.0.0 (clang-900.0.39.2)
   Target: x86_64-apple-darwin16.7.0
   Thread model: posix
   
   ### MXNet commit hash:
   Version 1.1.0 - 07a83a0325a3d782513a04f47d711710972cb144
   
   ### Build config:
   Taken by default from sources of that hash
   
   ## Error Message:
   No stack trace returned. Here is what I see on terminal:
   ```
   [1]    77873 segmentation fault  ./main 
   ```
   
   ## Minimum reproducible example
   ```
   #include "mxnet-cpp/MxNetCpp.h"
   using namespace mxnet::cpp;
   
   int main(int argc, char const *argv[]) {
     Symbol data = Symbol::Variable("data");
     Symbol conv1_w("conv1_w"), conv1_b("conv1_b");
     Symbol conv1 = Convolution("conv1", data, conv1_w, conv1_b, Shape(5, 5), 
20);
     return 0;
   ```
   ## Steps to reproduce
   (Paste the commands you ran that produced the error.)
   
   1. Compile with all libraries 
   2. Run sample code
   
   ## What have you tried to solve it?
   
   1. I looked at 
[dmlc](https://github.com/dmlc/MXNet.cpp/commit/b54ba371784b48f652930ff3210ff98a9ae12eb6)
 who were fixing similar problem, but adding `MXNotifyShutdown();` didn't help
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to