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:56:42 -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 #8, bug #61841 (project octave):

We can stop the problem by changing the code in error.cc in the function
make_stack_frame_list.  However, I think it would be better form to change the
code that produces the column numbers so that valid data is always created.

If we were to modify error.cc then this code


for (octave_idx_type i = 0; i < nel; i++)
      frames.push_back (frame_info (file(i).string_value (),
                                    name(i).string_value (),
                                    line(i).int_value (),
                                    (have_column
                                     ? column(i).int_value () : -1)));


could be changed to


for (octave_idx_type i = 0; i < nel; i++)
      frames.push_back (frame_info (file(i).string_value (),
                                    name(i).string_value (),
                                    line(i).int_value (),
                                    (have_column && ! column(i).isempty ()
                                     ? column(i).int_value () : -1)));



    _______________________________________________________

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]