Re: [Rcpp-devel] R Memory Management and RInside

2012-03-06 Thread gershon bialer
Hi, I figured out the bug. I'm on the mac, and I had recompiled R and my application with GCC, but I had still had a bunch of libraries, which had been built in LLVM. I suppose the issue with LLVM relates to how it does memory management. Thanks On Tue, Mar 6, 2012 at 7:11 AM, Dirk Eddelbuettel

Re: [Rcpp-devel] R Memory Management and RInside

2012-03-06 Thread Dirk Eddelbuettel
On 5 March 2012 at 23:08, gershon bialer wrote: | Hi, | | I'm trying to use RInside, but I get the seg fault show below. Does | R's memory management somehow interfere with the C++ standard | library memory management? What could be causing this? Nobody can tell, really, as you posted no code.

Re: [Rcpp-devel] R Memory Management and RInside

2012-03-06 Thread Whit Armstrong
looks like you did something bad with a pointer, but it's hard to know without seeing your code. why don't you run w/ valgrind, it might help you locate the problem. like this: warmstrong@krypton:~$ R --debugger=valgrind ==28550== Memcheck, a memory error detector ==28550== Copyright (C) 2002-201

[Rcpp-devel] R Memory Management and RInside

2012-03-05 Thread gershon bialer
Hi, I'm trying to use RInside, but I get the seg fault show below. Does R's memory management somehow interfere with the C++ standard library memory management? What could be causing this? Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: