title: Debugging hhvm segmentation faults
body: <p>How can I debug a segmentation fault when running php script with hhvm? When I run it, I get:</p>
  
  <pre><code>Core dumped: Segmentation fault
  Segmentation fault
  </code></pre>
  
  <p>In stacktrace I get that it error when I call a method of the same object. </p>
  
  <p>Is there any code analyzer that might tell me wrong php code or somehow to get more verbose on errors or stack trace?</p>
  
  <p>When I use</p>
  
  <pre><code>    $r = mysql_query($sql, $link); //crashes
      $r = mysql_query($sql); //does not crash
  </code></pre>