I want to transfer data from kdb 32bits to R on my iMac Yosemite 10.10.2. I compiled qserver.so using k.h and m64/c.o from the SVN repository. I can open the connection to my kdb instance but when I execute a command I get a segmentation fault:
R version 3.1.2 (2014-10-31) – “Pumpkin Helmet”
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin10.8.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type ‘license()’ or ‘licence()’ for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type ‘contributors()’ for more information and
‘citation()’ on how to cite R or R packages in publications.
Type ‘demo()’ for some demos, ‘help()’ for on-line help, or
‘help.start()’ for an HTML browser interface to help.
Type ‘q()’ to quit R.
> > options(STERM=‘iESS’, str.dendrogram.last=“'”, editor=‘emacsclient’, show.error.locations=TRUE)
>
> source(“qserver.R”)
> k = open_connection(host=“iMac.local”, port=“5000”)
> t = execute(k, “select from t”)
*** caught segfault ***
address 0x2, cause ‘memory not mapped’
Traceback:
1: .Call(“kx_r_execute”, as.integer(connection), query)
2: execute(k, “select from t”)
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace