title: Creation of a large std::array causes segfault?
body: <p>I want to create a large <code>std::array</code> and fill it with random data. The problem is that if I declare std::array program segfaults (GDB says it segfaults on <code>auto start..</code>) if i comment array declaration program runs. </p>
  
  <p>Here is SCSE: </p>
  
  <pre><code>#include &lt;array&gt;
  #include &lt;cstdint&gt;
  #include &lt;iostream&gt;
  #include &lt;chrono&gt;
  
  static const constexpr size_t size = 1E7;
  
  int main(){
  
      auto start = std::chrono::high_resolution_clock::now();
      std::array&lt;uint16_t, size&gt; random_data;
      // Here I want to fill random_data with random numbers to avoid 
      // filling memory twice
      auto end = std::chrono::high_resolution_clock::now();
      std::chrono::duration&lt;double&gt; elapsed = end-start;
      std::cout &lt;&lt; "Elapsed sec " &lt;&lt; elapsed.count() &lt;&lt; std::endl;
  
  }
  </code></pre>
  
  <p>It is compiled in gcc using <code>-std=gnu++11</code> on GNU/Linux. </p>