[Rd] sprintf("%s\n", a) segfaults R with big a (PR#7554)

From: <webb.sprague_at_gmail.com>
Date: Sun 23 Jan 2005 - 08:36:04 EST


Full_Name: Webb S.
Version: 2.0.1
OS: Linux Debian
Submission from: (NULL) (199.174.209.10)

Transcript:

> b = 'a small string'
> sprintf('foo: %s\n', b)

[1] "foo: a small string\n"
> a = matrix (ncol=100, nrow=1000, data=c(1,2,3,4,5))
> a.serial = serialize(a, NULL, ascii=TRUE)
> sprintf('foo: %s\n', a.serial)

Segmentation fault
peeir:/usr/local/src/R-2.0.1#

I don't have a core dump to send--sorry. If I have time, I will try to debug it, but I probably won't be able to....

W



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon Jan 24 18:33:31 2005

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:02:37 EST