title: Core dump file not generated on segmentation fault
body: <p>I am trying to debug a segmentation fault caused by my C program using <code>gdb</code>. A core dump file is not automatically generated when I run my program,and i have to run the command </p>
  
  <pre><code>ulimit -c unlimited
  </code></pre>
  
  <p>for a core file to be generated on the next run.</p>
  
  <p>Why is a core dump file not generated automatically and why do I have to run the <code>ulimit</code> command everytime to generate a core file on the next run of my program ?. </p>
  
  <p>The operating system i use is Ubuntu 10.10.</p>