Kwallet crashes at boot (still works fine though - probably low priority issue)

So, quite frequently at boot up I get a popup notification that says kwallet crashed (I do not remember exactly what it says, but that is the gist of the message). However, kwallet still works fine for applications that require it. I have it set to auto unlock by leaving password blank and calling the wallet “kdewallet” and creating a file at ~/.local/share/dbus-1/services/org.freedesktop.secrets.service.

Again the crash seems to not affect operation in any way (except it needing to start itself back up when starting an application that requires it), as applications that rely on this service still work fine, and when opening them kwallet opens right back up (I used lsof to check the differences and kwallet6 is indeed running and working fine).

Additional information about my system:
packages:

Name            : kwallet-pam
Version         : 6.4.3-1

Name            : kwallet
Version         : 6.16.0-1

Name            : plasma-desktop
Version         : 6.4.3-1

Name            : plasma-x11-session
Version         : 6.4.3-1

My .xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
    for f in /etc/X11/xinit/xinitrc.d/?* ; do
        [ -x "$f" ] && . "$f"
    done
    unset f
fi

export XDG_CURRENT_DESKTOP=KDE
export XDG_SESSION_TYPE=x11
export DESKTOP_SESSION=plasma
exec startplasma-x11

/etc/pam.d/login:

auth       requisite    pam_nologin.so
auth       include      system-local-login
auth       optional     pam_kwallet5.so
account    include      system-local-login
session    include      system-local-login
session    optional     pam_kwallet5.so auto_start force_run
password   include      system-local-login

~/.local/share/dbus-1/services/org.freedesktop.secrets.service:

[D-BUS Service]
Name=org.freedesktop.secrets
Exec=/usr/bin/kwalletd6

~/.zprofile:

if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
  exec startx
fi

/etc/systemd/system/getty@tty1.service.d/override.conf:

[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin username --noclear %I $TERM

That is all there is to my startup as far as I know.

As a workaround, I’ve disabled “Application Crash” in the “System Notifications” setting in the kde settings app. I am unsure of whether that worked or not yet though as it did not crash this boot. The issue itself is actually intermittent and I am unsure of the cause (I usually just open a browser (or 2 browsers) and maybe a file manager when I startup my machine and that’s really it). I checked the log from last boot with “sudo journalctl -b -1 --no-pager -p err” and that produced this (which is probably related?, not sure as I’m not really a dev):

Jul 17 16:01:25 username systemd-coredump[237979]: Process 164477 (ksecretd) of user 1000 dumped core.
                                               
                                               Stack trace of thread 164477:
                                               #0  0x000079ea2e6a774c n/a (libc.so.6 + 0x9774c)
                                               #1  0x000079ea2e64ddc0 raise (libc.so.6 + 0x3ddc0)
                                               #2  0x000079ea309f8e97 _ZN6KCrash19defaultCrashHandlerEi (libKF6Crash.so.6 + 0x7e97)
                                               #3  0x000079ea2e64def0 n/a (libc.so.6 + 0x3def0)
                                               #4  0x000079ea3091ad6e n/a (libqca-qt6.so.2 + 0x6ed6e)
                                               #5  0x000079ea3091b3a1 _ZN3QCA12MemoryRegionD1Ev (libqca-qt6.so.2 + 0x6f3a1)
                                               #6  0x00005dbd7c836bc5 n/a (/usr/bin/ksecretd + 0x47bc5)
                                               #7  0x00005dbd7c836cf2 n/a (/usr/bin/ksecretd + 0x47cf2)
                                               #8  0x00005dbd7c834083 n/a (/usr/bin/ksecretd + 0x45083)
                                               #9  0x00005dbd7c8294a6 n/a (/usr/bin/ksecretd + 0x3a4a6)
                                               #10 0x00005dbd7c813d50 n/a (/usr/bin/ksecretd + 0x24d50)
                                               #11 0x00005dbd7c80ceae n/a (/usr/bin/ksecretd + 0x1deae)
                                               #12 0x000079ea2e6376b5 n/a (libc.so.6 + 0x276b5)
                                               #13 0x000079ea2e637769 __libc_start_main (libc.so.6 + 0x27769)
                                               #14 0x00005dbd7c80d945 n/a (/usr/bin/ksecretd + 0x1e945)
                                               
                                               Stack trace of thread 164478:
                                               #0  0x000079ea2e726eed syscall (libc.so.6 + 0x116eed)
                                               #1  0x000079ea2edb8c12 _ZN14QMetaCallEventD1Ev (libQt6Core.so.6 + 0x1b8c12)
                                               #2  0x000079ea2edb8c35 _ZN14QMetaCallEventD0Ev (libQt6Core.so.6 + 0x1b8c35)
                                               #3  0x000079ea2ed68505 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt6Core.so.6 + 0x168505)
                                               #4  0x000079ea2f03fcf8 n/a (libQt6Core.so.6 + 0x43fcf8)
                                               #5  0x000079ea2e32c87d n/a (libglib-2.0.so.0 + 0x5e87d)
                                               #6  0x000079ea2e32dcd7 n/a (libglib-2.0.so.0 + 0x5fcd7)
                                               #7  0x000079ea2e32dee5 g_main_context_iteration (libglib-2.0.so.0 + 0x5fee5)
                                               #8  0x000079ea2f03c5e2 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x43c5e2)
                                               #9  0x000079ea2ed744b6 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x1744b6)
                                               #10 0x000079ea2ee873c6 _ZN7QThread4execEv (libQt6Core.so.6 + 0x2873c6)
                                               #11 0x000079ea2fe17dae n/a (libQt6DBus.so.6 + 0x37dae)
                                               #12 0x000079ea2ef1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                               #13 0x000079ea2e6a57eb n/a (libc.so.6 + 0x957eb)
                                               #14 0x000079ea2e72918c n/a (libc.so.6 + 0x11918c)
                                               
                                               Stack trace of thread 164481:
                                               #0  0x000079ea2e6ade22 n/a (libc.so.6 + 0x9de22)
                                               #1  0x000079ea2e6a1fda n/a (libc.so.6 + 0x91fda)
                                               #2  0x000079ea2e6a264c n/a (libc.so.6 + 0x9264c)
                                               #3  0x000079ea2e6a4d1e pthread_cond_wait (libc.so.6 + 0x94d1e)
                                               #4  0x000079ea19b5fc5e n/a (libgallium-25.1.5-arch1.1.so + 0x55fc5e)
                                               #5  0x000079ea19b1a23d n/a (libgallium-25.1.5-arch1.1.so + 0x51a23d)
                                               #6  0x000079ea19b5fb8d n/a (libgallium-25.1.5-arch1.1.so + 0x55fb8d)
                                               #7  0x000079ea2e6a57eb n/a (libc.so.6 + 0x957eb)
                                               #8  0x000079ea2e72918c n/a (libc.so.6 + 0x11918c)
                                               
                                               Stack trace of thread 164479:
                                               #0  0x000079ea2e6ade22 n/a (libc.so.6 + 0x9de22)
                                               #1  0x000079ea2e6a1fda n/a (libc.so.6 + 0x91fda)
                                               #2  0x000079ea2e6a2024 n/a (libc.so.6 + 0x92024)
                                               #3  0x000079ea2e71c05e __poll (libc.so.6 + 0x10c05e)
                                               #4  0x000079ea2fd6b20b n/a (libxcb.so.1 + 0xd20b)
                                               #5  0x000079ea2fd6cf3d xcb_wait_for_event (libxcb.so.1 + 0xef3d)
                                               #6  0x000079ea2d31e6e9 n/a (libQt6XcbQpa.so.6 + 0x566e9)
                                               #7  0x000079ea2ef1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                               #8  0x000079ea2e6a57eb n/a (libc.so.6 + 0x957eb)
                                               #9  0x000079ea2e72918c n/a (libc.so.6 + 0x11918c)
                                               
                                               Stack trace of thread 164480:
                                               #0  0x000079ea2e6ade22 n/a (libc.so.6 + 0x9de22)
                                               #1  0x000079ea2e6a1fda n/a (libc.so.6 + 0x91fda)
                                               #2  0x000079ea2e6a264c n/a (libc.so.6 + 0x9264c)
                                               #3  0x000079ea2e6a4d1e pthread_cond_wait (libc.so.6 + 0x94d1e)
                                               #4  0x000079ea19b5fc5e n/a (libgallium-25.1.5-arch1.1.so + 0x55fc5e)
                                               #5  0x000079ea19b1a23d n/a (libgallium-25.1.5-arch1.1.so + 0x51a23d)
                                               #6  0x000079ea19b5fb8d n/a (libgallium-25.1.5-arch1.1.so + 0x55fb8d)
                                               #7  0x000079ea2e6a57eb n/a (libc.so.6 + 0x957eb)
                                               #8  0x000079ea2e72918c n/a (libc.so.6 + 0x11918c)
                                               ELF object binary architecture: AMD x86-64
Jul 17 16:01:27 username sudo[238405]: pam_systemd_home(sudo:account): Failed to query user record: Refusing activation, D-Bus is shutting down.
Jul 17 16:01:28 username sudo[238430]: pam_systemd_home(sudo:account): Failed to query user record: Refusing activation, D-Bus is shutting down.

Just wanted to share this in case it is a bug with plasma or kwallet and/or this is effecting other users (could just be that have something setup something wrong somewhere, I transferred to kde from another DE (Budgie) a few years ago so there may be residual dbus files laying round somewhere mucking things up? Not really sure. If there are any additional files or ideas on where to look please share. Also, I wanted to see what other people here thought/whether they have been experiencing something similar. Okay, thanks. :slight_smile:

1 Like

Okay, I was fast enough to catch a screenshot after rebooting:

so you can see what I am talking about. I did click the report bug, so someone should see it.

1 Like

To add, immediately after the crash “lsof | grep kwallet” reurns nothing, then after opening an app that requires there be a “secret” file/system on the computer "lsof | grep kwallet | wc -l " shows 1760 lines (did not want to paste that here). They all say kwallet6 number number gbus…blahblah. So it is on, and as far as I can tell, working just fine.

No one else experiencing this issue?

It may be fixed with the recent update to 6.4.4-1, not sure.

Wondering if it is a system setting on my end, but also not sure about that.

It has been happening to me for at least as long. I’m on kwallet 6.16.0-1.

Okay, I turned crash notifications back on, so I’ll see if this is still a thing in 6.16.0-1.

Okay, turned back on notifications and with version:

Name : kwallet
Version : 6.16.0-1

and wallet crashed again. I tried to submit bug to kde in the past. The output from the crash is shown here (I don’t know how to format tags here, so just going to dump it here):

Application: KDE Wallet Service (ksecretd), signal: Segmentation fault

This GDB supports auto-downloading debuginfo from the following URLs:

https://debuginfod.archlinux.org

Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]

Debuginfod has been disabled.

To make this setting permanent, add ‘set debuginfod enabled off’ to .gdbinit.

warning: Can’t open file anon_inode:i915.gem during file-backed mapping note processing

[New LWP 32368]

[New LWP 32369]

[New LWP 32370]

[New LWP 32373]

[New LWP 32372]

[Thread debugging using libthread_db enabled]

Using host libthread_db library “/usr/lib/libthread_db.so.1”.

Core was generated by `/usr/bin/ksecretd’.

Program terminated with signal SIGSEGV, Segmentation fault.

#0 0x00007741e329894c in ?? () from /usr/lib/libc.so.6

[Current thread is 1 (Thread 0x7741e34139c0 (LWP 32368))]

Cannot QML trace cores :frowning:

[Current thread is 1 (Thread 0x7741e34139c0 (LWP 32368))]

Thread 5 (Thread 0x7741c67ff6c0 (LWP 32372)):

#0 0x00007741e329f042 in ?? () from /usr/lib/libc.so.6

#1 0x00007741e32931ac in ?? () from /usr/lib/libc.so.6

#2 0x00007741e329381c in ?? () from /usr/lib/libc.so.6

#3 0x00007741e3295ede in pthread_cond_wait () from /usr/lib/libc.so.6

#4 0x00007741d4d600de in ?? () from /usr/lib/libgallium-25.1.7-arch1.1.so

#5 0x00007741d4d1a6bd in ?? () from /usr/lib/libgallium-25.1.7-arch1.1.so

#6 0x00007741d4d6000d in ?? () from /usr/lib/libgallium-25.1.7-arch1.1.so

#7 0x00007741e32969cb in ?? () from /usr/lib/libc.so.6

#8 0x00007741e331aa4c in ?? () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7741c5ffe6c0 (LWP 32373)):

#0 0x00007741e329f042 in ?? () from /usr/lib/libc.so.6

#1 0x00007741e32931ac in ?? () from /usr/lib/libc.so.6

#2 0x00007741e329381c in ?? () from /usr/lib/libc.so.6

#3 0x00007741e3295ede in pthread_cond_wait () from /usr/lib/libc.so.6

#4 0x00007741d4d600de in ?? () from /usr/lib/libgallium-25.1.7-arch1.1.so

#5 0x00007741d4d1a6bd in ?? () from /usr/lib/libgallium-25.1.7-arch1.1.so

#6 0x00007741d4d6000d in ?? () from /usr/lib/libgallium-25.1.7-arch1.1.so

#7 0x00007741e32969cb in ?? () from /usr/lib/libc.so.6

#8 0x00007741e331aa4c in ?? () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7741df4a66c0 (LWP 32370)):

#0 0x00007741e329f042 in ?? () from /usr/lib/libc.so.6

#1 0x00007741e32931ac in ?? () from /usr/lib/libc.so.6

#2 0x00007741e32931f4 in ?? () from /usr/lib/libc.so.6

#3 0x00007741e330d52e in poll () from /usr/lib/libc.so.6

#4 0x00007741e536a20b in ?? () from /usr/lib/libxcb.so.1

#5 0x00007741e536bf3d in xcb_wait_for_event () from /usr/lib/libxcb.so.1

#6 0x00007741dfdaf6e9 in ?? () from /usr/lib/qt6/plugins/platforms/../../../libQt6XcbQpa.so.6

#7 0x00007741e3d1ee69 in ?? () from /usr/lib/libQt6Core.so.6

#8 0x00007741e32969cb in ?? () from /usr/lib/libc.so.6

#9 0x00007741e331aa4c in ?? () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7741dfca76c0 (LWP 32369)):

#0 0x00007741e33187ad in syscall () from /usr/lib/libc.so.6

#1 0x00007741e3bb8c12 in QMetaCallEvent::~QMetaCallEvent() () from /usr/lib/libQt6Core.so.6

#2 0x00007741e3bb8c35 in QMetaCallEvent::~QMetaCallEvent() () from /usr/lib/libQt6Core.so.6

#3 0x00007741e3b68505 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt6Core.so.6

#4 0x00007741e3e3fcf8 in ?? () from /usr/lib/libQt6Core.so.6

#5 0x00007741e2fa987d in ?? () from /usr/lib/libglib-2.0.so.0

#6 0x00007741e2faacd7 in ?? () from /usr/lib/libglib-2.0.so.0

#7 0x00007741e2faaee5 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0

#8 0x00007741e3e3c5e2 in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/libQt6Core.so.6

#9 0x00007741e3b744b6 in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/libQt6Core.so.6

#10 0x00007741e3c873c6 in QThread::exec() () from /usr/lib/libQt6Core.so.6

#11 0x00007741e417adae in ?? () from /usr/lib/libQt6DBus.so.6

#12 0x00007741e3d1ee69 in ?? () from /usr/lib/libQt6Core.so.6

#13 0x00007741e32969cb in ?? () from /usr/lib/libc.so.6

#14 0x00007741e331aa4c in ?? () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7741e34139c0 (LWP 32368)):

[KCrash Handler]

#4 0x00007741e5529d6e in ?? () from /usr/lib/libqca-qt6.so.2

#5 0x00007741e552a3a1 in QCA::MemoryRegion::~MemoryRegion() () from /usr/lib/libqca-qt6.so.2

#6 0x000058299dcb1bc5 in ?? ()

#7 0x000058299dcb1cf2 in ?? ()

#8 0x000058299dcaf083 in ?? ()

#9 0x000058299dca44a6 in ?? ()

#10 0x000058299dc8ed50 in ?? ()

#11 0x000058299dc87eae in ?? ()

#12 0x00007741e3227675 in ?? () from /usr/lib/libc.so.6

#13 0x00007741e3227729 in __libc_start_main () from /usr/lib/libc.so.6

#14 0x000058299dc88945 in ?? ()

1 Like

Soon after my post above, I suddenly had to sign back into everything manually one time. Since then, kwallet stopped crashing. I think kwallet had stored an older google password that was still working somehow, and now that I manually entered the updated password, it stopped crashing. I’m not sure though.

Well, I don’t use a password at all. So, pretty sure that’s not the issue for me at least.

I don’t have to type a password when Kwallet starts. I mean that the password for my Google account which it had stored was, I think, incorrect. Something triggered it to have me enter the WiFi password and my Google password to get online, and since then, it hasn’t crashed anymore.

Oh I see. I don’t use google for anything either or store any passwords in the keyring etc… a secrets provider is required for my email client otherwise I would just remove it.

My theory was wrong though. It just crashed again on startup.

Yeah, I’ve noticed the issue is intermittent for me too. Still works fine though. Not really sure what to think. If my email client (tuta) didn’t require a secrets provider I would just get rid of it as I do not use it anyway. I wish there was some kind of drop in fake secrets provider that literally does nothing… Guess we’ll just have to keep waiting. Should probably search on the bug tracker/file a bug at this point.

Im using the latest OpenSUSE Slowroll and got this error:

“KDE Wallet Service has closed unxpectedly”

here is the detailed log:

Starting debugger gdb --init-eval-command=set auto-solib-add off --nw --nx --batch --init-eval-command=set debuginfod enabled on --command=/tmp/drkonqi.hTgJIJ --command=/tmp/drkonqi.mrYtcU --core=/tmp/drkonqi-core.zXVSGK/core /usr/bin/ksecretd warning: Can’t open file /usr/lib64/libpcre2-16.so.0.14.0 (deleted) during file-backed mapping note processing warning: Can’t open file /usr/lib64/libpcre2-8.so.0.14.0 (deleted) during file-backed mapping note processing [New LWP 2391] [New LWP 2427] [New LWP 2428] [New LWP 2425] [New LWP 2414] [New LWP 2415] [New LWP 2424] [New LWP 2426] [New LWP 2429] [New LWP 2430] [Thread debugging using libthread_db enabled] Using host libthread_db library “/lib64/libthread_db.so.1”. Core was generated by /usr/bin/ksecretd’. Program terminated with signal SIGSEGV, Segmentation fault. #0 __pthread_kill_implementation (threadid=, 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 0x7f76ca62e380 (LWP 2391))] python sentry-sdk not installed Cannot QML trace cores add symbol table from file “/lib64/libc.so.6” Traceback (most recent call last): File “/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py”, line 812, in print_preamble print_preamble_internal() ~~~~~~~~~~~~~~~~~~~~~~~^^ File “/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py”, line 803, in print_preamble_internal print_sentry_payload(thread) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File “/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py”, line 727, in print_sentry_payload payload = SentryEvent().make(program, thread) File “/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py”, line 520, in make stacktrace = SentryTrace(crash_thread, True).to_dict() File “/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py”, line 367, in to_dict SentryTrace.load_solib(self.thread, cramped_memory) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py”, line 351, in load_solib sentry_sdk.add_breadcrumb( ^^^^^^^^^^ NameError: name ‘sentry_sdk’ is not defined name ‘sentry_sdk’ is not defined Debugging ended with exit code ‘1’ and exit status ‘NormalExit’ Debugging ended with exit code ‘1’ and exit status ‘NormalExit’

same problem in debian testing.

in debian testing, after installing libpam-kwallet5, the problem disappeared.