title: GDB backtrace on child process
body: <p>I have a application which forks a child process.</p>
  
  <p>Child process does some work and somewhere in the middle it gives Segmentation fault. I used GDB to debug this, I used:</p>
  
  <pre><code>set follow-fork-mode child
  </code></pre>
  
  <p>I have also set a breakpoint to a function within the child. But GDB doesn't pause at my breakpoint.</p>
  
  <p>Also the parent process handles the seg-fault so I had to ctrl-c to exit. Then when I use <code>backtrace</code> to print the stack all I got is </p>
  
  <blockquote>
    <p>No stack</p>
  </blockquote>
  
  <p>Why is the breakpoint not being set and why didn't I get the stack?</p>