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, 3 Apr 2021 13:46:36 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0

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

                 Summary: Embedded Octave crashes on exit in
octave::interpreter::~interpreter()
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sat 03 Apr 2021 05:46:34 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Segfault, Bus Error, etc.
                  Status: None
             Assigned to: None
         Originator Name: Octave User
        Originator Email: octave-user@a1.net
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Dear GNU/Octave developers,

If I'm using Octave 6.2.1 in module-octave of MBDyn
(https://public.gitlab.polimi.it/DAER/mbdyn), I get a SIGSEGV on exit in
"octave::interpreter::~interpreter()". If MBDyn is compiled with Octave 5.2.0,
everything works find.

The SIGSEGV happens when the destructor of the symbol_table is called, because
the cdef_manager is destroyed before the symbol_table and the symbol_table
still references objects from the cdef_manager.
You can verify that in the attached log file from valgrind.

This issue can be fixed by calling the destructor of the symbol table before
the constructor of the cdef_manager. I have attached a patch for that
purpose.
When applying that patch, Octave's test suite shows no regressions.

Best regards,
Octave User



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 03 Apr 2021 05:46:34 PM UTC  Name:
embedded-octave-fix-SIGSEGV-on-exit.patch  Size: 4KiB   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=51185>
-------------------------------------------------------
Date: Sat 03 Apr 2021 05:46:34 PM UTC  Name: valgrind.log  Size: 1MiB   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=51186>

    _______________________________________________________

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]