From osklyar at maninvestments.com  Thu Mar 26 17:03:13 2009
From: osklyar at maninvestments.com (Sklyar, Oleg (London))
Date: Thu, 26 Mar 2009 16:03:13 -0000
Subject: [Rd] typo in sprintf format string segfaults R
Message-ID: <1A68FCB28DE72F4BA3B967E6506CCE43047DF7A2@mildnpexmb01.maninvestments.ad.man.com>

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}}



[Rd] typo in sprintf format string segfaults R
Sklyar, Oleg (London