crashes with octave3.2 when $HOME/.octave_hist is not writable

View: New views
6 Messages — Rating Filter:   Alert me  

crashes with octave3.2 when $HOME/.octave_hist is not writable

by Soeren Sonnenburg-18 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

To reproduce do e.g:

$ export HOME=/
$ echo version | octave
GNU Octave, version 3.2.3
Copyright (C) 2009 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at
http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <bug@...> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

ans = 3.2.3
error: Permission denied
terminate called after throwing an instance of
'octave_execution_exception'
panic: Aborted -- stopping myself...
attempting to save variables to `octave-core'...
warning: unable to open `octave-core' for writing...
Aborted

Das ging aber noch mit octave 3.0.x

$ echo version | octave3.0
GNU Octave, version 3.0.5
Copyright (C) 2008 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at
http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <bug@...> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

ans = 3.0.5
error: Permission denied

Soeren
--
For the one fact about the future of which we can be certain is that it
will be utterly fantastic. -- Arthur C. Clarke, 1962


_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

signature.asc (853 bytes) Download Attachment

crashes with octave3.2 when $HOME/.octave_hist is not writable

by John W. Eaton-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 25-Oct-2009, Soeren Sonnenburg wrote:

| To reproduce do e.g:
|
| $ export HOME=/
| $ echo version | octave
| GNU Octave, version 3.2.3
| Copyright (C) 2009 John W. Eaton and others.
| This is free software; see the source code for copying conditions.
| There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
| FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.
|
| Octave was configured for "x86_64-pc-linux-gnu".
|
| Additional information about Octave is available at
| http://www.octave.org.
|
| Please contribute if you find this software useful.
| For more information, visit http://www.octave.org/help-wanted.html
|
| Report bugs to <bug@...> (but first, please read
| http://www.octave.org/bugs.html to learn how to write a helpful report).
|
| For information about changes from previous versions, type `news'.
|
| ans = 3.2.3
| error: Permission denied
| terminate called after throwing an instance of
| 'octave_execution_exception'
| panic: Aborted -- stopping myself...
| attempting to save variables to `octave-core'...
| warning: unable to open `octave-core' for writing...
| Aborted
|
| Das ging aber noch mit octave 3.0.x
|
| $ echo version | octave3.0
| GNU Octave, version 3.0.5
| Copyright (C) 2008 John W. Eaton and others.
| This is free software; see the source code for copying conditions.
| There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
| FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.
|
| Octave was configured for "x86_64-pc-linux-gnu".
|
| Additional information about Octave is available at
| http://www.octave.org.
|
| Please contribute if you find this software useful.
| For more information, visit http://www.octave.org/help-wanted.html
|
| Report bugs to <bug@...> (but first, please read
| http://www.octave.org/bugs.html to learn how to write a helpful report).
|
| For information about changes from previous versions, type `news'.
|
| ans = 3.0.5
| error: Permission denied

You are getting this message when Octave tries to write the history
file and it fails because of permission problems.  I already fixed the
problem the development sources.  Now I see this:

  $ HOME=/ /usr/local/octave/devel/bin/octave
  GNU Octave, version 3.3.50+
  Copyright (C) 2009 John W. Eaton and others.
  This is free software; see the source code for copying conditions.
  There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
  FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

  Octave was configured for "x86_64-unknown-linux-gnu".

  Additional information about Octave is available at http://www.octave.org.

  Please contribute if you find this software useful.
  For more information, visit http://www.octave.org/help-wanted.html

  Report bugs to <bug@...> (but first, please read
  http://www.octave.org/bugs.html to learn how to write a helpful report).

  For information about changes from previous versions, type `news'.

  octave:1> quit

  error: Permission denied
  error: ignoring octave_execution_exception while preparing to exit


Please report bugs to the bug@... list, not the help list.

Thanks,

jwe
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: crashes with octave3.2 when $HOME/.octave_hist is not writable

by Soeren Sonnenburg-18 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 2009-10-25 at 18:32 -0400, John W. Eaton wrote:
> On 25-Oct-2009, Soeren Sonnenburg wrote:
>
> | To reproduce do e.g:
> |
> | $ export HOME=/
> | $ echo version | octave
[...]
> You are getting this message when Octave tries to write the history
> file and it fails because of permission problems.  I already fixed the
> problem the development sources.  Now I see this:

Thanks for fixing the problem.

>   $ HOME=/ /usr/local/octave/devel/bin/octave
>   GNU Octave, version 3.3.50+
>   Copyright (C) 2009 John W. Eaton and others.
>   This is free software; see the source code for copying conditions.
>   There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
>   FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.
>
>   Octave was configured for "x86_64-unknown-linux-gnu".
>
>   Additional information about Octave is available at http://www.octave.org.
>
>   Please contribute if you find this software useful.
>   For more information, visit http://www.octave.org/help-wanted.html
>
>   Report bugs to <bug@...> (but first, please read
>   http://www.octave.org/bugs.html to learn how to write a helpful report).
>
>   For information about changes from previous versions, type `news'.
>
>   octave:1> quit
>
>   error: Permission denied
>   error: ignoring octave_execution_exception while preparing to exit
Will octave3.2 return 0 back to the shell (as did 3.0?)

$ ( ( echo version | octave3.0 >/dev/null) ; echo $? )
error: Permission denied
0

$ ( ( echo version | octave3.2 >/dev/null) ; echo $? )
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
134

> Please report bugs to the bug@... list, not the help list.

OK next time.

Thanks,
Soeren

--
For the one fact about the future of which we can be certain is that it
will be utterly fantastic. -- Arthur C. Clarke, 1962


_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

signature.asc (853 bytes) Download Attachment

Re: crashes with octave3.2 when $HOME/.octave_hist is not writable

by John W. Eaton-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 26-Oct-2009, Soeren Sonnenburg wrote:

| On Sun, 2009-10-25 at 18:32 -0400, John W. Eaton wrote:
| > On 25-Oct-2009, Soeren Sonnenburg wrote:
| >
| > | To reproduce do e.g:
| > |
| > | $ export HOME=/
| > | $ echo version | octave
| [...]
| > You are getting this message when Octave tries to write the history
| > file and it fails because of permission problems.  I already fixed the
| > problem the development sources.  Now I see this:
|
| Thanks for fixing the problem.
|
| >   $ HOME=/ /usr/local/octave/devel/bin/octave
| >   GNU Octave, version 3.3.50+
| >   Copyright (C) 2009 John W. Eaton and others.
| >   This is free software; see the source code for copying conditions.
| >   There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
| >   FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.
| >
| >   Octave was configured for "x86_64-unknown-linux-gnu".
| >
| >   Additional information about Octave is available at http://www.octave.org.
| >
| >   Please contribute if you find this software useful.
| >   For more information, visit http://www.octave.org/help-wanted.html
| >
| >   Report bugs to <bug@...> (but first, please read
| >   http://www.octave.org/bugs.html to learn how to write a helpful report).
| >
| >   For information about changes from previous versions, type `news'.
| >
| >   octave:1> quit
| >
| >   error: Permission denied
| >   error: ignoring octave_execution_exception while preparing to exit
|
| Will octave3.2 return 0 back to the shell (as did 3.0?)
|
| $ ( ( echo version | octave3.0 >/dev/null) ; echo $? )
| error: Permission denied
| 0

Yes.

jwe
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: crashes with octave3.2 when $HOME/.octave_hist is not writable

by Thomas Weber-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 26, 2009 at 12:03:52AM -0400, John W. Eaton wrote:

> On 26-Oct-2009, Soeren Sonnenburg wrote:
>
> | On Sun, 2009-10-25 at 18:32 -0400, John W. Eaton wrote:
> | > On 25-Oct-2009, Soeren Sonnenburg wrote:
> | >
> | > | To reproduce do e.g:
> | > |
> | > | $ export HOME=/
> | > | $ echo version | octave
> | [...]
> | > You are getting this message when Octave tries to write the history
> | > file and it fails because of permission problems.  I already fixed the
> | > problem the development sources.  Now I see this:
> |
> | Thanks for fixing the problem.
> |
> | >   $ HOME=/ /usr/local/octave/devel/bin/octave
> | >   GNU Octave, version 3.3.50+
> | >   Copyright (C) 2009 John W. Eaton and others.
> | >   This is free software; see the source code for copying conditions.
> | >   There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
> | >   FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.
> | >
> | >   Octave was configured for "x86_64-unknown-linux-gnu".
> | >
> | >   Additional information about Octave is available at http://www.octave.org.
> | >
> | >   Please contribute if you find this software useful.
> | >   For more information, visit http://www.octave.org/help-wanted.html
> | >
> | >   Report bugs to <bug@...> (but first, please read
> | >   http://www.octave.org/bugs.html to learn how to write a helpful report).
> | >
> | >   For information about changes from previous versions, type `news'.
> | >
> | >   octave:1> quit
> | >
> | >   error: Permission denied
> | >   error: ignoring octave_execution_exception while preparing to exit
> |
> | Will octave3.2 return 0 back to the shell (as did 3.0?)
> |
> | $ ( ( echo version | octave3.0 >/dev/null) ; echo $? )
> | error: Permission denied
> | 0
>
> Yes.

Thanks for taking care. Do you by any chance remember the changeset or
which file to look at? I glanced over the last 100 Mercurial changeset,
but saw nothing obvious.

        Thomas
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: crashes with octave3.2 when $HOME/.octave_hist is not writable

by John W. Eaton-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 26-Oct-2009, Thomas Weber wrote:

| Thanks for taking care. Do you by any chance remember the changeset or
| which file to look at? I glanced over the last 100 Mercurial changeset,
| but saw nothing obvious.

I think it was this change:

  http://hg.savannah.gnu.org/hgweb/octave/rev/deb668d53e60

Unless I'm missing something, I think this should be safe for 3.2.x.


jwe
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave