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

From: <jussi.jousimo_at_ktl.fi>
Date: Fri 19 Aug 2005 - 07:07:16 GMT

Full_Name: Jussi Jousimo
Version: 2.1.1
OS: Linux
Submission from: (NULL) (

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 Received on Fri Aug 19 17:12:39 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:16 GMT