title: How unordered_map cause sigsegv
body: <p><strong>EDIT: solved, I know how but I don't understand why.</strong></p>
  
  <p>I changed <code>variables</code> declaration from </p>
  
  <pre><code>tr1::unordered_map&lt;int,T&gt; variables;
  </code></pre>
  
  <p>to</p>
  
  <pre><code>unordered_map&lt;int,T&gt; variables;
  </code></pre>
  
  <p>and it's work fine.</p>
  
  <p><em>If you know why please write it in the answers.</em></p>
  
  <p>I have a very large program, so I don't know which code I should bring here. </p>
  
  <p>There is abstract class, that inherits with derived class. 
  The abstract have <code>unordered_map&lt;int,int&gt;</code> (template) as private member, and public method <code>insert(int,int)</code>.</p>
  
  <p>The derived class use the base class <code>insert</code> method to insert elements to the <code>unordered_map&lt;int,int&gt;</code> container,</p>
  
  <p>The first <code>int</code> uses like counter and start with 0. The first eleven insert elements going O.K. but in the 12th element I get sigsegv,and fault in <code>struct equal_to</code> at stl_function.h(209).</p>
  
  <p>In the debugger I have saw that the unordered_map's bucket_count equal to 11, maybe it's clue for something.</p>
  
  <p>My compiler is gcc 4.6.1.</p>
  
  <p>Maybe you can write in general what <strong>can</strong> cause sigsegv in <code>unordered_map.insert</code>?</p>
  
  <p>Thank you, and sorry about my poor English.</p>
  
  <p>I will bring specific code, if I know which.</p>
  
  <p>EDIT:
  This is the <code>insert</code> method:</p>
  
  <pre><code>virtual void Insert(int arrayPlace, T value)
  {
      if (!isReadOnly)
      {            
          if (IsValueDataValid(value))
          {
             variables[arrayPlace] = value;
          }
          else
          {
              throw 2;
          }            
      }
      else
      {
          throw 4;
      }
  };
  </code></pre>
  
  <p>The declaration is:</p>
  
  <pre><code>tr1::unordered_map&lt;int,T&gt; variables;
  </code></pre>
  
  <p>The sigsegv happend when <code>arrayPlace</code>==11, And it dosn't matter what <code>value</code> equal.</p>