https://bugs.kde.org/show_bug.cgi?id=459270

            Bug ID: 459270
           Summary: Crash in Utils::exec
    Classification: Unclassified
           Product: kactivitymanagerd
           Version: master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: ivan.cu...@kde.org
          Reporter: pos...@posteo.eu
                CC: plasma-b...@kde.org
  Target Milestone: ---

Created attachment 152150
  --> https://bugs.kde.org/attachment.cgi?id=152150&action=edit
backtrace full

SUMMARY

```
#0  __pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffbb9d898a3 in __pthread_kill_internal (signo=6, threadid=<optimized
out>) at pthread_kill.c:78
#2  0x00007ffbb9d36846 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#3  0x00007ffbb9d1f81c in __GI_abort () at abort.c:79
#4  0x00007ffbba2dd0fd in qt_message_fatal (message=<synthetic pointer>...,
context=...) at global/qlogging.cpp:1914
#5  QMessageLogger::fatal (this=this@entry=0x7fff0a5196a8,
msg=msg@entry=0x7ffbba5e0028 "ASSERT failure in %s: \"%s\", file %s, line %d")
at global/qlogging.cpp:893
#6  0x00007ffbba2dc50e in qt_assert_x (where=<optimized out>, what=<optimized
out>, file=<optimized out>, line=<optimized out>) at global/qglobal.cpp:3366
#7  0x00007ffbb40d8077 in Utils::exec (database=..., eh=Utils::FailOnError,
query=...) at
/home/mh/Development/kde/src/kde/workspace/kactivitymanagerd/src/service/plugins/sqlite/Utils.h:55
#8  0x00007ffbb40d9cce in Utils::exec<char [19], QString> (database=...,
eh=Utils::FailOnError, query=..., variable=..., value=...) at
/home/mh/Development/kde/src/kde/workspace/kactivitymanagerd/src/service/plugins/sqlite/Utils.h:70
#9  0x00007ffbb40d4bff in StatsPlugin::insertResourceInfo (this=0x17ec680,
uri=...) at
/home/mh/Development/kde/src/kde/workspace/kactivitymanagerd/src/service/plugins/sqlite/StatsPlugin.cpp:239
#10 0x00007ffbb40d487b in StatsPlugin::detectResourceInfo (this=0x17ec680,
_uri=...) at
/home/mh/Development/kde/src/kde/workspace/kactivitymanagerd/src/service/plugins/sqlite/StatsPlugin.cpp:201
#11 0x00007ffbb40d43e9 in StatsPlugin::openResourceEvent (this=0x17ec680,
usedActivity=..., initiatingAgent=..., targettedResource=..., start=...,
end=...) at
/home/mh/Development/kde/src/kde/workspace/kactivitymanagerd/src/service/plugins/sqlite/StatsPlugin.cpp:135
#12 0x00007ffbb40d52d8 in StatsPlugin::addEvents (this=0x17ec680, events=...)
at
/home/mh/Development/kde/src/kde/workspace/kactivitymanagerd/src/service/plugins/sqlite/StatsPlugin.cpp:365
#13 0x00007ffbb40cdc11 in StatsPlugin::qt_static_metacall (_o=0x17ec680,
_c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7ffb900032b8) at
/home/mh/Development/kde/build/kde/workspace/kactivitymanagerd/src/service/plugins/sqlite/kactivitymanagerd_plugin_sqlite_autogen/EWIEGA46WW/moc_StatsPlugin.cpp:168
#14 0x00007ffbba529730 in QObject::event (this=0x17ec680, e=0x7ffb90003270) at
kernel/qobject.cpp:1314
#15 0x00007ffbbb44041e in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x17ec680, e=0x7ffb90003270) at kernel/qapplication.cpp:3637
#16 0x00007ffbba4fdf88 in QCoreApplication::notifyInternal2
(receiver=0x17ec680, event=0x7ffb90003270) at kernel/qcoreapplication.cpp:1064
#17 0x00007ffbba500f21 in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0x178a1e0) at
kernel/qcoreapplication.cpp:1821
#18 0x00007ffbba555c03 in postEventSourceDispatch (s=0x17a52c0) at
kernel/qeventdispatcher_glib.cpp:277
#19 0x00007ffbb9218eb0 in g_main_dispatch (context=0x17a7070) at
../glib/gmain.c:3417
#20 g_main_context_dispatch (context=context@entry=0x17a7070) at
../glib/gmain.c:4135
#21 0x00007ffbb9219268 in g_main_context_iterate
(context=context@entry=0x17a7070, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4211
#22 0x00007ffbb92192fc in g_main_context_iteration (context=0x17a7070,
may_block=1) at ../glib/gmain.c:4276
#23 0x00007ffbba555406 in QEventDispatcherGlib::processEvents (this=0x17a2970,
flags=...) at kernel/qeventdispatcher_glib.cpp:423
#24 0x00007ffbba4fc9fb in QEventLoop::exec (this=this@entry=0x7fff0a51a280,
flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:69
#25 0x00007ffbba504b66 in QCoreApplication::exec () at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#26 0x000000000040f442 in main (argc=1, argv=0x7fff0a51a458) at
/home/mh/Development/kde/src/kde/workspace/kactivitymanagerd/src/service/Application.cpp:280
```


STEPS TO REPRODUCE
I had a second session running on tty3: There I plugged in/out an HDMI monitor
several times (for triggering another bug), when kactivitymangerd started to
crash, at least three times within a few minutes.

Before the crash there were some interesting journalctl lines
```
Sep 17 13:41:58 kactivitymanagerd[2492]: org.kde.kactivities.resources: "UPDATE
ResourceScoreCache SET cachedScore = :cachedScore, lastUpdate  = :lastUpdate
WHERE :usedActivity      = usedActivity AND :initiatingAgent   =
initiatingAgent AND :targettedResource = targettedResource "
Sep 17 13:41:58 kactivitymanagerd[2492]: org.kde.kactivities.resources:
QSqlError("5", "Unable to fetch row", "database is locked")
Sep 17 13:41:58 kactivitymanagerd[2492]: org.kde.kactivities.resources: "UPDATE
ResourceScoreCache SET cachedScore = :cachedScore, lastUpdate  = :lastUpdate
WHERE :usedActivity      = usedActivity AND :initiatingAgent   =
initiatingAgent AND :targettedResource = targettedResource "
Sep 17 13:41:58 kactivitymanagerd[2492]: org.kde.kactivities.resources:
QSqlError("5", "Unable to fetch row", "database is locked")
````


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220914
KDE Plasma Version: 5.26.80 
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.5
Kernel Version: 5.19.8-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 580 Series
kactivitymanagerd commit 3e55209d2ea0faea2451c5f18246ca48fd0eb4f5

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to