Sklyar, Oleg (London)
2009-Mar-26 16:03 UTC
[Rd] typo in sprintf format string segfaults R
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}}
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 the same problem i have reported recently: that you are given a number of options for how to leave the session, but you can type ^c and stay in a semi-working session. (and the next execution of the above will then cause a segfault with immediate exit.) vQ
Maybe Matching Threads
- consistent segfaults in ROracle with one of the databases
- particulars of importing/loading libraries
- imporving performance of slicing on matrices and S4 their derivatives
- Rd \usage clause for an S4 replace method
- setClassUnion with numeric; extending class union