On Thu, 21 Apr 2011, Giuseppe Vittucci wrote:
Ok, it was very difficult to reproduce the bug...
This is what you must do:
- create a directory in a place where gretl cannot recreate it (e.g. a
pen drive);
- open gretl and set that directory as the working directory;
- close gretl;
- remove the pen-drive
- DELETE the default directory (~/gretl)
- open gretl
Gretl first tries to recreate the directory (and it fails), then tries
to open ~/gretl. If the latter is missing, it does not recreate it but
returns a segmentation fault...
In the experiments I tried, in order to provoke a crash it's not
enough to delete ~/gretl (after ensuring that the user-specified
working directory is inaccessible); in addition you have to make
it impossible to create a directory named ~/gretl.
Hmm, I wonder how many commonly used programs would stand up to
this sort of treatment?
I've added one more layer of bullet-proofing in CVS but I have to
say that I don't consider this a high priority.
Allin Cottrell