From jussi.jousimo at ktl.fi  Fri Aug 19 09:07:16 2005
From: jussi.jousimo at ktl.fi (jussi.jousimo@ktl.fi)
Date: Fri, 19 Aug 2005 09:07:16 +0200 (CEST)
Subject: [Rd] PS driver crashes when no permissions (PR#8078)
Message-ID: <20050819070716.2216A103CB@slim.kubism.ku.dk>

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.



[Rd] PS driver crashes when no permissions (PR#8078)
jussi.jousimo@ktl.fi