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

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

[Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in oct


From: anonymous
Subject: [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter()
Date: Sat, 10 Apr 2021 02:43:26 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0

Follow-up Comment #13, bug #60334 (project octave):

I can confirm, that calling interpreter.shutdown() before ~interpreter()
solves the issue. Actually, interpreter.shutdown() contains also a function
call to m_symbol_table.cleanup() as proposed in the patch submitted.

However, I would prefer a solution as proposed in comment #12 because a
variable could go out of scope for a number of reasons (e.g. because an
exception was thrown even within a constructor, because of a return, break or
goto statement, for a static variable because exit was called, ...). The C++
language allows us to handle all those cases conveniently just by writing a
proper destructor. 


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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