Re: [Rd] segfault during cbind

2007-06-21 Thread Martin Morgan
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

Re: [Rd] segfault during cbind

2007-06-21 Thread Prof Brian Ripley
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++,

Re: [Rd] segfault during cbind

2007-06-21 Thread Martin Morgan
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);

Re: [Rd] segfault during cbind

2007-06-21 Thread Prof Brian Ripley
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