[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/
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), (continued)
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), anonymous, 2021/04/05
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), John W. Eaton, 2021/04/05
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), anonymous, 2021/04/06
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), John W. Eaton, 2021/04/07
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), anonymous, 2021/04/07
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), anonymous, 2021/04/07
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), John W. Eaton, 2021/04/07
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), Rik, 2021/04/08
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), John W. Eaton, 2021/04/08
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), Rik, 2021/04/08
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(),
anonymous <=
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), Rik, 2021/04/15
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), Rik, 2021/04/15
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), Rik, 2021/04/15
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), Rik, 2021/04/19
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), Rik, 2021/04/19
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), John W. Eaton, 2021/04/19
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), Rik, 2021/04/19
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), Rik, 2021/04/19
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), John W. Eaton, 2021/04/19
- [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter(), Rik, 2021/04/20