Displaying 1 result from an estimated 1 matches for "jingy".
Did you mean:
jingu
2011 Apr 14
1
Rcpp segmentation faults on the simplest code
...code I'm trying to run is:
#include
#include
#include
#include
int main(int argc, char* argv[])
{
Rcpp::NumericVector v(1);
return 0;
}
It compiles and links fine. However, as soon as I run it, it segfaults. The
following is the gdb trace:
<co(gdb) run
Starting program: /home/jingy/tmp/stl
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x00002aaaabb86d70 in ?? () from /usr/lib/libR.so
(gdb) up
#1 0x00002aaaabb8849b in Rf_allocVector () from /usr/lib/libR.so
(gdb)
#2 0x0000000000401618 in Vector (this=0x7fffffffd880, siz...