Displaying 2 results from an estimated 2 matches for "78d".
Did you mean:
  782
  
2011 Oct 05
1
Moderating consequences of garbage collection when in C
...s
This is the test code
#include <stdio.h>
#include "Rdefines.h"
SEXP doit(SEXP len, SEXP needed)
{
     int i, n = asInteger(len);
     char **s = Calloc(n, char *);
     SEXP ans;
     for (i = 0; i < n; ++i) {
         s[i] = Calloc(80, char);
         sprintf(s[i], "%78d", i);
     }
     if (asLogical(needed))
         R_gc_needed(80 * n);
     PROTECT(ans = allocVector(STRSXP, n));
     for (i = 0; i < n; ++i)
         SET_STRING_ELT(ans, i, mkChar(s[i]));
     UNPROTECT(1);
     return ans;
}
and a patch
Index: src/include/R_ext/Memory.h
===========...
2007 Mar 02
2
rc25: need_space assert, core
Timo,
I see where at least one other person reported this, but here goes.
I went from rc24 to rc25 this morning, and I got an assert and core
from my own mailbox withing five minutes:
Mar  2 06:52:26 karst dovecot: [ID 107833 mail.error] IMAP(jaearick): file mbox-sync-rewrite.c: line 408: assertion failed: (need_space == (uoff_t)-mails[idx].space)
Mar  2 06:52:26 karst dovecot: [ID 107833