title: I get a segmentation fault instead of an exception
body: <p>In the following code, at the first iteration I get an exception, and at the second one I get a segmentation fault with no error message printed. It seems the exception is not caught:</p>
  
  <pre><code>int i = 0;
  while(i++ &lt; 10)
  {
     try {
        cout &lt;&lt; "Iteration: " &lt;&lt; i &lt;&lt; endl;
        // Code...
        cout &lt;&lt; "OK" &lt;&lt; endl;
     }
     catch(...)
     {
        cerr &lt;&lt; "Error message" &lt;&lt; endl;
        continue;
     }
  }
  
  Output:
  Iteration 1
  Error message
  Iteration 2
  Segmentation fault
  </code></pre>
  
  <p>Is it normal, or there is something really wrong going on?  </p>
  
  <p>In case it should be relevant, in that code block I reset a MySQL connection, and the exception is generated when I check if the connection is closed.</p>
  
  <p>Thank's.</p>
  
  <hr>
  
  <p><em>Platform:</em><br>
  Linux - OpenSuse 11.4<br>
  C++ - GCC 4.5.1<br>
  Intel Xeon</p>