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

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

[Octave-bug-tracker] [bug #63548] GUI closing suddenly when selecting a


From: Rik
Subject: [Octave-bug-tracker] [bug #63548] GUI closing suddenly when selecting a recently deleted file
Date: Tue, 20 Dec 2022 00:46:42 -0500 (EST)

Follow-up Comment #10, bug #63548 (project octave):

This backtrace is from the development branch, but seems to provide another
clue.  The problem arises in the destructor ~file_editor_tab.

One thing I notice is that the segfault happens when the Editor tab has a new
"unnamed" buffer present.  If the buffer already contains a file, say "ls.m",
then using the Recently Used menu doesn't produce a segfault.  My guess, right
now, is that the "unnamed" buffer tab is closed to make way for the previously
edited file, and somewhere there is no check that the buffer is empty and a
nullptr.


#0  0x00007f729e1dcef2 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#1  0x00007f729e1bf939 in QWidget::clearFocus() () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#2  0x00007f729e1c0aa8 in QWidget::~QWidget() () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#3  0x00007f729e33efdd in QStatusBar::~QStatusBar() () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#4  0x00007f729d6bba6e in QObjectPrivate::deleteChildren() () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f729e1c0bc6 in QWidget::~QWidget() () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007f72a18f0e9d in octave::file_editor_tab::~file_editor_tab
(this=0x5628bc887ee0, __in_chrg=<optimized out>)
    at libgui/src/m-editor/file-editor-tab.cc:295
#7  0x00007f72a18f0eca in octave::file_editor_tab::~file_editor_tab
(this=0x5628bc887ee0, __in_chrg=<optimized out>)
    at libgui/src/m-editor/file-editor-tab.cc:295
#8  0x00007f72a1917d4e in octave::file_editor::request_open_file
(this=0x5628bcdc2750, openFileName=..., encoding=..., line=-1, 
    debug_pointer=false, breakpoint_marker=false, insert=true, cond=...,
index=-1, bookmarks=...) at libgui/src/m-editor/file-editor.cc:1657
#9  0x00007f72a1913a1a in octave::file_editor::request_mru_open_file
(this=0x5628bcdc2750, action=0x5628bcde7850)
    at libgui/src/m-editor/file-editor.cc:638
#10 0x00007f72a1933126 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>,
QtPrivate::List<QAction*>, void, void
(octave::file_editor::*)(QAction*)>::call (
    f=(void (octave::file_editor::*)(octave::file_editor * const, QAction *))
0x7f72a1913918 <octave::file_editor::request_mru_open_file(QAction*)>, 
    o=0x5628bcdc2750, arg=0x7ffcbdc75b60) at
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:152
#11 0x00007f72a1931899 in QtPrivate::FunctionPointer<void
(octave::file_editor::*)(QAction*)>::call<QtPrivate::List<QAction*>, void> (
    f=(void (octave::file_editor::*)(octave::file_editor * const, QAction *))
0x7f72a1913918 <octave::file_editor::request_mru_open_file(QAction*)>, 
    o=0x5628bcdc2750, arg=0x7ffcbdc75b60) at
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:185
#12 0x00007f72a192f0b3 in QtPrivate::QSlotObject<void
(octave::file_editor::*)(QAction*), QtPrivate::List<QAction*>, void>::impl
(which=1, 
    this_=0x5628bcdf00d0, r=0x5628bcdc2750, a=0x7ffcbdc75b60, ret=0x0) at
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:418
#13 0x00007f729d6c8793 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f729e307726 in QMenu::triggered(QAction*) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f729e3112cb in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f729d6c87c8 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f729e17bbe6 in QAction::triggered(bool) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f729e17e8fc in QAction::activate(QAction::ActionEvent) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f729e309142 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f729e310d39 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f729e1c54ee in QWidget::event(QEvent*) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f729e182713 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f729e18a364 in QApplication::notify(QObject*, QEvent*) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f72a1985d56 in octave::octave_qapplication::notify
(this=0x5628bc32edc0, receiver=0x5628bcde7a30, ev=0x7ffcbdc76400)
    at libgui/src/octave-qobject.cc:148
#25 0x00007f729d690e3a in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007f729e188e47 in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool)
() from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f729e1df843 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f729e1e1fd5 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f729e182713 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007f72a1985d56 in octave::octave_qapplication::notify
(this=0x5628bc32edc0, receiver=0x5628bc4f6850, ev=0x7ffcbdc767d0)
    at libgui/src/octave-qobject.cc:148
#31 0x00007f729d690e3a in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007f729da77307 in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
()
   from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#33 0x00007f729da4ca2c in
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
()
   from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#34 0x00007f7257b81d6e in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#35 0x00007f729ac8bd3b in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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