title: Cannot reproduce segfault in gdb
body: <p>I'm getting segfaults when I run my project. Every time I run the program in gdb, the segfaults disappear. This behavior is not random: each time I run it in my shell it segfaults, each time I run it in gdb, the segfaults disappear. (I did recompile using -g). </p>
  
  <p>So before I start adding printfs frantically everywhere in my code, I would like to know a few things:</p>
  
  <ul>
  <li>Is this behavior common?</li>
  <li>What's the best way to approach the issue? </li>
  </ul>
  
  <p>I don't know if tests can be scripted since my application is interactive and crashes on a particular user input. </p>
  
  <p>I didn't paste my code here because it'd be way too long. But if anyone is interested in helping out, here it is: 
  <a href="https://github.com/rahmu/Agros">https://github.com/rahmu/Agros</a></p>