title: Debugging C with Netbeans/gdb terminates immediately with a SIGSEGV?
body: <p>While developing in C in Netbeans on Ubuntu, at some point in development it became impossible to start the program in the Netbeans debugger (using gdb). Starting the debug process just failed to execute even the first line of the <code>main</code> function. Even a breakpoint at that first line does not help; the process crashes before the breakpoint is hit.</p>
  
  <p>The message displayed in the status bar:</p>
  
  <p><strong>Program Terminated by signal SIGSEGV</strong></p>
  
  <p>The program runs just fine outside of a debugger, and debugging the program directly with gdb (without Netbeans wrapping it) works fine too.</p>
  
  <p>I already figured out how to resolve this (see below), but I'm posting this question anyway so others will find the solution when they run into the same problem.</p>