title: How do I have my program's core dump saved to a file upon a crash?
body: <p>I'm using Bash. I used <code>ulimit -c unlimited</code> but the program still doesn't generate a core file. It may be due to the GUI debugger kicking in. I get the option to save the crash info to a file, but I really want a core file.</p>
  
  <p>Edit: I just wrote a small non-gui program meant to crash, and it produced a core dump.</p>