Bug 469560 - In Plasma 6, kded randomly crashes in KIO::UntrustedProgramHandlerInterface::UntrustedProgramHandlerInterface()
Summary: In Plasma 6, kded randomly crashes in KIO::UntrustedProgramHandlerInterface::...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: git master
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-05-10 06:57 UTC by Nate Graham
Modified: 2023-05-26 14:26 UTC (History)
1 user (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 Nate Graham 2023-05-10 06:57:51 UTC
In a Plasma 6 session (X11), kded randomly crashes out of the blue  (no obvious trigger) for me semi-frequently with the following backtrace:

#0  0x00007f1860d2735d in __GI___poll
    (fds=fds@entry=0x7ffc33320878, nfds=nfds@entry=1, timeout=timeout@entry=1000)
    at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f1861ffa098 in poll (__timeout=1000, __nfds=1, __fds=0x7ffc33320878)
    at /usr/include/bits/poll2.h:39
#2  pollDrKonqiSocket (sockfd=3, pid=<optimized out>)
    at /usr/src/debug/kf5-kcrash-5.105.0-1.fc38.x86_64/src/kcrash.cpp:858
#3  KCrash::startProcess(int, char const**, bool)
    (argv=argv@entry=0x7ffc33320998, waitAndExit=waitAndExit@entry=true, argc=<optimized out>)
    at /usr/src/debug/kf5-kcrash-5.105.0-1.fc38.x86_64/src/kcrash.cpp:720
#4  0x00007f1861ffad0f in KCrash::defaultCrashHandler(int) (sig=11)
    at /usr/src/debug/kf5-kcrash-5.105.0-1.fc38.x86_64/src/kcrash.cpp:616
#5  0x00007f1860c5fb70 in <signal handler called> () at /lib64/libc.so.6
#6  std::__atomic_base<QThread*>::load(std::memory_order) const
    (__m=std::memory_order_acquire, this=0xc1) at /usr/include/c++/13/bits/atomic_base.h:835
#7  std::atomic<QThread*>::load(std::memory_order) const (__m=std::memory_order_acquire, this=0xc1)
    at /usr/include/c++/13/atomic:577
#8  QAtomicOps<QThread*>::loadAcquire<QThread*>(std::atomic<QThread*> const&)
    (_q_value=<error reading variable: Cannot access memory at address 0xc1>)
    at /usr/src/debug/qt6-qtbase-6.5.0-2.fc38.x86_64/src/corelib/thread/qatomic_cxx11.h:213
#9  QBasicAtomicPointer<QThread>::loadAcquire() const (this=0xc1)
    at /usr/src/debug/qt6-qtbase-6.5.0-2.fc38.x86_64/src/corelib/thread/qbasicatomic.h:181
#10 QObject::thread() const
    (this=this@entry=0x7f18207ff9e0 <KIOWidgetJobUiDelegateFactory::registerJobUiDelegate()::delegate>) at /usr/src/debug/qt6-qtbase-6.5.0-2.fc38.x86_64/src/corelib/kernel/qobject.cpp:1564
#11 0x00007f18209db85e in QObject::QObject(QObjectPrivate&, QObject*)
    (this=0x55773daeb8d0, dd=..., parent=0x7f18207ff9e0 <KIOWidgetJobUiDelegateFactory::registerJobUiDelegate()::delegate>)
    at /usr/src/debug/qt6-qtbase-6.5.0-2.fc38.x86_64/src/corelib/kernel/qobject.cpp:925
#12 0x00007f1813b419f9 in KIO::UntrustedProgramHandlerInterface::UntrustedProgramHandlerInterface(QObject*) (this=0x55773daeb8d0, parent=<optimized out>)
    at /home/nate/kde/src/kio/src/core/untrustedprogramhandlerinterface.cpp:18
#13 0x00007f182075f199 in KIO::WidgetsUntrustedProgramHandler::WidgetsUntrustedProgramHandler(QObject*) (this=this@entry=0x55773daeb8d0, parent=parent@entry=0x7f18207ff9e0 <KIOWidgetJobUiDelegateFactory::registerJobUiDelegate()::delegate>)
    at /home/nate/kde/src/kio/src/widgets/widgetsuntrustedprogramhandler.cpp:34
#14 0x00007f182075cd18 in KIO::JobUiDelegatePrivate::JobUiDelegatePrivate(KIO::JobUiDelegate*, QList<QObject*> const&)
    (this=0x55773daec550, qq=0x7f18207ff9e0 <KIOWidgetJobUiDelegateFactory::registerJobUiDelegate()::delegate>, ifaces=<optimized out>) at /home/nate/kde/src/kio/src/widgets/jobuidelegate.cpp:59
#15 0x00007f1820759ee4 in KIO::JobUiDelegate::JobUiDelegate(KIO::JobUiDelegate::Version, QFlags<KJobUiDelegate::Flag>, QWidget*, QList<QObject*> const&)
    (this=0x7f18207ff9e0 <KIOWidgetJobUiDelegateFactory::registerJobUiDelegate()::delegate>, version=<optimized out>, window=0x0, ifaces=...) at /home/nate/kde/src/kio/src/widgets/jobuidelegate.cpp:462
#16 0x00007f182075d5fc in KIOWidgetJobUiDelegateFactory::registerJobUiDelegate() ()
    at /usr/include/qt6/QtCore/qflags.h:74
#17 0x00007f18627e917f in call_init
    (env=0x7ffc33322588, argv=0x7ffc33322578, argc=1, l=<optimized out>) at dl-init.c:70
#18 call_init (l=<optimized out>, argc=1, argv=0x7ffc33322578, env=0x7ffc33322588) at dl-init.c:26
#19 0x00007f18627e927d in _dl_init
    (main_map=0x55773daabef0, argc=1, argv=0x7ffc33322578, env=0x7ffc33322588) at dl-init.c:117
#20 0x00007f18627e55c2 in __GI__dl_catch_exception
    (exception=exception@entry=0x0, operate=operate@entry=0x7f18627efea0 <call_dl_init>, args=args@entry=0x7ffc333218b0) at dl-catch.c:211
#21 0x00007f18627efe3c in dl_open_worker (a=a@entry=0x7ffc33321a60) at dl-open.c:808
#22 0x00007f18627e5523 in __GI__dl_catch_exception
    (exception=exception@entry=0x7ffc33321a40, operate=operate@entry=0x7f18627efda0 <dl_open_worker>, args=args@entry=0x7ffc33321a60) at dl-catch.c:237
#23 0x00007f18627f01b4 in _dl_open
    (file=0x55773d86d9e8 "/usr/lib64/qt5/plugins/kf5/kded/networkmanagement.so", mode=<optimized out>, caller_dlopen=0x7f18614afe7c <QLibraryPrivate::load_sys()+1500>, nsid=<optimized out>, argc=1, argv=0x7ffc33322578, env=0x7ffc33322588) at dl-open.c:884
#24 0x00007f1860caa6d4 in dlopen_doit (a=a@entry=0x7ffc33321d10) at dlopen.c:56
#25 0x00007f18627e5523 in __GI__dl_catch_exception
    (exception=exception@entry=0x7ffc33321c50, operate=0x7f1860caa670 <dlopen_doit>, args=0x7ffc33321d10) at dl-catch.c:237
#26 0x00007f18627e5679 in _dl_catch_error
    (objname=0x7ffc33321cb8, errstring=0x7ffc33321cc0, mallocedp=0x7ffc33321cb7, operate=<optimized out>, args=<optimized out>) at dl-catch.c:256
#27 0x00007f1860caa1b3 in _dlerror_run
    (operate=operate@entry=0x7f1860caa670 <dlopen_doit>, args=args@entry=0x7ffc33321d10)
    at dlerror.c:138
#28 0x00007f1860caa78f in dlopen_implementation
    (dl_caller=<optimized out>, mode=<optimized out>, file=<optimized out>) at dlopen.c:71
#29 ___dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:81
#30 0x00007f18614afe7c in QLibraryPrivate::load_sys() (this=0x55773da9f250)
    at plugin/qlibrary_unix.cpp:238
#31 0x00007f18614aa8a5 in QLibraryPrivate::load() (this=this@entry=0x55773da9f250)
    at plugin/qlibrary.cpp:584
#32 0x00007f18614aaedb in QLibraryPrivate::loadPlugin() (this=0x55773da9f250)
    at plugin/qlibrary.cpp:641
#33 0x00007f18614a1d85 in QPluginLoader::load() (this=this@entry=0x7ffc33322030)
    at plugin/qpluginloader.cpp:238
#34 0x00007f18614a1ec1 in QPluginLoader::instance() (this=this@entry=0x7ffc33322030)
    at plugin/qpluginloader.cpp:197
#35 0x00007f1861f43f2c in KPluginFactory::loadFactory(KPluginMetaData const&) (data=...)
    at /usr/src/debug/kf5-kcoreaddons-5.105.0-1.fc38.x86_64/src/lib/plugin/kpluginfactory.cpp:48
#36 0x000055773b747c3f in Kded::loadModule(KPluginMetaData const&, bool)
    (this=this@entry=0x55773d84c880, module=..., onDemand=onDemand@entry=false)
    at /usr/src/debug/kf5-kded-5.105.0-1.fc38.x86_64/src/kded.cpp:358
#37 0x000055773b74a57b in Kded::initModules() (this=this@entry=0x55773d84c880)
    at /usr/src/debug/kf5-kded-5.105.0-1.fc38.x86_64/src/kded.cpp:242
#38 0x000055773b74c268 in Kded::recreateDone() (this=0x55773d84c880)
    at /usr/src/debug/kf5-kded-5.105.0-1.fc38.x86_64/src/kded.cpp:518
#39 Kded::recreate(bool) (initial=<optimized out>, this=0x55773d84c880)
    at /usr/src/debug/kf5-kded-5.105.0-1.fc38.x86_64/src/kded.cpp:502
#40 Kded::recreate(bool) (this=this@entry=0x55773d84c880, initial=initial@entry=true)
    at /usr/src/debug/kf5-kded-5.105.0-1.fc38.x86_64/src/kded.cpp:486
#41 0x000055773b744fb0 in main(int, char**) (argc=<optimized out>, argv=<optimized out>)
    at /usr/src/debug/kf5-kded-5.105.0-1.fc38.x86_64/src/kded.cpp:777
Comment 1 Nate Graham 2023-05-26 14:26:36 UTC
Cannot reproduce anymore for over a week; I guess it was fixed by something.