https://bugs.kde.org/show_bug.cgi?id=502095
Bug ID: 502095 Summary: krdpserver crash when client connects Classification: I don't know Product: kde Version: unspecified Platform: Arch Linux OS: Linux Status: REPORTED Keywords: drkonqi Severity: crash Priority: NOR Component: general Assignee: unassigned-b...@kde.org Reporter: gbqof...@outlook.com Target Milestone: --- Application: krdpserver (6.3.3) ApplicationNotResponding [ANR]: false Qt Version: 6.8.2 Frameworks Version: 6.12.0 Operating System: Linux 6.13.8-arch1-1 x86_64 Windowing System: Wayland Distribution: "Arch Linux" DrKonqi: 6.3.3 [CoredumpBackend] -- Information about the crash: krdpserver launched from a user systemd service + auto-login for unattended access. When a client connects the server crashes. The crash can be reproduced every time. -- Backtrace: Application: KRDP Server (krdpserver), signal: Segmentation fault Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>} warning: Can't open file /memfd:kwin-dmabuf-feedback-table (deleted) during file-backed mapping note processing [New LWP 1422] [New LWP 1424] [New LWP 1425] [New LWP 1426] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `/usr/bin/krdpserver -u matthew -p 5iYVHyx5tPJvbM2rMmFncN'. Program terminated with signal SIGSEGV, Segmentation fault. #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44 44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0; [Current thread is 1 (Thread 0x705b2f6c7200 (LWP 1422))] Cannot QML trace cores :( /usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:547: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). boot_time = datetime.utcfromtimestamp(psutil.boot_time()).strftime('%Y-%m-%dT%H:%M:%S') Downloading 48.00 K source file /usr/src/debug/qt6-base/qtbase/src/network/socket/qnativesocketengine.cpp... Downloading 6.03 K source file /usr/src/debug/qt6-base/qtbase/src/network/socket/qabstractsocketengine.cpp... Downloading 22.11 K source file /usr/src/debug/qt6-base/qtbase/src/network/socket/qtcpserver.cpp... Downloading 4.35 K source file /usr/src/debug/krdp/build/src/KRdp_autogen/include/moc_Server.cpp... Downloading 1.78 K source file /usr/src/debug/krdp/krdp-6.3.3/src/PortalSession_p.h... Downloading 13.99 K source file /usr/src/debug/krdp/krdp-6.3.3/src/RdpConnection.cpp... /usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:564: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 'timestamp': datetime.utcnow().isoformat(), [Current thread is 1 (Thread 0x705b2f6c7200 (LWP 1422))] Thread 4 (Thread 0x705b277fe6c0 (LWP 1426)): #0 __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56 #1 0x0000705b46c9fe33 in __internal_syscall_cancel (a1=a1@entry=123536807023392, a2=a2@entry=2, a3=a3@entry=-1, a4=a4@entry=0, a5=a5@entry=0, a6=a6@entry=0, nr=7) at cancellation.c:49 #2 0x0000705b46c9fe74 in __syscall_cancel (a1=a1@entry=123536807023392, a2=a2@entry=2, a3=a3@entry=-1, a4=a4@entry=0, a5=a5@entry=0, a6=a6@entry=0, nr=7) at cancellation.c:75 #3 0x0000705b46d1a53e in __GI___poll (fds=fds@entry=0x705b277fd320, nfds=nfds@entry=2, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 #4 0x0000705b4776d5d7 in poll (__fds=0x705b277fd320, __nfds=2, __timeout=-1) at /usr/include/bits/poll2.h:44 #5 QtWaylandClient::EventThread::run (this=0x558ba8640540) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylanddisplay.cpp:182 #6 0x0000705b468d8a9b in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:375 #7 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:311 #8 QThreadPrivate::start (arg=0x558ba8640540) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:339 #9 0x0000705b46ca370a in start_thread (arg=<optimized out>) at pthread_create.c:448 #10 0x0000705b46d27aac in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 3 (Thread 0x705b27fff6c0 (LWP 1425)): #0 __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56 #1 0x0000705b46c9fe33 in __internal_syscall_cancel (a1=a1@entry=123536815416096, a2=a2@entry=2, a3=a3@entry=-1, a4=a4@entry=0, a5=a5@entry=0, a6=a6@entry=0, nr=7) at cancellation.c:49 #2 0x0000705b46c9fe74 in __syscall_cancel (a1=a1@entry=123536815416096, a2=a2@entry=2, a3=a3@entry=-1, a4=a4@entry=0, a5=a5@entry=0, a6=a6@entry=0, nr=7) at cancellation.c:75 #3 0x0000705b46d1a53e in __GI___poll (fds=fds@entry=0x705b27ffe320, nfds=nfds@entry=2, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 #4 0x0000705b4776d5d7 in poll (__fds=0x705b27ffe320, __nfds=2, __timeout=-1) at /usr/include/bits/poll2.h:44 #5 QtWaylandClient::EventThread::run (this=0x558ba864fef0) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylanddisplay.cpp:182 #6 0x0000705b468d8a9b in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:375 #7 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:311 #8 QThreadPrivate::start (arg=0x558ba864fef0) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:339 #9 0x0000705b46ca370a in start_thread (arg=<optimized out>) at pthread_create.c:448 #10 0x0000705b46d27aac in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 2 (Thread 0x705b2f1ff6c0 (LWP 1424)): #0 __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56 #1 0x0000705b46c9fe33 in __internal_syscall_cancel (a1=<optimized out>, a2=<optimized out>, a3=<optimized out>, a4=<optimized out>, a5=a5@entry=8, a6=a6@entry=0, nr=271) at cancellation.c:49 #2 0x0000705b46c9fe74 in __syscall_cancel (a1=<optimized out>, a2=<optimized out>, a3=<optimized out>, a4=<optimized out>, a5=a5@entry=8, a6=a6@entry=0, nr=271) at cancellation.c:75 #3 0x0000705b46d1aa06 in __GI_ppoll (fds=fds@entry=0x558ba85c6030, nfds=nfds@entry=3, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:42 #4 0x0000705b45e83e27 in ppoll (__fds=0x558ba85c6030, __nfds=3, __timeout=0x0, __ss=0x0) at /usr/include/bits/poll2.h:101 #5 g_main_context_poll_unlocked (priority=<optimized out>, context=0x705b28000c80, timeout_usec=<optimized out>, fds=0x558ba85c6030, n_fds=3) at ../glib/glib/gmain.c:4632 #6 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x705b28000c80, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4309 #7 0x0000705b45e1f535 in g_main_context_iteration (context=0x705b28000c80, may_block=1) at ../glib/glib/gmain.c:4379 #8 0x0000705b469c575d in QEventDispatcherGlib::processEvents (this=0x705b28000b70, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:399 #9 0x0000705b467606a6 in QEventLoop::processEvents (this=0x705b2f1fe2e0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:103 #10 QEventLoop::exec (this=0x705b2f1fe2e0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:185 #11 0x0000705b46857829 in QThread::exec (this=this@entry=0x705b4806db20 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74 #12 0x0000705b47fe26ae in QDBusConnectionManager::run (this=0x705b4806db20 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-base/qtbase/src/dbus/qdbusconnectionmanager.cpp:144 #13 0x0000705b468d8a9b in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:375 #14 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:311 #15 QThreadPrivate::start (arg=0x705b4806db20 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:339 #16 0x0000705b46ca370a in start_thread (arg=<optimized out>) at pthread_create.c:448 #17 0x0000705b46d27aac in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 1 (Thread 0x705b2f6c7200 (LWP 1422)): [KCrash Handler] #5 0x0000705b484bfee1 in KRdp::RdpConnection::close (this=<optimized out>, reason=<optimized out>) at /usr/src/debug/krdp/krdp-6.3.3/src/RdpConnection.cpp:223 #6 0x0000705b467b1a49 in QtPrivate::QSlotObjectBase::call (this=<optimized out>, r=<optimized out>, a=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:486 #7 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4115 #8 0x0000705b467b1a49 in QtPrivate::QSlotObjectBase::call (this=<optimized out>, r=<optimized out>, a=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:486 #9 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4115 #10 0x0000705b484c7ef2 in std::function<void(unsigned int, QMap<QString, QVariant> const&)>::operator() (this=0x558ba893a110, __args#0=4294967295, __args#1=...) at /usr/include/c++/14.2.1/bits/std_function.h:591 #11 KRdp::PortalRequest::onStarted (this=this@entry=0x558ba893a0f0, watcher=watcher@entry=0x558ba8949ba0) at /usr/src/debug/krdp/krdp-6.3.3/src/PortalSession.cpp:57 #12 0x0000705b484c9ef1 in KRdp::PortalRequest::PortalRequest<KRdp::PortalSession, void (KRdp::PortalSession::*)(unsigned int, QMap<QString, QVariant> const&)> (this=0x558ba893a0f0, call=..., context=0x558ba85fd350, callback=(void (KRdp::PortalSession::*)(KRdp::PortalSession * const, unsigned int, const QMap<QString, QVariant> &)) 0x705b484ca5b0 <KRdp::PortalSession::onCreateSession(unsigned int, QMap<QString, QVariant> const&)>) at /usr/src/debug/krdp/krdp-6.3.3/src/PortalSession_p.h:47 #13 KRdp::PortalSession::start (this=0x558ba85fd350) at /usr/src/debug/krdp/krdp-6.3.3/src/PortalSession.cpp:124 #14 0x0000558b773861c3 in SessionController::onNewConnection (this=0x7ffdabb73e30, newConnection=0x558ba85c6890) at /usr/src/debug/krdp/krdp-6.3.3/server/SessionController.cpp:158 #15 0x0000705b467b1a49 in QtPrivate::QSlotObjectBase::call (this=<optimized out>, r=<optimized out>, a=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:486 #16 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4115 #17 0x0000705b484ba502 in KRdp::Server::newConnectionCreated (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/krdp/build/src/KRdp_autogen/include/moc_Server.cpp:144 #18 0x0000705b48121906 in QTcpServerPrivate::readNotification (this=0x558ba87c7380) at /usr/src/debug/qt6-base/qtbase/src/network/socket/qtcpserver.cpp:198 #19 0x0000705b481228d2 in QAbstractSocketEngine::readNotification (this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/network/socket/qabstractsocketengine.cpp:120 #20 QReadNotifier::event (this=<optimized out>, e=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/network/socket/qnativesocketengine.cpp:1238 #21 0x0000705b478ff0ca in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x558ba8924440, e=0x7ffdabb73440) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3296 #22 0x0000705b46755b00 in QCoreApplication::notifyInternal2 (receiver=0x558ba8924440, event=0x7ffdabb73440) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1172 #23 0x0000705b469c80f1 in QCoreApplication::sendEvent (receiver=<optimized out>, event=0x7ffdabb73440) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1612 #24 socketNotifierSourceDispatch (source=source@entry=0x558ba86945b0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:77 #25 0x0000705b45e20104 in g_main_dispatch (context=0x705b28000f00) at ../glib/glib/gmain.c:3398 #26 0x0000705b45e83d57 in g_main_context_dispatch_unlocked (context=0x705b28000f00) at ../glib/glib/gmain.c:4249 #27 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x705b28000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4314 #28 0x0000705b45e1f535 in g_main_context_iteration (context=0x705b28000f00, may_block=1) at ../glib/glib/gmain.c:4379 #29 0x0000705b469c575d in QEventDispatcherGlib::processEvents (this=0x558ba85c5690, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:399 #30 0x0000705b467606a6 in QEventLoop::processEvents (this=0x7ffdabb73710, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:103 #31 QEventLoop::exec (this=0x7ffdabb73710, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:185 #32 0x0000705b467591d6 in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74 #33 0x0000705b478faf9a in QApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2564 #34 0x0000558b77384197 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/krdp/krdp-6.3.3/server/main.cpp:138 Reported using DrKonqi This report was filed against 'kde' because the product 'krdpserver' could not be located in Bugzilla. Add it to drkonqi's mappings file! -- You are receiving this mail because: You are watching all bug changes.