Re: [Rd] creating a long list puts R in a state where many things stop working

2016-11-15 Thread Kevin Ushey
For reference, running your code in a build of R-devel with sanitizers: > x <- vector(mode="list", length=3e9) memory.c:2747:27: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'R_len_t' (aka 'int') SUMMARY: AddressSanitizer: undefined-behavior

[Rd] creating a long list puts R in a state where many things stop working

2016-11-14 Thread Hervé Pagès
Hi, After I create a long list e.g. with x <- vector(mode="list", length=3e9) many bad things start to happen e.g. some things stop working with a spurious error message: gc() # Error in gc() : # long vectors not supported yet: /home/hpages/src/R-3.3.2/src/main/memory.c:1137