Bug 429434 - Running as root and not handled crash
Summary: Running as root and not handled crash
Status: RESOLVED NOT A BUG
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: 5.15.3
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-21 09:34 UTC by rafalkozlowski07
Modified: 2020-12-11 16:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rafalkozlowski07 2020-11-21 09:34:22 UTC
SUMMARY


STEPS TO REPRODUCE
1. Try to run akonadictl [start|stop], akonadiserver as root from cli

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Application: akonadictl (akonadictl), signal: Aborted

[New LWP 11683]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f68c8b7b83f in poll () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f68c6a903c0 (LWP 11682))]

Thread 2 (Thread 0x7f68c4c86640 (LWP 11683)):
#0  0x00007f68c8b7b83f in poll () from /lib64/libc.so.6
#1  0x00007f68c77fcfbe in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f68c77fd0df in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f68c9175a7f in QEventDispatcherGlib::processEvents (this=0x7f68c0000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#4  0x00007f68c911ceeb in QEventLoop::exec (this=this@entry=0x7f68c4c85c70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f68c8f3dc9e in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f68c94c57c7 in QDBusConnectionManager::run (this=0x7f68c9533420 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#7  0x00007f68c8f3ede1 in QThreadPrivate::start (arg=0x7f68c9533420 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:329
#8  0x00007f68c8a6c3e9 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f68c8b86943 in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f68c6a903c0 (LWP 11682)):
[KCrash Handler]
#4  0x00007f68c8ac2a65 in raise () from /lib64/libc.so.6
#5  0x00007f68c8aab864 in abort () from /lib64/libc.so.6
#6  0x000055f514c7b311 in akMessageHandler (type=<optimized out>, msg=..., context=...) at /usr/src/debug/akonadi-server-20.08.3-1.1.x86_64/src/shared/akdebug.cpp:192
#7  akMessageHandler (type=<optimized out>, context=..., msg=...) at /usr/src/debug/akonadi-server-20.08.3-1.1.x86_64/src/shared/akdebug.cpp:181
#8  0x000055f514c796ed in (anonymous namespace)::RemoteLogger::dbusLogger (type=QtFatalMsg, ctx=..., msg=...) at /usr/src/debug/akonadi-server-20.08.3-1.1.x86_64/src/shared/akremotelog.cpp:162
#9  0x00007f68c8f369d8 in qt_message_print (msgType=QtFatalMsg, context=..., message=...) at global/qlogging.cpp:1843
#10 0x00007f68c8f36af9 in qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, context=..., msg=<optimized out>, ap=<optimized out>) at global/qlogging.cpp:378
#11 0x00007f68c8f040de in QMessageLogger::fatal (this=<optimized out>, msg=<optimized out>) at global/qlogging.cpp:890
#12 0x000055f514c76475 in AkApplicationBase::init (this=0x7ffe6d41b950) at /usr/include/qt5/QtCore/qlogging.h:90
#13 AkApplicationImpl<QCoreApplication>::AkApplicationImpl (loggingCategory=..., argv=<optimized out>, argc=@0x7ffe6d41b88c: 2, this=0x7ffe6d41b950) at /usr/src/debug/akonadi-server-20.08.3-1.1.x86_64/src/shared/akapplication.h:72
#14 main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/akonadi-server-20.08.3-1.1.x86_64/src/akonadictl/main.cpp:209
[Inferior 1 (process 11682) detached]
Comment 1 rafalkozlowski07 2020-11-21 09:45:21 UTC
I made another comment, because accidentally pressed enter and sent form ;)
SUMMARY
After trying to run akonadictl or akonadiserver it did crash. I know that running as root makes no sense, but i am dubbuging problem with akonadi service and try everything.
It is not big deal, but you maybe would like to handle this crash.

STEPS TO REPRODUCE
1. Try to run akonadictl [start|stop], akonadiserver as root from cli

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE Tumbleweed 20201117, Plasma 5.20.3
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1

# akonadictl 
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
D-Bus session bus is not available!
KCrash: Application 'akonadictl' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0

[2]+  Zatrzymano              akonadict
Comment 2 Christophe Marin 2020-12-11 16:42:33 UTC
Running akonadi as root is not supported. Don't do that.