octave-bug-tracker
[Top][All Lists]
Advanced

[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: Rik
Subject: [Octave-bug-tracker] [bug #61841] rethrowing an exception leads to an internal error
Date: Mon, 17 Jan 2022 12:37:21 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

Follow-up Comment #7, bug #61841 (project octave):

I used this code for testing


f = @(x) x+1;

try
  f(1, 2)
catch ME
  keyboard;
  disp ('in catch block');
  rethrow(ME)
end


When Octave stops in the debugger I inspected the values of the variable ME.


keyboard> ME.stack.file
ans = /home/rik/wip/Projects_Mine/octave-stable/tst_rethrow.m
ans = /home/rik/wip/Projects_Mine/octave-stable/tst_rethrow.m
keyboard> ME.stack.name
ans = @<anonymous>
ans = tst_rethrow
keyboard> ME.stack.line
ans = -1
ans = 4
keyboard> ME.stack.column
ans = [](0x0)
ans = 3


I think Pantxo is write that is is the column field for the anonymous function
that is incorrect.  I would propose setting this value to -1 to match what
Octave does for the line number.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61841>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]