You are not logged in.

#1 2024-12-12 21:34:04

dietzi96
Member
Registered: 2015-07-04
Posts: 20

Texmaker crashes (segmentation fault)

Hi,

when I use texmaker it segfaults when clicked on compile fast. When started by terminal the following is printed:

beginResetModel called on without calling endResetModel first
segmentation fault (core dumped)

After having tried compile fast and a crash, texmaker crashes when loading that .tex file, too. I am using texmaker 6.0.0-1 with sway as desktop environment. Reinstalling texmaker did not help.

Any ideas? Is there an option to show more debug information (-v or --verbose did not work)?

Offline

#2 2024-12-19 01:32:24

Manchalar
Member
Registered: 2021-06-11
Posts: 14

Re: Texmaker crashes (segmentation fault)

Hey,

I just had the same problem, when run through terminal with the verbose setting i get the same fault

 beginResetModel called on without calling endResetModel first
Segmentation fault (core dumped) 

I tried reverting texmaker to an older version and only got the segmentation fault. after playing with it a bit I managed to compile a pdf by switching the method from quick build to PDFLaTeX but can only occasionally get the pdf to display in Texmaker. When i do get the pdf to display it seems fine and stable and I can use any build method I want. seems like it has something to do with displaying the pdf but the behavior is very inconsistent. At the very least this is workable but far from ideal.

Last edited by Manchalar (2024-12-19 01:32:58)

Offline

#3 2024-12-19 06:41:38

mithrial
Member
Registered: 2017-03-05
Posts: 59

Re: Texmaker crashes (segmentation fault)

As a workaround, you could switch to TeXstudio, a successor to texmaker.

Offline

#4 2024-12-19 08:35:46

seth
Member
Registered: 2012-09-03
Posts: 60,776

Offline

#5 2024-12-19 17:50:12

Manchalar
Member
Registered: 2021-06-11
Posts: 14

Re: Texmaker crashes (segmentation fault)

okay so I went and got the core dump, looks like it exited with signal 11 from what I understand that means that it has written into memory that is not allocated for it but I still don't know what to do with this. Attached is the output I got from the core dump.

           PID: 42818 (texmaker)
           UID: 1000 (Manchalar)
           GID: 1000 (Manchalar)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-12-19 11:50:31 EST (48min ago)
  Command Line: texmaker -v
    Executable: /usr/bin/texmaker
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-Alacritty@563cc7be4f704f90918835d0690254ec.service
          Unit: user@1000.service
     User Unit: app-Alacritty@563cc7be4f704f90918835d0690254ec.service
         Slice: user-1000.slice
     Owner UID: 1000 (Manchalar)
       Boot ID: 8e71154c241a4436abe14414f6eecc4e
    Machine ID: 7469a01837994426ad7044e2e612520e
      Hostname: Leviathan
       Storage: /var/lib/systemd/coredump/core.texmaker.1000.8e71154c241a4436abe14414f6eecc4e.42818.1734627031000000.zst (present)
  Size on Disk: 10M
       Message: Process 42818 (texmaker) of user 1000 dumped core.

                Stack trace of thread 42818:
                #0  0x000063853cad4590 n/a (n/a + 0x0)
                #1  0x000063853cadcd41 n/a (n/a + 0x0)
                #2  0x000063853ca8aad2 n/a (n/a + 0x0)
                #3  0x000063853cad7f28 n/a (n/a + 0x0)
                #4  0x000063853cadbea6 n/a (n/a + 0x0)
                #5  0x000063853cb2b52d n/a (n/a + 0x0)
                #6  0x000078c5a17b1d7a n/a (libQt6Core.so.6 + 0x1b1d7a)
                #7  0x000078c5a2167484 _ZN7QAction8activateENS_11ActionEventE (libQt6Gui.so.6 + 0x567484)
                #8  0x000078c5a28e2bf9 n/a (libQt6Widgets.so.6 + 0x2e2bf9)
                #9  0x000078c5a28e4c03 n/a (libQt6Widgets.so.6 + 0x2e4c03)
                #10 0x000078c5a274f816 _ZN7QWidget5eventEP6QEvent (libQt6Widgets.so.6 + 0x14f816)
                #11 0x000078c5a26fe78a _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0xfe78a)
                #12 0x000078c5a2702a26 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0x102a26)
                #13 0x000078c5a1757ac8 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0x157ac8)
                #14 0x000078c5a26f613d _ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Ebb (libQt6Widgets.so.6 + 0xf613d)
                #15 0x000078c5a2769d62 n/a (libQt6Widgets.so.6 + 0x169d62)
                #16 0x000078c5a276ae40 n/a (libQt6Widgets.so.6 + 0x16ae40)
                #17 0x000078c5a26fe78a _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0xfe78a)
                #18 0x000078c5a1757ac8 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0x157ac8)
                #19 0x000078c5a1d8752b _ZN22QGuiApplicationPrivate17processMouseEventEPN29QWindowSystemInterfacePrivate10MouseEventE (libQt6Gui.so.6 + 0x18752b)
                #20 0x000078c5a1e02b44 _ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Gui.so.6 + 0x202b44)
                #21 0x000078c5a224ea14 n/a (libQt6Gui.so.6 + 0x64ea14)
                #22 0x000078c59ff3e559 n/a (libglib-2.0.so.0 + 0x5d559)
                #23 0x000078c59ffa1257 n/a (libglib-2.0.so.0 + 0xc0257)
                #24 0x000078c59ff3da55 g_main_context_iteration (libglib-2.0.so.0 + 0x5ca55)
                #25 0x000078c5a19c22fd _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x3c22fd)
                #26 0x000078c5a1761ee6 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x161ee6)
                #27 0x000078c5a1758f4f _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0x158f4f)
                #28 0x000063853c87b9a6 n/a (n/a + 0x0)
                #29 0x000078c5a1034e08 n/a (libc.so.6 + 0x25e08)
                #30 0x000078c5a1034ecc __libc_start_main (libc.so.6 + 0x25ecc)
                #31 0x000063853c87fa75 n/a (n/a + 0x0)
                ELF object binary architecture: AMD x86-64

