[Rd] typo in sprintf format string segfaults R
Sklyar, Oleg (London)
osklyar at maninvestments.com
Thu Mar 26 17:03:13 CET 2009
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 (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
-------------------------------------------------------------
> sessionInfo()
R version 2.9.0 Under development (unstable) (2009-02-02 r47821)
x86_64-unknown-linux-gnu
locale:
C
attached base packages:
[1] stats graphics utils datasets grDevices methods base
Dr Oleg Sklyar
Research Technologist
AHL / Man Investments Ltd
+44 (0)20 7144 3107
osklyar at maninvestments.com
**********************************************************************
Please consider the environment before printing this email or its attachments.
The contents of this email are for the named addressees ...{{dropped:19}}
More information about the R-devel
mailing list