Add a New Comment (Rich Markup)
Comment Type & Canned Response: None None > Multiple Canned Responses Fixed in development Crash with no stack trace Already fixed in newer version Fixed in stable Bad description Bad description and crash Bad stack trace Obsolete version Duplicate and not fixed Duplicate and needs more info Duplicate and fixed Need info and old
I checked in the following changeset:
http://hg.savannah.gnu.org/hgweb/octave/rev/63c806042c27
GCC 6 now warns
../libinterp/octave-value/ov-oncleanup.cc: In destructor 'virtual octave_oncleanup::~octave_oncleanup()': ../libinterp/octave-value/ov-oncleanup.cc:92:7: warning: throw will always call terminate() [-Wterminate] throw; ^~~~~ ../libinterp/octave-value/ov-oncleanup.cc:92:7: note: in C++11 destructors default to noexcept
and an error in an onCleanup function can trigger this problem. The following is sufficient to demonstrate the bug:
function foo () onCleanup (@() error ('oops!')); end foo
A possible fix is attached.
Maybe we should also display the message from the last error along with the new warning about an error in the cleanup function?
What does Matlab do for something like this?
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only project members can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 3 latest changes.
Copyright © 2022 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.9