bugGNU TeXmacs - Bugs: bug #61884, Segmentation fault when closing...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #61884: Segmentation fault when closing windows with unsaved documents

Submitter:  Jeroen Wouters <jeronim>
Submitted:  Thu 20 Jan 2022 10:40:41 PM UTC
 
Category:  None Priority:  5 - Normal
Item Group:  Error Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Release:  2.1.1
Fixed Release:  None Fixed Release: 
Keywords: 

Mon 17 Oct 2022 09:23:41 AM UTC, comment #5: 

I just tried this with the Qt4 version from the website (from the rpm for Fedora) and the Qt5 AppImage version by Philippe. I can't reproduce it in either. It may be something about my particular version of Qt.

Jeroen Wouters <jeronim>
Project Member
Thu 19 May 2022 10:00:21 AM UTC, comment #4: 

I have obtained a more informative backtrace from gdb with full debug info (attached in txt and highlighted html format).

(file #53228, file #53229)

Jeroen Wouters <jeronim>
Project Member
Thu 27 Jan 2022 10:56:26 AM UTC, comment #3: 

I get the following on the terminal:

------------------------------------------------------------------------------
TeXmacs] With linked TrueType support
Throwing segmentation fault
-------------------------------------------------
Error message:
  segmentation fault

System information:
  TeXmacs version  : 2.1
  Built by         : jeroen
  Building date    : 2022-01-27T09:48:56
  Operating system : linux-gnu
  Vendor           : pc
  Processor        : x86_64
  Crash date       : Thu 27 Jan 09:50:42 GMT 2022

Editor status:
  Root path          : [ 9 ]
  Current path       : [ 9, 0, 0 ]
  Shifted path       : [ 9, 0, 0 ]
  Physical selection : [ 9, 0, 0 ] -- [ 9, 0, 0 ]

Backtrace of C++ stack:
  texmacs.bin() [0x5e6206]
  texmacs.bin() [0x4a5137]
  texmacs.bin() [0x475650]
  /lib64/libc.so.6 : () + 0x42750
  texmacs.bin() [0x7c70e9]
  /lib64/libQt5Widgets.so.5 : QWidget::event(QEvent*) + 0xc8c
  /lib64/libQt5Widgets.so.5 : QApplicationPrivate::notify_helper(QObject*, QEvent*) + 0x83
  texmacs.bin() [0x4819d2]
  /lib64/libQt5Core.so.5 : QCoreApplication::notifyInternal2(QObject*, QEvent*) + 0x128
  /lib64/libQt5Widgets.so.5 : () + 0x20bc6a
  /lib64/libQt5Widgets.so.5 : () + 0x20da24
  /lib64/libQt5Widgets.so.5 : QApplicationPrivate::notify_helper(QObject*, QEvent*) + 0x83
  texmacs.bin() [0x4819d2]
  /lib64/libQt5Core.so.5 : QCoreApplication::notifyInternal2(QObject*, QEvent*) + 0x128
  /lib64/libQt5Gui.so.5 : QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePrivate::GeometryChangeEvent*) + 0x201
  /lib64/libQt5Gui.so.5 : QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 0xac
  /lib64/libQt5XcbQpa.so.5 : () + 0x6f11e
  /lib64/libglib-2.0.so.0 : g_main_context_dispatch() + 0x1a0
  /lib64/libglib-2.0.so.0 : () + 0xaa208
  /lib64/libglib-2.0.so.0 : g_main_context_iteration() + 0x33
  /lib64/libQt5Core.so.5 : QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 0x68
  /lib64/libQt5Core.so.5 : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 0x132
  /lib64/libQt5Core.so.5 : QCoreApplication::exec() + 0x94
  texmacs.bin() [0x7d1af8]
  texmacs.bin() [0x7d1b55]
  texmacs.bin() [0x479104]
  texmacs.bin() [0x4c8f88]
  /lib64/libguile.so.17 : () + 0x71653
  /lib64/libguile.so.17 : () + 0x3f5be
  /lib64/libguile.so.17 : scm_c_catch() + 0x161
  /lib64/libguile.so.17 : scm_i_with_continuation_barrier() + 0xb5
  /lib64/libguile.so.17 : scm_c_with_continuation_barrier() + 0x44
  /lib64/libguile.so.17 : scm_i_with_guile_and_parent() + 0x3a
  /lib64/libguile.so.17 : scm_boot_guile() + 0x39
  texmacs.bin() [0x4c8fdd]
  texmacs.bin() [0x47b5a6]
  /lib64/libc.so.6 : () + 0x2d560
  /lib64/libc.so.6 : __libc_start_main() + 0x7c
  texmacs.bin() [0x475575]

-------------------------------------------------
terminate called after throwing an instance of 'string'
Aborted (core dumped)

Jeroen Wouters <jeronim>
Project Member
Thu 27 Jan 2022 06:32:49 AM UTC, comment #2: 

Do you have some crash logs to look at?

Massimiliano Gubinelli <mgubi>
Project Administrator
Fri 21 Jan 2022 10:08:15 AM UTC, comment #1: 

According to gdb the segmentation fault happens on line 57 of `QTMWindow.cpp` in side `void QTMWindow::moveEvent (QMoveEvent * event)`. This is with Qt 5.15.2.

The problem does not, in fact, seem to be related to unsaved changes. An apparently reliable way of triggering it is to open about 10 to 15 new blank documents in separate windows and then closing one of them.

Jeroen Wouters <jeronim>
Project Member
Thu 20 Jan 2022 10:40:41 PM UTC, original submission:  

With buffer management set to `Documents in separate windows`, I am seeing occasional segmentation faults when closing documents.

It seems to happen particularly when discarding documents with unsaved changes.

It is difficult to reproduce the problem, but the most reliable way I have found so far is to open a large number (>5?) of new windows, make changes in them and then close them without saving the changes, in rapid succession.

Jeroen Wouters <jeronim>
Project Member

 

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

Attached Files
file #53228:  texmacs-bt.txt added by jeronim (6KiB - text/plain)
file #53229:  texmacs-bt.html added by jeronim (10KiB - text/html)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mgubi (Posted a comment)
  • -email is unavailable- added by jeronim (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-19 jeronim Attached File- Added texmacs-bt.txt, #53228
        Attached File- Added texmacs-bt.html, #53229

    Back to the top


    Powered by Savane 3.9