bugGNU Octave - Bugs: bug #50664, upon normal exit GUI closes with...


bug #50664: upon normal exit GUI closes with " panic: Aborted -- stopping myself..."

Submitted by:  None
Submitted on:  Tue 28 Mar 2017 11:25:08 AM UTC  
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: Need InfoAssigned to: None
Originator Name: R. RietbroekOriginator Email: -unavailable-
Open/Closed: OpenRelease: 4.2.1
Operating System: GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 19 Jul 2017 08:44:35 PM UTC, comment #4:

I see the same problem on Arch Linux/amd64 octave 4.2.1 / qt5

Evgeniy <evgeniy>
Fri 23 Jun 2017 07:02:39 PM UTC, comment #3:

I used Qt 5.

The relevant code has changed quite a bit in the development branch, so it is quite possible that the problem was fixed.
I'll try building that branch when I get the chance.

Dario Meluzzi <dariome>
Fri 23 Jun 2017 06:24:13 PM UTC, comment #2:

Did you build Octave using Qt 4 or Qt 5? Does one exhibit this problem and not the other?

Can you try to reproduce this using the development branch of Octave, and see if something still needs to be done to resolve this going forward? I do not see this problem running Octave's development branch on either Debian or Ubuntu 14.04, but that could be my system or it could mean it has already been fixed. It would help if you can verify that it's fixed for you.

Mike Miller <mtmiller>
Project Administrator
Fri 23 Jun 2017 05:47:20 AM UTC, comment #1:

I encountered the same problem with octave-4.2.1 compiled on Ubuntu 14.04 using GCC 5.3.0. However in my case I get the abort message also when I type quit after starting octave with option --no-gui.
The cause of the problem seems to be that the octave_qt_link destructor (in file libgui/src/octave-qt-link.cc) deletes a QThread object whose event queue is still busy, causing that object to call abort.
To solve this problem I inserted calls to QThread::quit and QThread::wait in the octave_qt_link destructor before it deletes the QThread object:
In addition, I modified interpreter::main_loop (in file libinterp/corefcn/interpreter.cc) to return without calling clean_up_and_exit after catching octave::exit_exception, because clean_up_and_exit will get called later by interpreter::execute. Finally, I modified interpreter::clean_up_and_exit to avoid entering an infinite loop when the argument safe_to_return is false, which is the case after typing quit at the CLI.
With these changes the program exits without any error messages.
However these changes are not necessarily the proper way to resolve the problem. They are only presented to highlight the likely cause of the problem.

(file #41030, file #41031)

Dario Meluzzi <dariome>
Tue 28 Mar 2017 11:25:08 AM UTC, original submission:

When simply typing 'exit' or 'quit' in the GUI, octave closes with:


panic: Aborted -- stopping myself...
attempting to save variables to 'octave-workspace'...
panic: attempted clean up failed -- aborting...
octave exited with signal 6
Steps to reproduce:
1 from a shell start: octave
2 type exit or quit in gui

This does not happen when the command line version is used. But it is somewhat annoying as it leaves (empty) octave-workspace files around.

See also:

I also reported it at Arch:

Additional info:

  • Archlinux package Octave version 4.2.1-4
  • coredump attached (possibly a race condition?)


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #41030:  libgui-src.diff added by dariome (437B - application/octet-stream - diffs of the files I modified in my attempt to solve this problem)
file #41031:  corefcn.diff added by dariome (152B - application/octet-stream - diffs of the files I modified in my attempt to solve this problem)
file #40180:  coredump.txt added by None (6KiB - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by evgeniy (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by dariome (Updated the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 23 Jun 2017 06:24:13 PM UTCmtmillerItem GroupUnexpected Error=>Segfault, Bus Error, etc.
      StatusNone=>Need Info
    Fri 23 Jun 2017 05:47:20 AM UTCdariomeAttached File-=>Added libgui-src.diff, #41030
      Attached File-=>Added corefcn.diff, #41031
    Tue 28 Mar 2017 11:25:08 AM UTCNoneAttached File-=>Added coredump.txt, #40180

    Back to the top

    Powered by Savane 3.1-cleanup1