[R] segfault debugging

Donatella Quagli donatella.quagli at yahoo.de
Sat Dec 1 12:56:40 CET 2012


Thank you so far. Here is an excerpt from the gdb session after a crash:
  Program received signal SIGSEGV, Segmentation fault.

  0xb7509a6b in Rf_allocVector () from /usr/lib/R/lib/libR.so
  (gdb) backtrace
  #0  0xb7509a6b in Rf_allocVector () from /usr/lib/R/lib/libR.so
  #1  0xb744b64c in ?? () from /usr/lib/R/lib/libR.so
  #2  0xb74c58bf in ?? () from /usr/lib/R/lib/libR.so
  #3  0xb74c9c62 in Rf_eval () from /usr/lib/R/lib/libR.so
  #4  0xb74ce60f in Rf_applyClosure () from /usr/lib/R/lib/libR.so
  #5  0xb74c9f29 in Rf_eval () from /usr/lib/R/lib/libR.so
  #6  0xb7503002 in Rf_ReplIteration () from /usr/lib/R/lib/libR.so
  #7  0xb7503298 in ?? () from /usr/lib/R/lib/libR.so
  #8  0xb7503812 in run_Rmainloop () from /usr/lib/R/lib/libR.so
  #9  0xb7503839 in Rf_mainloop () from /usr/lib/R/lib/libR.so
  #10 0x08048768 in main ()
  #11 0xb728de46 in __libc_start_main (main=0x8048730 <main>, argc=8, ubp_av=0xbfdb7824, init=0x80488a0 <__libc_csu_init>, 
      fini=0x8048890 <__libc_csu_fini>, rtld_fini=0xb7784590, stack_end=0xbfdb781c) at libc-start.c:228
  #12 0x08048791 in _start ()

It seems to me that the error is in frame #0. Does it mean that there is a bug in libR.so?  What can I do next?

Greetings
Donatella



More information about the R-help mailing list