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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62207] segfault in bug-35881/bug-35881.tst in


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #62207] segfault in bug-35881/bug-35881.tst in 32-bit ARM and MIPS
Date: Sat, 26 Mar 2022 00:11:36 -0400 (EDT)

Follow-up Comment #17, bug #62207 (project octave):

What is pt-eval.cc:3842?  In the current stable branch, that is the throw
marked with "<<==" at the end of the following code block in
tree_evaluator::visit_statement:


        catch (const execution_exception& ee)
          {
            error_system& es = m_interpreter.get_error_system ();

            if ((m_interpreter.interactive ()
                 || application::forced_interactive ())
                && ((es.debug_on_error ()
                     && m_bp_table.debug_on_err (es.last_error_id ()))
                    || (es.debug_on_caught ()
                        && m_bp_table.debug_on_caught (es.last_error_id ())))
                && in_user_code ())
              {
                es.save_exception (ee);
                es.display_exception (ee);

                enter_debugger ();

                // It doesn't make sense to continue execution after an
                // error occurs so force the debugger to quit all debug
                // levels and return the the top prompt.

                throw quit_debug_exception (true);
              }
            else
              throw;   <<==
          }


If it is the same in the version of Octave that you are compiling when you see
this error, then is there something wrong about the use of "throw" in this
context?  How does that cause the "stack-use-after-scope" ASAN error?

What compiler version are you using?  Is the result the same if you use a
different compiler version?


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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