Bug 424079 - Kate crash during text move by mouse from another program
Summary: Kate crash during text move by mouse from another program
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 20.04.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-07-10 20:41 UTC by opensuse.lietuviu.kalba
Modified: 2023-03-25 14:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description opensuse.lietuviu.kalba 2020-07-10 20:41:06 UTC
Application: kate (20.04.2)

Qt Version: 5.12.7
Frameworks Version: 5.71.0
Operating System: Linux 5.3.18-lp152.20.7-default x86_64
Windowing system: X11
Distribution: "openSUSE Leap 15.2"

-- Information about the crash:
- What I was doing when the application crashed:

I unsuccessfully tried to copy text from MATLAB command window by keyboard shortcuts, thus I tried move selected text into empty document in Kate program. During this operation Kate crashed.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4c47f2d900 (LWP 7739))]

Thread 6 (Thread 0x7f4c1bac9700 (LWP 7751)):
#0  0x00007f4c3df2087d in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f4c1d93dfbb in cnd_wait (mtx=0x55a582fb4af8, cond=0x55a582fb4b20) at ../include/c11/threads_posix.h:155
#2  util_queue_thread_func (input=input@entry=0x55a58398ebd0) at ../src/util/u_queue.c:275
#3  0x00007f4c1d93dba7 in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#4  0x00007f4c3df1a4f9 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f4c42740f2f in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f4c13ac9700 (LWP 7750)):
#0  0x00007f4c3df2087d in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f4c1d93dfbb in cnd_wait (mtx=0x55a582fb4af8, cond=0x55a582fb4b20) at ../include/c11/threads_posix.h:155
#2  util_queue_thread_func (input=input@entry=0x55a58398e9f0) at ../src/util/u_queue.c:275
#3  0x00007f4c1d93dba7 in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#4  0x00007f4c3df1a4f9 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f4c42740f2f in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f4c1c2ca700 (LWP 7749)):
#0  0x00007f4c3df2087d in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f4c1d93dfbb in cnd_wait (mtx=0x55a582fb4af8, cond=0x55a582fb4b20) at ../include/c11/threads_posix.h:155
#2  util_queue_thread_func (input=input@entry=0x55a58398ea30) at ../src/util/u_queue.c:275
#3  0x00007f4c1d93dba7 in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#4  0x00007f4c3df1a4f9 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f4c42740f2f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f4c1cacb700 (LWP 7748)):
#0  0x00007f4c3df2087d in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f4c1d93dfbb in cnd_wait (mtx=0x55a582fb4af8, cond=0x55a582fb4b20) at ../include/c11/threads_posix.h:155
#2  util_queue_thread_func (input=input@entry=0x55a58398ea50) at ../src/util/u_queue.c:275
#3  0x00007f4c1d93dba7 in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#4  0x00007f4c3df1a4f9 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f4c42740f2f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f4c2b9e2700 (LWP 7741)):
#0  0x00007f4c427321d8 in read () from /lib64/libc.so.6
#1  0x00007f4c3be4b9a0 in read (__nbytes=16, __buf=0x7f4c2b9e1a60, __fd=<optimized out>) at /usr/include/bits/unistd.h:44
#2  g_wakeup_acknowledge (wakeup=0x55a5828cb3b0) at ../glib/gwakeup.c:210
#3  0x00007f4c3be04298 in g_main_context_check (context=context@entry=0x7f4c24000be0, max_priority=2147483647, fds=fds@entry=0x7f4c24004e90, n_fds=n_fds@entry=1) at ../glib/gmain.c:3732
#4  0x00007f4c3be04720 in g_main_context_iterate (context=context@entry=0x7f4c24000be0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:3951
#5  0x00007f4c3be0488c in g_main_context_iteration (context=0x7f4c24000be0, may_block=may_block@entry=1) at ../glib/gmain.c:4015
#6  0x00007f4c430cc19b in QEventDispatcherGlib::processEvents (this=0x7f4c24000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#7  0x00007f4c4306d32a in QEventLoop::exec (this=this@entry=0x7f4c2b9e1c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#8  0x00007f4c42e9310a in QThread::exec (this=this@entry=0x7f4c44c91d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:531
#9  0x00007f4c44a19cd5 in QDBusConnectionManager::run (this=0x7f4c44c91d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#10 0x00007f4c42e948b2 in QThreadPrivate::start (arg=0x7f4c44c91d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:361
#11 0x00007f4c3df1a4f9 in start_thread () from /lib64/libpthread.so.0
#12 0x00007f4c42740f2f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f4c47f2d900 (LWP 7739)):
[KCrash Handler]
#4  std::__atomic_base<int>::operator++ (this=0x0) at /usr/include/c++/7/bits/atomic_base.h:296
#5  QAtomicOps<int>::ref<int> (_q_value=...) at /usr/include/qt5/QtCore/qatomic_cxx11.h:265
#6  QBasicAtomicInteger<int>::ref (this=0x0) at /usr/include/qt5/QtCore/qbasicatomic.h:114
#7  QExplicitlySharedDataPointer<KateLineLayout>::QExplicitlySharedDataPointer (adata=0x0, this=0x7fff33051980) at /usr/include/qt5/QtCore/qshareddata.h:285
#8  KateLineLayout::viewLine (this=<optimized out>, viewLine=viewLine@entry=0) at /usr/src/debug/ktexteditor-5.70.1-lp152.1.1.x86_64/src/render/katelinelayout.cpp:189
#9  0x00007f4c4794d346 in KateLayoutCache::textLayout (this=<optimized out>, realLine=<optimized out>, _viewLine=_viewLine@entry=0) at /usr/src/debug/ktexteditor-5.70.1-lp152.1.1.x86_64/src/render/katelayoutcache.cpp:348
#10 0x00007f4c479861aa in KateViewInternal::viewLineOffset (this=this@entry=0x55a583da1f80, virtualCursor=..., offset=<optimized out>, keepX=keepX@entry=false) at /usr/src/debug/ktexteditor-5.70.1-lp152.1.1.x86_64/src/view/kateviewinternal.cpp:1440
#11 0x00007f4c4798b700 in KateViewInternal::makeVisible (this=this@entry=0x55a583da1f80, c=..., endCol=-1, force=force@entry=false, center=center@entry=false, calledExternally=calledExternally@entry=false) at /usr/src/debug/ktexteditor-5.70.1-lp152.1.1.x86_64/src/view/kateviewinternal.cpp:715
#12 0x00007f4c4798bd9d in KateViewInternal::updateCursor (this=this@entry=0x55a583da1f80, newCursor=..., force=force@entry=true, center=center@entry=false, calledExternally=calledExternally@entry=false) at /usr/src/debug/ktexteditor-5.70.1-lp152.1.1.x86_64/src/view/kateviewinternal.cpp:1991
#13 0x00007f4c479904c7 in KateViewInternal::editEnd (this=0x55a583da1f80, editTagLineStart=-1, editTagLineEnd=-1, tagFrom=<optimized out>) at /usr/src/debug/ktexteditor-5.70.1-lp152.1.1.x86_64/src/view/kateviewinternal.cpp:3562
#14 0x00007f4c4797173f in KTextEditor::ViewPrivate::editEnd (this=<optimized out>, editTagLineStart=<optimized out>, editTagLineEnd=<optimized out>, tagFrom=<optimized out>) at /usr/src/debug/ktexteditor-5.70.1-lp152.1.1.x86_64/src/view/kateview.cpp:2120
#15 0x00007f4c478f013b in KTextEditor::DocumentPrivate::editEnd (this=0x55a583b2b2e0) at /usr/src/debug/ktexteditor-5.70.1-lp152.1.1.x86_64/src/document/katedocument.cpp:1066
#16 0x00007f4c4799141d in KateViewInternal::dropEvent (this=0x55a583da1f80, event=0x7fff330520b0) at /usr/src/debug/ktexteditor-5.70.1-lp152.1.1.x86_64/src/view/kateviewinternal.cpp:3336
#17 0x00007f4c4412ad18 in QWidget::event (this=0x55a583da1f80, event=0x7fff330520b0) at kernel/qwidget.cpp:9343
#18 0x00007f4c440eaa0c in QApplicationPrivate::notify_helper (this=this@entry=0x55a5827eb1e0, receiver=receiver@entry=0x55a583da1f80, e=e@entry=0x7fff330520b0) at kernel/qapplication.cpp:3701
#19 0x00007f4c440f2694 in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fff330520b0) at kernel/qapplication.cpp:3447
#20 0x00007f4c4306f0d8 in QCoreApplication::notifyInternal2 (receiver=0x55a583da1f80, event=0x7fff330520b0) at kernel/qcoreapplication.cpp:1088
#21 0x00007f4c4306f124 in QCoreApplication::forwardEvent (receiver=<optimized out>, event=event@entry=0x7fff330520b0, originatingEvent=originatingEvent@entry=0x7fff33052450) at kernel/qcoreapplication.cpp:1103
#22 0x00007f4c4414791c in QWidgetWindow::handleDropEvent (this=this@entry=0x55a583969110, event=event@entry=0x7fff33052450) at kernel/qwidgetwindow.cpp:949
#23 0x00007f4c44148820 in QWidgetWindow::event (this=0x55a583969110, event=0x7fff33052450) at kernel/qwidgetwindow.cpp:331
#24 0x00007f4c440eaa0c in QApplicationPrivate::notify_helper (this=this@entry=0x55a5827eb1e0, receiver=receiver@entry=0x55a583969110, e=e@entry=0x7fff33052450) at kernel/qapplication.cpp:3701
#25 0x00007f4c440f2020 in QApplication::notify (this=0x7fff33052b90, receiver=0x55a583969110, e=0x7fff33052450) at kernel/qapplication.cpp:3447
#26 0x00007f4c4306f0d8 in QCoreApplication::notifyInternal2 (receiver=0x55a583969110, event=0x7fff33052450) at kernel/qcoreapplication.cpp:1088
#27 0x00007f4c4306f2ae in QCoreApplication::sendEvent (receiver=receiver@entry=0x55a583969110, event=event@entry=0x7fff33052450) at kernel/qcoreapplication.cpp:1476
#28 0x00007f4c43651486 in QGuiApplicationPrivate::processDrop (w=w@entry=0x55a583969110, dropData=dropData@entry=0x7f4c2c0069b0, p=..., supportedActions=..., supportedActions@entry=..., buttons=..., modifiers=...) at kernel/qguiapplication.cpp:3182
#29 0x00007f4c4362a214 in QWindowSystemInterface::handleDrop (window=0x55a583969110, dropData=0x7f4c2c0069b0, p=..., supportedActions=supportedActions@entry=..., buttons=..., buttons@entry=..., modifiers=...) at kernel/qwindowsysteminterface.cpp:919
#30 0x00007f4c36712010 in QXcbDrag::handleDrop (this=0x55a582898a80, event=event@entry=0x7f4c2c013920, b=b@entry=..., mods=mods@entry=...) at qxcbdrag.cpp:965
#31 0x00007f4c366f8288 in QXcbWindow::handleClientMessageEvent (this=0x55a58396a480, event=0x7f4c2c013920) at qxcbwindow.cpp:1768
#32 0x00007f4c366e4194 in QXcbConnection::handleXcbEvent (this=this@entry=0x55a5827ff610, event=event@entry=0x7f4c2c013920) at qxcbconnection.cpp:595
#33 0x00007f4c366e4dd5 in QXcbConnection::processXcbEvents (this=0x55a5827ff610, flags=flags@entry=...) at qxcbconnection.cpp:1027
#34 0x00007f4c3670b3a3 in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:103
#35 0x00007f4c3be04464 in g_main_dispatch (context=0x7f4c2c004fa0) at ../glib/gmain.c:3216
#36 g_main_context_dispatch (context=context@entry=0x7f4c2c004fa0) at ../glib/gmain.c:3881
#37 0x00007f4c3be04800 in g_main_context_iterate (context=context@entry=0x7f4c2c004fa0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:3954
#38 0x00007f4c3be0488c in g_main_context_iteration (context=0x7f4c2c004fa0, may_block=may_block@entry=1) at ../glib/gmain.c:4015
#39 0x00007f4c430cc17f in QEventDispatcherGlib::processEvents (this=0x55a5828c8c30, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#40 0x00007f4c4306d32a in QEventLoop::exec (this=this@entry=0x7fff33052940, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#41 0x00007f4c43076530 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1389
#42 0x000055a5809f155a in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kate-20.04.2-lp152.1.1.x86_64/kate/main.cpp:633
[Inferior 1 (process 7739) detached]

Possible duplicates by query: bug 411883.

Reported using DrKonqi
Comment 1 Justin Zobel 2020-11-13 05:41:42 UTC
I've just tested this on kate from git master by copying the entire first comment in by drag and drop and I cannot reproduce this issue.

Does this happen for text from all other applications or just MATLAB?

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I'm setting status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 2 opensuse.lietuviu.kalba 2020-11-23 07:19:36 UTC
Now I can not reproduce this bug in openSUSE Leap 15.2 today with Kate 20.04.2.
I guess there were some JAVA issues related to MATLAB previously...