GNU gdb (GDB) 15.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/texmaker...

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Reading symbols from /home/Nick/.cache/debuginfod_client/c3857cfa5a969fbe02b85a3c57730cb3779e271a/debuginfo...

warning: Can't open file /memfd:JSGCHeap:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JSVMStack:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:unknown-usage:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:wayland-shm (deleted) during file-backed mapping note processing
[New LWP 42818]
[New LWP 42822]
[New LWP 42820]
[New LWP 42821]
[New LWP 42825]
[New LWP 42839]
[New LWP 42823]
[New LWP 42826]
[New LWP 42819]
[New LWP 42824]
[New LWP 42836]
[New LWP 42828]
[New LWP 42835]
[New LWP 42827]
[New LWP 42838]
[New LWP 42845]
[New LWP 42837]
[New LWP 42850]
[New LWP 42840]
[New LWP 42843]
[New LWP 42848]
[New LWP 42842]
[New LWP 42849]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `texmaker -v'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000063853cad4590 in qDeleteAll<QList<BookmarkNode*>::const_iterator> (begin=..., end=...) at /usr/include/qt6/QtCore/qalgorithms.h:27

warning: Source file is more recent than executable.
27	        delete *begin;
[Current thread is 1 (Thread 0x78c58c8ef4c0 (LWP 42818))]
(gdb) bt
#0  0x000063853cad4590 in qDeleteAll<QList<BookmarkNode*>::const_iterator> (begin=..., end=...) at /usr/include/qt6/QtCore/qalgorithms.h:27
#1  0x000063853cadcd41 in qDeleteAll<QList<BookmarkNode*> > (c=...) at /usr/include/qt6/QtCore/qlist.h:183
#2  BookmarkNode::clear (this=0x6385690d2f01) at /usr/src/debug/texmaker/texmaker-6.0.0/src/qpdfbookmarkmodel.cpp:68
#3  QPdfBookmarkModelPrivate::rebuild (this=0x638568269830) at /usr/src/debug/texmaker/texmaker-6.0.0/src/qpdfbookmarkmodel.cpp:159
#4  0x000063853ca8aad2 in DocumentView::open (this=0x63856909d810, filePath=...) at /usr/src/debug/texmaker/texmaker-6.0.0/src/documentview.cpp:490
#5  0x000063853cad7f28 in PdfViewerWidget::openFile (this=this@entry=0x638568fcbd80, fn=..., ec=..., pc=...) at /usr/src/debug/texmaker/texmaker-6.0.0/src/pdfviewerwidget.cpp:334
#6  0x000063853cadbea6 in PdfViewerWidget::PdfViewerWidget (this=<optimized out>, fileName=..., externalCommand=..., ghostscriptCommand=..., lpopt=..., edfocus=..., SpellLang=...,
    startScale=<optimized out>, parent=<optimized out>, this=<optimized out>, fileName=..., externalCommand=..., ghostscriptCommand=..., lpopt=..., edfocus=..., SpellLang=...,
    startScale=<optimized out>, parent=<optimized out>) at /usr/include/qt6/QtCore/qarraydata.h:59
#7  0x000063853cb2b52d in Texmaker::fileOpen (this=0x6385678293c0) at /usr/src/debug/texmaker/texmaker-6.0.0/src/texmaker.cpp:3702
#8  0x000078c5a17b1d7a in doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4136
#9  0x000078c5a2167484 in QAction::triggered (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/qt6-base/build/src/gui/Gui_autogen/include/moc_qaction.cpp:479
#10 QAction::activate (this=0x638568983280, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qaction.cpp:1104
#11 0x000078c5a28e2bf9 in QMenuPrivate::activateCausedStack (this=0x638568561dc0, causedStack=..., action=0x638568983280, action_e=QAction::Trigger, self=<optimized out>)
    at /usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qmenu.cpp:1420
#12 0x000078c5a28e4c03 in QMenuPrivate::activateAction (this=0x638568561dc0, action=0x638568983280, action_e=QAction::Trigger, self=true)
    at /usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qmenu.cpp:1502
#13 0x000078c5a274f816 in QWidget::event (this=0x638568983fa0, event=0x7ffead7ceca0) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidget.cpp:8965
#14 0x000078c5a26fe78a in QApplicationPrivate::notify_helper (this=this@entry=0x6385670e0a10, receiver=receiver@entry=0x638568983fa0, e=e@entry=0x7ffead7ceca0)
    at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3296
#15 0x000078c5a2702a26 in QApplication::notify (this=<optimized out>, receiver=0x638568983fa0, e=0x7ffead7ceca0) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2774
#16 0x000078c5a1757ac8 in QCoreApplication::notifyInternal2 (receiver=0x638568983fa0, event=0x7ffead7ceca0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1168
#17 0x000078c5a1757b1d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1626
#18 0x000078c5a26f613d in QApplicationPrivate::sendMouseEvent (receiver=0x638568983fa0, event=0x7ffead7ceca0, alienWidget=<optimized out>, nativeWidget=0x638568983fa0,
    buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2355
#19 0x000078c5a2769d62 in QWidgetWindow::handleMouseEvent (this=0x6385683d3e70, event=event@entry=0x7ffead7cf0d0) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetwindow.cpp:575
#20 0x000078c5a276ae40 in QWidgetWindow::event (this=0x6385683d3e70, event=0x7ffead7cf0d0) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetwindow.cpp:299
#21 0x000078c5a26fe78a in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x6385683d3e70, e=0x7ffead7cf0d0)
    at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3296
#22 0x000078c5a1757ac8 in QCoreApplication::notifyInternal2 (receiver=0x6385683d3e70, event=0x7ffead7cf0d0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1168
#23 0x000078c5a1757b1d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1626
#24 0x000078c5a1d8752b in QGuiApplicationPrivate::processMouseEvent (e=0x78c57c002960) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qguiapplication.cpp:2461
#25 0x000078c5a1e02b44 in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1114
#26 0x000078c5a224ea14 in userEventSourceDispatch (source=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/platform/unix/qeventdispatcher_glib.cpp:38
#27 0x000078c59ff3e559 in g_main_dispatch (context=0x78c584000f30) at ../glib/glib/gmain.c:3357
#28 0x000078c59ffa1257 in g_main_context_dispatch_unlocked (context=0x78c584000f30) at ../glib/glib/gmain.c:4208
#29 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x78c584000f30, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4273
#30 0x000078c59ff3da55 in g_main_context_iteration (context=0x78c584000f30, may_block=1) at ../glib/glib/gmain.c:4338
#31 0x000078c5a19c22fd in QEventDispatcherGlib::processEvents (this=0x6385670ceb30, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#32 0x000078c5a1761ee6 in QEventLoop::processEvents (this=0x7ffead7cf590, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:103
#33 QEventLoop::exec (this=0x7ffead7cf590, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:194
#34 0x000078c5a1758f4f in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74
#35 0x000078c5a26fa6ba in QApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2564
#36 0x000063853c87b9a6 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/texmaker/texmaker-6.0.0/src/main.cpp:111

Offline

#6 2024-12-19 18:37:03

seth
Member
Registered: 2012-09-03
Posts: 60,776

Re: Texmaker crashes (segmentation fault)

signal 11 is SIGSEGV, a segfault - means a legit crash wink

#0  0x000063853cad4590 in qDeleteAll<QList<BookmarkNode*>::const_iterator> (begin=..., end=...) at /usr/include/qt6/QtCore/qalgorithms.h:27
#1  0x000063853cadcd41 in qDeleteAll<QList<BookmarkNode*> > (c=...) at /usr/include/qt6/QtCore/qlist.h:183
#2  BookmarkNode::clear (this=0x6385690d2f01) at /usr/src/debug/texmaker/texmaker-6.0.0/src/qpdfbookmarkmodel.cpp:68
#3  QPdfBookmarkModelPrivate::rebuild (this=0x638568269830) at /usr/src/debug/texmaker/texmaker-6.0.0/src/qpdfbookmarkmodel.cpp:159
#4  0x000063853ca8aad2 in DocumentView::open (this=0x63856909d810, filePath=...) at /usr/src/debug/texmaker/texmaker-6.0.0/src/documentview.cpp:490
#5  0x000063853cad7f28 in PdfViewerWidget::openFile (this=this@entry=0x638568fcbd80, fn=..., ec=..., pc=...) at /usr/src/debug/texmaker/texmaker-6.0.0/src/pdfviewerwidget.cpp:334
#6  0x000063853cadbea6 in PdfViewerWidget::PdfViewerWidget (this=<optimized out>, fileName=..., externalCommand=..., ghostscriptCommand=..., lpopt=..., edfocus=..., SpellLang=...,

Crashes inside the texmaker code and is related to PDF bookmarks when opening the PDF?
Does this happen w/ every tex file? Anything special about yours? Tried some demo file?

https://fossies.org/dox/texmaker-6.0.0/ … tml#l00159
Since BookmarkNode::clear operates on a QVector, it's more likely that m_rootNode is dangling at this point.
I couldn't find any kind of bugtracker for texmaker, apparently you can send a message via https://www.xm1math.net/texmaker/doc.html#contact :\

Offline

Board footer

Powered by FluxBB