Re: [Rd] typo in sprintf format string segfaults R

2009-03-26 Thread Wacek Kusnierczyk
Sklyar, Oleg (London) wrote: > typo as simple as %S instead of %s segfaults R devel: > not exactly: sprintf('%S', 'aa') # error: unrecognised format at end of string without a segfault. but with another format specifier behind, it will cause a segfault. interestingly, here's again t

[Rd] typo in sprintf format string segfaults R

2009-03-26 Thread Sklyar, Oleg (London)
typo as simple as %S instead of %s segfaults R devel: *** R 2.9.0 (svn -r 47821) [/share/research/R-devel/20090203/lib64/R] *** > sprintf("%S%d", "aaa", 1) *** caught segfault *** address 0x8000, cause 'memory not mapped' Traceback: 1: sprintf("%S%d", "aaa", 1) Possible actions: 1: abort (wit