From Waclaw.Marcin.Kusnierczyk at idi.ntnu.no  Thu Mar 26 17:27:43 2009
From: Waclaw.Marcin.Kusnierczyk at idi.ntnu.no (Wacek Kusnierczyk)
Date: Thu, 26 Mar 2009 17:27:43 +0100
Subject: [Rd] typo in sprintf format string segfaults R
In-Reply-To: <1A68FCB28DE72F4BA3B967E6506CCE43047DF7A2@mildnpexmb01.maninvestments.ad.man.com>
References: <1A68FCB28DE72F4BA3B967E6506CCE43047DF7A2@mildnpexmb01.maninvestments.ad.man.com>
Message-ID: <49CBACFF.4030706@idi.ntnu.no>

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



[Rd] typo in sprintf format string segfaults R
Wacek Kusnierczyk