jussi.jousimo@ktl.fi
2005-Aug-19 07:07 UTC
[Rd] PS driver crashes when no permissions (PR#8078)
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.
ripley@stats.ox.ac.uk
2005-Aug-19 07:47 UTC
[Rd] PS driver crashes when no permissions (PR#8078)
This is already fixed in 2.1.1 patched: please see the resources the posting guide and FAQ ask you to consult _before_ sending a bug report! o File creation errors in pdf(), postscript(), xfig() resulted in a pointer being freed twice. (Reported by Matt McCall) As the FAQ says If a bug has already been reported or fixed, please do not submit further bug reports on it. On Fri, 19 Aug 2005 jussi.jousimo at ktl.fi wrote:> 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 at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595