[Rd] PS driver crashes when no permissions (PR#8078)

2005-08-19 Thread jussi . jousimo
Full_Name: Jussi Jousimo
Version: 2.1.1
OS: Linux
Submission from: (NULL) (193.167.195.60)


R 2.1.1 crashes when it is trying to write a file with the postscript driver to
a directory, where the user has no permission to write. For example,
postscript("foo.ps") gives an error message: *** glibc detected *** free():
invalid pointer: 0x08a469b0 ***. The problem is at the PSDeviceDriver function
in the devPS.c file on line 2357 (free(dd);), where the same memory block is
tried to free the first time and then the second time at line 5138 (free(dev);).
I'd suggest to remove the first free function.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Assigning a zero length vector to a list (PR#8157)

2005-09-26 Thread jussi . jousimo
Full_Name: Jussi Jousimo
Version: 2.2.0 beta
OS: Windows XP
Submission from: (NULL) (193.167.195.60)


I'm trying to assign a zero length vector to a list:

x<-numeric()
length(x)
foo<-list()
foo$bar[[1]]<-x
length(foo$bar[[1]])
foo

But in the list this vector turns out to be length one with random content.
x<-character() makes R to crash.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel