To amend, the traceback is only
Traceback:
1: cbind(probe, gb)
aborting ...
Oops. Martin
Martin Morgan [EMAIL PROTECTED] writes:
The following code results in a seg fault.
sessionInfo()
R version 2.6.0 Under development (unstable) (2007-06-21 r42013)
x86_64-unknown-linux-gnu
I think it needs to be
case LISTSXP:
PROTECT(u = coerceVector(u, mode));
k = LENGTH(u);
idx = (!isMatrix(u)) ? rows : k;
for (i = 0; i idx; i++)
SET_VECTOR_ELT(result, n++,
Yes, that seems to do the trick, for both seg fault and valgrind!
Thanks very much.
Martin
Prof Brian Ripley [EMAIL PROTECTED] writes:
I think it needs to be
case LISTSXP:
PROTECT(u = coerceVector(u, mode));
k = LENGTH(u);
On Thu, 21 Jun 2007, Martin Morgan wrote:
Yes, that seems to do the trick, for both seg fault and valgrind!
Thanks very much.
Thanks: this and a similar one elsewhere seem long-standing bugs in bind.c
Will commit shortly.
Martin
Prof Brian Ripley [EMAIL PROTECTED] writes:
I think it