Hugh Parsonage
2025-Jan-21 05:51 UTC
[Rd] Creating a long list triggers billions of messages
Reprex (not recommended in an interactive session as it is difficult to kill): x <- vector("list", 2^31) which triggers (presumably) billions of error messages like Error: long vectors are not supported yet ../include/Rinlinedfuns.h I believe the error arises from checking each element of the list (all 2^31 of them) and issuing an error message for each of them regarding the length of the overall list.
? Tue, 21 Jan 2025 16:51:34 +1100 Hugh Parsonage <hugh.parsonage at gmail.com> ?????:> x <- vector("list", 2^31) > > which triggers (presumably) billions of error messages like > Error: long vectors are not supported yet ../include/Rinlinedfuns.hI couldn't reproduce this with some released versions of R or a recent R-devel. Would you mind sharing your sessionInfo()? If you'd like to, could you please run R -q -s -e 'x <- vector("list", 2^31)' -d gdb ...then set a breakpoint on Rf_errorcall, run the program and collect a backtrace when it fires? -- Best regards, Ivan
Possibly Parallel Threads
- Creating a long list triggers billions of messages
- Creating a long list triggers billions of messages
- [External] Re: Operations with long altrep vectors cause segfaults on Windows
- [External] Re: Operations with long altrep vectors cause segfaults on Windows
- Intermittent crashes with inset `[<-` command