[Rcpp-devel] Exposed class works within cpp func, bombs via module
Dirk Eddelbuettel
edd at debian.org
Wed Feb 26 18:46:34 CET 2014
Thell,
On 26 February 2014 at 09:46, Thell Fowler wrote:
|
| I'm getting::
|
| *** Error in `/usr/lib/rstudio/bin/rsession': malloc(): smallbin double linked
| list corrupted: 0x0000000003436090 ***--
|
| It is a small class for iterative compositions. It looks like there's a
| bad_alloc between the R and C++ sides of things but I'm not quite sure what to
| check on it. Are there any docs going into the scoping of module exposed
| classes?
|
| The example bomb is posted as a gist at:
|
| https://gist.github.com/Thell/9231866
I only glanced at it, and my only hunch, based on fix with iterators I sent
someone in another context just yesterday, may be that maybe something is
going off with your use of iterators in next().
Maybe worth trying as a straight vector version? It's just guess.
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list