[Rd] typo in sprintf format string segfaults R

Wacek Kusnierczyk Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Thu Mar 26 17:27:43 CET 2009


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



More information about the R-devel mailing list