octave crashes on exit if it has no write permissions on ~/.octave_hist
John W. Eaton
jwe at octave.org
Thu Jul 23 13:27:24 CDT 2009
On 12-Jun-2009, bas at cordelia.zoetekouw.net wrote:
| To: bug at octave.org
| Cc: bas
| Subject: octave crashes on exit if it has no write permissions on ~/.octave_hist
|
| Bug report for Octave 3.1.53 configured for x86_64-pc-linux-gnu
|
| Description:
| -----------
|
| * I accidentally had an ~/.octave_hist file that was owned by root and mode
| 0600. Upon each (normal) exit, octave would crash.
|
| Repeat-By:
| ---------
|
| > [bas at Eleanor]/tmp> ls -lad ~/.octave_hist
| > -rw------- 1 root root 0 feb 20 10:47 /home/bas/.octave_hist
| > [bas at Eleanor]/tmp> echo 1+1 > test.m
| > [bas at Eleanor]/tmp> octave -q test.m
| > ans = 2
| > error: Permission denied
| > terminate called after throwing an instance of 'octave_execution_exception'
| > panic: Aborted -- stopping myself...
| > attempting to save variables to `octave-core'...
| > save to `octave-core' complete
| > zsh: abort octave -q test.m
| > [bas at Eleanor](134)/tmp> octave -q
| > octave:1> 1+1
| > ans = 2
| > octave:2> exit
| > error: Permission denied
| > octave:2> exit
| > [bas at Eleanor]/tmp> sudo rm ~/.octave_hist
| > [bas at Eleanor]/tmp> octave -q test.m
| > ans = 2
| >
| > [bas at Eleanor]/tmp> octave -q
| > octave:1> 1+1
| > ans = 2
| > octave:2> exit
I checked in the following change.
http://hg.savannah.gnu.org/hgweb/octave/rev/deb668d53e60
Thanks,
jwe
More information about the Bug-octave
mailing list