Skip to content

segmentation fault - debugging

2 messages · Joel Bremson, Duncan Murdoch

#
Joel Bremson wrote:
I find insight (a TCL/TK front end to gdb) easier to use than plain gdb, 
because it's more like other GUI-based debuggers.  I've also heard that 
ddb (I think that's the name) does a good job, but was never able to get 
it to run in Windows.  You might have more luck in Linux.

If you run R under the debugger, it will try to stop at the line that 
caused the seg fault.  This depends on the presence of debug info in the 
file, which might be your .so or R itself.  In Windows, "make distclean; 
make DEBUG=T" gets debug info into R; I don't know if that works for 
builds on other platforms.

Duncan Murdoch