title: Setting the `min_alloc_size` for the constructor for `boost::pool<>` encounter segment fault whereas it works well without the said parameter?
body: <p>Why this code <a href="https://coliru.stacked-crooked.com/a/24bef50a2f3850cc" rel="nofollow noreferrer">snippet encounter</a> segment fault when setting the <code>min_alloc_size</code> for the constructor for <code>boost::pool&lt;&gt;</code> whereas it works well without setting the said parameter?</p>
  <p>Here is the code snippet:</p>
  <pre><code>#include &lt;boost/pool/pool.hpp&gt;
  #include &lt;iostream&gt;
  int main()
  {
      boost::pool&lt;&gt; pool_a(1024*128);
      boost::pool&lt;&gt; pool_b(1024*128, 5*1024*1024);
      auto get_mem_blk = [](boost::pool&lt;&gt;&amp; pool)
      {
          char* ptr = (char*)pool.ordered_malloc();
          pool.ordered_free(ptr);
          //memset(ptr, 0, 128 * 1024);
      };
      get_mem_blk(pool_a);   //works well
      std::cout &lt;&lt; &quot;pass first test&quot; &lt;&lt; std::endl;
      get_mem_blk(pool_b);   //segment fault!
      std::cout &lt;&lt; &quot;pass second test&quot; &lt;&lt; std::endl;
  }
  </code></pre>
  <p>Here is the output:</p>
  <pre><code>pass first test
  bash: line 7:  8617 Segmentation fault      (core dumped) ./a.out
  </code></pre>