title: Where is my core file after segfault?
body: <p>When my program segfaults, I expect a coredump but there is none. I thought just compiling with -g was enough to get a core file. Here are the gcc lines from my makefile:</p>
  
  <pre><code>  gcc -g -c client.c $(incdirs)
    gcc -g -o client client.o $(LIBDIRS) $(LIBS) -lrt -lidn -lssl \
    /home/calls/cgi/libcurl/lib/libcurl.a  -lezxml -lxmlate $(SQLIBS)
  </code></pre>
  
  <p>All of the libraries are compiled/linked with -g as well.</p>
  
  <p>And here's the gcc version info:</p>
  
  <pre><code>calls/cgi/client&gt;gcc -v
  Using built-in specs.
  Target: x86_64-redhat-linux
  Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
  Thread model: posix
  gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)
  </code></pre>
  
  <p><strong>My question:</strong> What more do I have to tell gcc (or anybody else) to get a core file?</p>