Application: lokalize (23.08.2) Qt Version: 5.15.11 Frameworks Version: 5.111.0 Operating System: Linux 6.5.6-1-default x86_64 Windowing System: X11 Distribution: "openSUSE Tumbleweed" DrKonqi: 5.27.8 [KCrashBackend] -- Information about the crash: I edited several plurals without problems and the last one stayed fuzzy but was ok, so I used Ctrl+U to make ok. At that moment lokalize crashed. The reporter is unsure if this crash is reproducible. -- Backtrace: Application: Lokalize (lokalize), signal: Segmentation fault [KCrash Handler] #4 0x00007f28b2d8610c in std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x2f007300620069) at /usr/include/c++/13/bits/atomic_base.h:505 #5 QAtomicOps<int>::loadRelaxed<int> (_q_value=<error reading variable: Cannot access memory at address 0x2f007300620069>) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:239 #6 QBasicAtomicInteger<int>::loadRelaxed (this=0x2f007300620069) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:107 #7 QtPrivate::RefCount::deref (this=0x2f007300620069) at ../../include/QtCore/../../src/corelib/tools/qrefcount.h:66 #8 QString::operator= (this=0x5649f9daa710, other=...) at text/qstring.cpp:2408 #9 0x00005649f3eb8c3e in MergeCatalog::copyFromBaseCatalog (this=0x5649f94a7970, pos=..., options=0) at /usr/src/debug/lokalize-23.08.2/src/mergemode/mergecatalog.cpp:51 #10 0x00007f28b2f25442 in QtPrivate::QSlotObjectBase::call (a=0x7fffbc543610, r=0x5649f94a7970, this=0x5649f9ad6c60) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #11 doActivate<false> (sender=0x5649f84beb00, signal_index=9, argv=0x7fffbc543610) at kernel/qobject.cpp:3925 #12 0x00007f28b2f1e0af in QMetaObject::activate (sender=sender@entry=0x5649f84beb00, m=m@entry=0x5649f3fc19e0 <Catalog::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffbc543610) at kernel/qobject.cpp:3985 #13 0x00005649f3f1db68 in Catalog::signalEntryModified (_t1=..., this=0x5649f84beb00) at /usr/src/debug/lokalize-23.08.2/build/src/liblokalize_autogen/include/moc_catalog.cpp:714 #14 Catalog::targetInsert (this=0x5649f84beb00, pos=..., arg=...) at /usr/src/debug/lokalize-23.08.2/src/catalog/catalog.cpp:838 #15 0x00005649f3f160fc in InsTextCmd::doRedo (this=0x5649f7659b90) at /usr/src/debug/lokalize-23.08.2/src/catalog/cmd.cpp:111 #16 0x00005649f3f15c63 in LokalizeUnitCmd::redo (this=this@entry=0x5649f7659b90) at /usr/src/debug/lokalize-23.08.2/src/catalog/cmd.cpp:40 #17 0x00005649f3f15cad in LokalizeTargetCmd::redo (this=0x5649f7659b90) at /usr/src/debug/lokalize-23.08.2/src/catalog/cmd.cpp:67 #18 0x00007f28b4145185 in QUndoStack::push (this=0x5649f84beb00, cmd=<optimized out>) at util/qundostack.cpp:639 #19 0x00005649f3e967b9 in TranslationUnitTextEdit::contentsChanged (this=0x5649f8b46440, offset=8, charsRemoved=<optimized out>, charsAdded=<optimized out>) at /usr/src/debug/lokalize-23.08.2/src/xlifftextedit.cpp:488 #20 0x00007f28b2f25442 in QtPrivate::QSlotObjectBase::call (a=0x7fffbc543950, r=0x5649f8b46440, this=0x5649fa1ac770) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #21 doActivate<false> (sender=0x5649f78c6e90, signal_index=3, argv=0x7fffbc543950) at kernel/qobject.cpp:3925 #22 0x00007f28b369e0a3 in QTextDocument::contentsChange(int, int, int) () from /lib64/libQt5Gui.so.5 #23 0x00007f28b36b588b in QTextDocumentPrivate::finishEdit() () from /lib64/libQt5Gui.so.5 #24 0x00007f28b36ed048 in QTextCursor::insertText(QString const&, QTextCharFormat const&) () from /lib64/libQt5Gui.so.5 #25 0x00007f28b36ed877 in QTextCursor::insertText(QString const&) () from /lib64/libQt5Gui.so.5 #26 0x00007f28b3f99ad6 in QWidgetTextControlPrivate::keyPressEvent (this=0x5649f85a0a90, e=0x7fffbc5440f0) at widgets/qwidgettextcontrol.cpp:1386 #27 0x00007f28b3f949fa in QWidgetTextControl::processEvent (this=this@entry=0x5649f7c2bd80, e=e@entry=0x7fffbc5440f0, coordinateOffset=..., contextWidget=contextWidget@entry=0x5649f8aa4910) at widgets/qwidgettextcontrol.cpp:1012 #28 0x00007f28b3f753df in QTextEditPrivate::sendControlEvent (e=0x7fffbc5440f0, this=0x5649f8bd9620) at widgets/qtextedit_p.h:103 #29 QTextEdit::keyPressEvent (this=<optimized out>, e=0x7fffbc5440f0) at widgets/qtextedit.cpp:1415 #30 0x00005649f3e918d2 in TranslationUnitTextEdit::keyPressEvent (this=0x5649f8b46440, keyEvent=0x7fffbc5440f0) at /usr/src/debug/lokalize-23.08.2/src/xlifftextedit.cpp:797 #31 0x00007f28b3de7aa5 in QWidget::event (this=this@entry=0x5649f8b46440, event=event@entry=0x7fffbc5440f0) at kernel/qwidget.cpp:8704 #32 0x00007f28b3e91f9e in QFrame::event (this=0x5649f8b46440, e=0x7fffbc5440f0) at widgets/qframe.cpp:550 #33 0x00007f28b3da519e in QApplicationPrivate::notify_helper (this=this@entry=0x5649f567c540, receiver=receiver@entry=0x5649f8b46440, e=e@entry=0x7fffbc5440f0) at kernel/qapplication.cpp:3640 #34 0x00007f28b3dad0b8 in QApplication::notify (this=<optimized out>, receiver=0x5649f8b46440, e=0x7fffbc5440f0) at kernel/qapplication.cpp:3002 #35 0x00007f28b2eed198 in QCoreApplication::notifyInternal2 (receiver=0x5649f8b46440, event=0x7fffbc5440f0) at kernel/qcoreapplication.cpp:1064 #36 0x00007f28b2eed1e2 in QCoreApplication::forwardEvent (receiver=<optimized out>, event=<optimized out>, originatingEvent=<optimized out>) at kernel/qcoreapplication.cpp:1079 #37 0x00007f28b3e02d5a in QWidgetWindow::event (this=0x5649f740aef0, event=0x7fffbc5440f0) at kernel/qwidgetwindow.cpp:293 #38 0x00007f28b3da519e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5649f740aef0, e=0x7fffbc5440f0) at kernel/qapplication.cpp:3640 #39 0x00007f28b2eed198 in QCoreApplication::notifyInternal2 (receiver=0x5649f740aef0, event=0x7fffbc5440f0) at kernel/qcoreapplication.cpp:1064 #40 0x00007f28b3578e19 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /lib64/libQt5Gui.so.5 #41 0x00007f28b355038c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5 #42 0x00007f28afefd54a in ?? () from /lib64/libQt5XcbQpa.so.5 #43 0x00007f28b1113ef0 in ?? () from /lib64/libglib-2.0.so.0 #44 0x00007f28b1115b18 in ?? () from /lib64/libglib-2.0.so.0 #45 0x00007f28b11161cc in g_main_context_iteration () from /lib64/libglib-2.0.so.0 #46 0x00007f28b2f460d6 in QEventDispatcherGlib::processEvents (this=0x5649f5768040, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #47 0x00007f28b2eebc2b in QEventLoop::exec (this=this@entry=0x7fffbc544380, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69 #48 0x00007f28b2ef40c0 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121 #49 0x00005649f3e6ea26 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/lokalize-23.08.2/src/main.cpp:128 [Inferior 1 (process 4826) detached] Reported using DrKonqi
More crashes in copyToBaseCatalog Łukasz?
I did as reported in "Information about the crash" (trying different corner cases) and cannot reproduce the crash. Feel free to reopen this report when you will be able to reproduce the crash and provide more details.
Created attachment 162790 [details] New crash information added by DrKonqi lokalize (23.08.2) using Qt 5.15.11 Busy editing .../nl/messages/krita/krita.po in plural element. Left single allone, was OK, and tried to enter %1 in front of plural and to change single word in plural word, but crashed already when entering %. -- Backtrace (Reduced): #4 0x00007f8bc4d8610c in std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x30) at /usr/include/c++/13/bits/atomic_base.h:505 #5 QAtomicOps<int>::loadRelaxed<int> (_q_value=<error reading variable: Cannot access memory at address 0x30>) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:239 #6 QBasicAtomicInteger<int>::loadRelaxed (this=0x30) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:107 [...] #8 QString::operator= (this=0x5622bc5539b0, other=...) at text/qstring.cpp:2408 #9 0x00005622b7bb9c3e in MergeCatalog::copyFromBaseCatalog (this=0x5622bc500700, pos=..., options=0) at /usr/src/debug/lokalize-23.08.2/src/mergemode/mergecatalog.cpp:51
See new DrKonqi report.
Now I can reproduce it, but it's not my bug.