title: Segmentation fault (core dumped) when using larger boost-matrices
body: <p>If I run the code the error occurs:  <strong>Segmentation fault (core dumped)</strong>   </p>
  
  <p>The problem does not exist if I decrease the dimensions of MatSamplesDimM in the header-file (e.g. from 300000 to 30000) or if I just declare Matrix1 and not Matrix2 in the main-file. The problem is independent of environment in which I run the code (eclipse or from terminal).</p>
  
  <p>Do you have any ideas? Thank you very much for your help! </p>
  
  <p>StrangeBehavior.cpp is my main-File: </p>
  
  <pre><code>// System includes
  #include &lt;iostream&gt;
  #include &lt;fstream&gt;   //fstream: Stream class to both read and write from/to files; for output
  
  // Boost includes
  #include &lt;boost/numeric/ublas/vector.hpp&gt;
  #include &lt;boost/numeric/ublas/matrix.hpp&gt;
  #include &lt;boost/numeric/ublas/io.hpp&gt;
  #include &lt;boost/assign/list_of.hpp&gt;
  #include &lt;boost/math/distributions/normal.hpp&gt;      //to create normal distribution
  #include &lt;vector&gt;                                   // stl vector header
  #include &lt;boost/accumulators/accumulators.hpp&gt;
  #include &lt;boost/accumulators/statistics/stats.hpp&gt;  //accumulator for mean, variance...
  #include &lt;boost/accumulators/statistics/mean.hpp&gt;
  #include &lt;boost/bind/bind.hpp&gt;
  #include &lt;boost/numeric/ublas/vector_proxy.hpp&gt;     // for using row()...
  #include &lt;boost/numeric/ublas/matrix_proxy.hpp&gt;     // for using row()...
  #include &lt;boost/numeric/ublas/vector_expression.hpp&gt;   // for using inner_prod
  #include &lt;boost/numeric/ublas/matrix_expression.hpp&gt;   // for using inner_prod, element_div
  #include &lt;boost/math/special_functions/gamma.hpp&gt; // for Gamma function
  
  #include "ParameterDeclaration.hpp"
  
  using namespace std; // saves us typing std:: before vector
  
  
  int main() {
  
      std::cout &lt;&lt; "Starting " &lt;&lt; std::endl;
  
            MatSamplesDimM    Matrix1;
            MatSamplesDimM    Matrix2;
  
      std::cout &lt;&lt; "Finishing" &lt;&lt; std::endl;
      return 0;
  }
  </code></pre>
  
  <p>and ParameterDeclaration.hpp my header-File:</p>
  
  <pre><code>#ifndef parameter_
  #define parameter_
  
  
  #include &lt;iostream&gt;
  
  namespace ublas = boost::numeric::ublas;
  
  typedef     ublas::bounded_matrix&lt;double,300000,2&gt;        MatSamplesDimM;
  
  
  #endif
  </code></pre>