title: cygwin_exception::open_stackdumpfile: Dumping stack trace to *.exe.stackdump
body: <p>I am getting "cygwin_exception::open_stackdumpfile: Dumping stack trace to TestProject.exe.stackdump" error. My project is nothing but a C++ HalloWorld project that contains an additional class in which I set and get a variable. I am getting this error at the line I try to set a matrix variable of type Eigen. Here is my code:</p>
  
  <p>TestProject.cpp</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "TestClass.hpp"
  
  using namespace std;
  
  int main() {
      cout &lt;&lt; "!!!Hello World!!!" &lt;&lt; endl; // prints !!!Hello World!!!
      TestClass testClass;
      Eigen::MatrixXd XX = testClass.getVariable();
      cout &lt;&lt; "X = " &lt;&lt; XX;
      return 0;
  }
  </code></pre>
  
  <p>TestClass.hpp:</p>
  
  <pre><code>#ifndef TESTCLASS_HPP_
  #define TESTCLASS_HPP_
  #include &lt;Eigen/Core&gt;
  #include &lt;Eigen/Eigenvalues&gt;
  #include &lt;unsupported/Eigen/MatrixFunctions&gt;
  #include &lt;Eigen/Geometry&gt;
  
  
  class TestClass {
  private:
      Eigen::MatrixXd X;
  
  public:
      TestClass();
      void setVariable(Eigen::MatrixXd);
      Eigen::MatrixXd getVariable();
      virtual ~TestClass();
  };
  
  
  #endif /* TESTCLASS_HPP_ */
  </code></pre>
  
  <p>and finally the TestClass.cpp:</p>
  
  <pre><code>#include "TestClass.hpp"
  
  using namespace std;
  
  TestClass::TestClass() {
      X &lt;&lt; 0, 1, 2;
  
  }
  
  TestClass::~TestClass() {
      // TODO Auto-generated destructor stub
  }
  
  void TestClass::setVariable(Eigen::MatrixXd x){
      X = x;
  }
   /* namespace std */
  
  Eigen::MatrixXd TestClass::getVariable(){
      return X;
  }
  </code></pre>
  
  <p>The output I get in the Console is:</p>
  
  <pre><code>!!!Hello World!!!
        0 [main] TestProject 8416 cygwin_exception::open_stackdumpfile: Dumping stack trace to TestProject.exe.stackdump
  </code></pre>
  
  <p>It is worth mentioning that when I change the type of the class variable X (and all related types in the methods and the header file) into an integer I don't get this error and the code compiles and runs.</p>
  
  <p>I would appreciate any help since I didn't find useful info online.</p>
  
  <p>Thanks</p>