Skip to content

RODBC Debugging

2 messages · Christopher Simon, Brian Ripley

#
We are trying to attach R to our ODBC driver via RODBC. Unfortunately
we're getting Segmentation faults in odbcConnect (error detailed
below). We would like to attach a debugger to whatever process is
communicating with UnixODBC/our driver, but are not sure where to
start. R itself seems to be a large bash script, ideally we could
inject "gdb --args" before the execution of some process in that
script to get the desired results. Any guidance is much appreciated.
*** caught segfault ***
address 0x100000abb, cause 'memory not mapped'

Traceback:
 1: .Call(C_RODBCDriverConnect, as.character(connection), id,
as.integer(believeNRows))
 2: odbcDriverConnect(st, ...)
 3: odbcConnect("sql1010odbc")
#
On 17/05/2012 21:06, Christopher A. Simon wrote:
You need to read some basic R documentation.  'R' is not a 'bash 
script'. not even an sh script.  But the front-end script allows e.g. R 
-d gdb to run the R executable under gdb.