[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an in
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error |
Date: |
Thu, 20 Jan 2022 21:59:33 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 |
Follow-up Comment #15, bug #61841 (project octave):
OK, for now we can fix the rethrow function to ensure that the element of the
stack struct array has the column field set to -1. In the future, when we add
MException objects to Octave (see bug #40828) I think we should deprecate the
use of a struct array as an argument to throw and rethrow. Also, according to
the Matlab documentation, the MException constructor doesn't accept the stack
struct in the MException constructor. That is added to the object when the
exception is thrown.
I'm attaching another proposed change based on the one posted in comment #14.
Note that the test in comment #14 will fail because it compares the contents
of lasterror before and after the rethrow and they are different now because
rethrow adds the "column" field to the stack struct array. But I think the
behavior is better now and the test is no longer correct. In the new
changeset I updated the test in the error.tst file.
(file #52702)
_______________________________________________________
Additional Item Attachment:
File name: rethrow-cset-2.txt Size:4 KB
<https://file.savannah.gnu.org/file/rethrow-cset-2.txt?file_id=52702>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61841>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, (continued)
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, Pantxo Diribarne, 2022/01/17
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, Pantxo Diribarne, 2022/01/17
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, Rik, 2022/01/17
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, Rik, 2022/01/17
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, Pantxo Diribarne, 2022/01/17
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, Sébastien Villemot, 2022/01/17
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, Sébastien Villemot, 2022/01/17
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, Rik, 2022/01/19
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, John W. Eaton, 2022/01/19
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, Rik, 2022/01/19
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error,
John W. Eaton <=
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, Rik, 2022/01/21
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, John W. Eaton, 2022/01/21
- [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error, Rik, 2022/01/23