Bug 487427

Summary: Plasma crash
Product: [Plasma] plasmashell Reporter: medin <med.medin.2014>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: duha.bugs, nate
Priority: NOR    
Version First Reported In: 6.0.5   
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description medin 2024-05-23 13:08:00 UTC
Core was generated by `/usr/bin/plasmashell --no-respawn'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  std::__atomic_base<QThreadData*>::load (this=<optimized out>, __m=<optimized out>, this=<optimized out>, __m=<optimized out>) at /usr/include/c++/14.1.1/bits/atomic_base.h:831
831             __glibcxx_assert(__b != memory_order_acq_rel);
[Current thread is 1 (Thread 0x7ebc4c92da00 (LWP 1262))]
(gdb) bt
#0  std::__atomic_base<QThreadData*>::load (this=0x58, __m=std::memory_order_acquire, this=<optimized out>, __m=<optimized out>) at /usr/include/c++/14.1.1/bits/atomic_base.h:831
#1  std::atomic<QThreadData*>::load (this=0x58, __m=std::memory_order_acquire, this=<optimized out>, __m=<optimized out>) at /usr/include/c++/14.1.1/atomic:582
#2  QAtomicOps<QThreadData*>::loadAcquire<QThreadData*> (_q_value=<error reading variable: Cannot access memory at address 0x58>, _q_value=<optimized out>)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qatomic_cxx11.h:214
#3  QBasicAtomicPointer<QThreadData>::loadAcquire (this=0x58, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qbasicatomic.h:177
#4  QCoreApplicationPrivate::lockThreadPostEventList (object=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1617
#5  0x00007ebc517940b9 in QObject::deleteLater (this=0x5ae8563ffe00) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:2450
#6  0x00007ebc5231b0c7 in QBasicDrag::eventFilter(QObject*, QEvent*) () at /usr/lib/libQt6Gui.so.6
#7  0x00007ebc51744998 in QCoreApplicationPrivate::sendThroughApplicationEventFilters
    (this=this@entry=0x5ae85152bc60, receiver=receiver@entry=0x5ae851ffa4d0, event=event@entry=0x7ffcc5205c30) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1261
#8  0x00007ebc536fc51a in QApplicationPrivate::notify_helper (this=0x5ae85152bc60, receiver=0x5ae851ffa4d0, e=0x7ffcc5205c30)
    at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3258
#9  0x00007ebc51745678 in QCoreApplication::notifyInternal2 (receiver=0x5ae851ffa4d0, event=0x7ffcc5205c30) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1142
#10 0x00007ebc51f762d0 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt6Gui.so.6
#11 0x00007ebc51fe4ee4 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt6Gui.so.6
#12 0x00007ebc523f8334 in ??? () at /usr/lib/libQt6Gui.so.6
#13 0x00007ebc504d6a89 in g_main_dispatch (context=0x7ebc44000f00) at ../glib/glib/gmain.c:3344
#14 0x00007ebc505389b7 in g_main_context_dispatch_unlocked (context=0x7ebc44000f00) at ../glib/glib/gmain.c:4152
#15 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7ebc44000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4217
#16 0x00007ebc504d5f95 in g_main_context_iteration (context=0x7ebc44000f00, may_block=1) at ../glib/glib/gmain.c:4282
#17 0x00007ebc519a28ad in QEventDispatcherGlib::processEvents (this=0x5ae851542370, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#18 0x00007ebc5174f94e in QEventLoop::processEvents (this=0x5ae857904fd0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:100
#19 QEventLoop::exec (this=0x5ae857904fd0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:182
#20 0x00007ebc5231713b in QBasicDrag::drag(QDrag*) () at /usr/lib/libQt6Gui.so.6
#21 0x00007ebc5231833d in QDragManager::drag(QDrag*) () at /usr/lib/libQt6Gui.so.6
#22 0x00007ebc52318540 in QDrag::exec(QFlags<Qt::DropAction>) () at /usr/lib/libQt6Gui.so.6
#23 0x00007ebc53208b23 in QQuickDragAttachedPrivate::startDrag (this=0x5ae857cd0180, supportedActions=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/quick/items/qquickdrag.cpp:776
#24 0x00007ebc53209a73 in QQuickDragAttached::qt_metacall (this=0x5ae85763d5f0, _c=QMetaObject::WriteProperty, _id=0, _a=0x7ffcc5206260)
    at /usr/src/debug/qt6-declarative/build/src/quick/Quick_autogen/include/moc_qquickdrag_p.cpp:898
#25 0x00007ebc52a3a558 in QQmlPropertyData::doMetacall<(QMetaObject::Call)2> (this=<optimized out>, argv=0x7ffcc5206260, idx=<optimized out>, object=<optimized out>)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/qml/qqmlpropertydata_p.h:360
#26 QQmlPropertyData::doMetacall<(QMetaObject::Call)2> (this=<optimized out>, argv=0x7ffcc5206260, idx=<optimized out>, object=<optimized out>)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/qml/qqmlpropertydata_p.h:355
#27 QQmlPropertyData::writeProperty (this=<optimized out>, target=<optimized out>, value=<optimized out>, flags=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/qml/qqmlpropertydata_p.h:378
#28 0x00007ebc52ae32f9 in tryConvertAndAssign
    (isUrl=<optimized out>, variantMetaType=..., propertyMetaType=..., flags=..., value=<optimized out>, property=<optimized out>, object=<optimized out>)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/qml/qqmlproperty.cpp:1393
#29 QQmlPropertyPrivate::write (object=0x5ae85763d5f0, property=..., value=..., context=..., flags=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/qml/qqmlproperty.cpp:1532
#30 0x00007ebc529b6e5e in QV4::QObjectWrapper::setProperty (engine=engine@entry=0x5ae8519fcc80, object=object@entry=0x5ae85763d5f0, property=0x7ebc1437af20, value=...)
    at /usr/include/qt6/QtCore/qflags.h:73
#31 0x00007ebc529b752e in QV4::QObjectWrapper::setQmlProperty (engine=0x5ae8519fcc80, qmlContext=<optimized out>, object=0x5ae85763d5f0, name=<optimized out>, flags=..., value=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/jsruntime/qv4qobjectwrapper.cpp:567
#32 0x00007ebc52b47800 in QV4::QQmlTypeWrapper::virtualPut (m=<optimized out>, id=..., value=..., receiver=<optimized out>)
--Type <RET> for more, q to quit, c to continue without paging--c
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/qml/qqmltypewrapper.cpp:327
#33 0x00007ebc5298e163 in QV4::Lookup::setterFallback (l=0x5ae8559a1eb0, engine=0x5ae8519fcc80, object=<optimized out>, value=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/jsruntime/qv4lookup.cpp:591
#34 0x00007ebc52a08f99 in QV4::Moth::VME::interpret (frame=0x7ffcc5206c20, engine=0x5ae8519fcc80, code=0x7ebc1be607e2 "\016\002")
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/jsruntime/qv4vme_moth.cpp:321
#35 0x00007ebc52a0c1c4 in QV4::Moth::VME::exec (frame=<optimized out>, engine=<optimized out>)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/jsruntime/qv4vme_moth.cpp:487
#36 0x00007ebc5297e3d8 in qfoDoCall (fo=<optimized out>, thisObject=<optimized out>, argv=<optimized out>, argc=<optimized out>)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/jsruntime/qv4functionobject.cpp:526
#37 0x00007ebc529220e3 in QV4::FunctionObject::call (argc=<optimized out>, argv=<optimized out>, thisObject=0x7ebc409bf4e8, this=0x7ebc1800ae00)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/jsruntime/qv4functionobject_p.h:171
#38 QV4::FunctionObject::call (data=<optimized out>, this=0x7ebc1800ae00) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/jsruntime/qv4jscall_p.h:108
#39 QJSValue::call (this=this@entry=0x7ebc3898b3f8, args=...) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.7.0/src/qml/jsapi/qjsvalue.cpp:713
#40 0x00007ebc52fb60be in QQuickItemGrabResult::event (this=0x5ae8578e8080, e=<optimized out>) at /usr/include/qt6/QtCore/qlist.h:113
#41 0x00007ebc536fc4dc in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5ae8578e8080, e=0x7ebc11e083f0)
    at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3287
#42 0x00007ebc51745678 in QCoreApplication::notifyInternal2 (receiver=0x5ae8578e8080, event=event@entry=0x7ebc11e083f0)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1142
#43 0x00007ebc51745a3b in QCoreApplication::sendEvent (receiver=<optimized out>, event=0x7ebc11e083f0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1583
#44 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5ae8514ffba0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1940
#45 0x00007ebc519a45dc in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1797
#46 postEventSourceDispatch (s=0x5ae85152df20) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:244
#47 0x00007ebc504d6a89 in g_main_dispatch (context=0x7ebc44000f00) at ../glib/glib/gmain.c:3344
#48 0x00007ebc505389b7 in g_main_context_dispatch_unlocked (context=0x7ebc44000f00) at ../glib/glib/gmain.c:4152
#49 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7ebc44000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4217
#50 0x00007ebc504d5f95 in g_main_context_iteration (context=0x7ebc44000f00, may_block=1) at ../glib/glib/gmain.c:4282
#51 0x00007ebc519a28ad in QEventDispatcherGlib::processEvents (this=0x5ae851542370, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#52 0x00007ebc5174f94e in QEventLoop::processEvents (this=0x7ffcc52071b0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:100
#53 QEventLoop::exec (this=0x7ffcc52071b0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:182
#54 0x00007ebc51749c9d in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74
#55 0x00005ae84667a2a3 in ??? ()
#56 0x00007ebc51c39c88 in __libc_start_call_main (main=main@entry=0x5ae846677420, argc=argc@entry=2, argv=argv@entry=0x7ffcc52075b8) at ../sysdeps/nptl/libc_start_call_main.h:58
#57 0x00007ebc51c39d4c in __libc_start_main_impl
    (main=0x5ae846677420, argc=2, argv=0x7ffcc52075b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcc52075a8) at ../csu/libc-start.c:360
#58 0x00005ae84667aa65 in ??? ()
(gdb)
Comment 1 duha.bugs 2024-05-23 16:40:44 UTC
I believe this is https://bugs.kde.org/show_bug.cgi?id=480474

backtrace looks similar but not the same, so I am not sure.
Comment 2 medin 2024-05-23 16:48:02 UTC
(In reply to duha.bugs from comment #1)
> I believe this is https://bugs.kde.org/show_bug.cgi?id=480474
> 
> backtrace looks similar but not the same, so I am not sure.

There is also that "deleteLater" which was also causing that annoying bug485407 on Plasma with Qt6.7
Comment 3 Nate Graham 2024-05-23 20:12:16 UTC
Hmm, I don't think it's quite the same.

What were you doing to trigger this bug?
Comment 4 medin 2024-05-23 20:29:34 UTC
(In reply to Nate Graham from comment #3)
> Hmm, I don't think it's quite the same.
> 
> What were you doing to trigger this bug?

It's difficult to reproduce, I tried to find the correct scenario for it to occur but without success.

It happened two times after yesterday upgrading to 6.0.5, when I randomly hover with mouse over task Manager entries and want to see the previews then right clicking on one of its entries.
Comment 5 Nate Graham 2024-05-23 20:35:03 UTC
Aha, found a nearly identical backtrace in Bug 487425. Qt drag-and-drop issue maybe. Oh, maybe it's the one we recently fixed in Plasma 6.1... Investigating!

*** This bug has been marked as a duplicate of bug 487425 ***