Package: keepassxc-full
Version: 2.7.10+dfsg1-1
Severity: normal

Dear Maintainer,

When the currently opened database is on an SSHFS Fuse filesystem, the keepassxc process fails to suspend when the device goes to sleep. The process hangs for twenty seconds before being forced to suspend, as indicated by the included dmesg log. Do note the information from the WiFi interface (a RTL8821CE chip). It sleeps when the lid closes, so obviously the filesystem would not very responsive when keepassxc is trying to suspend.

This bug affects my personal laptop, a HP Pavilion 15. When I close the lid, the screen and fan remain on indefinitely. Upon opening the lid, the entire system is unresponsive for 20+ seconds. This behavior only occurs when keepassxc is running with my database unlocked. This bug is quite annoying and may not be reproducible, so I am willing to help with testing any solutions/patches.

/etc/mtab entry:
desktop:/ /mnt/desktop fuse.sshfs rw,nosuid,nodev,relatime,user_id=1000,group_id=1000,default_permissions,allow_other 0 0

dmesg log:
[50227.427980] PM: suspend entry (s2idle)
[50227.433938] Filesystems sync: 0.005 seconds
[50227.435325] Freezing user space processes
[50247.437721] Freezing user space processes failed after 20.002 seconds (1 tasks refusing to freeze, wq_busy=0): [50247.437768] task:keepassxc state:D stack:0 pid:267539 tgid:267539 ppid:1 flags:0x00004006
[50247.437780] Call Trace:
[50247.437784]  <TASK>
[50247.437791]  __schedule+0x505/0xc00
[50247.437804]  schedule+0x27/0xc0
[50247.437809]  request_wait_answer+0xd0/0x2a0
[50247.437821]  ? __pfx_autoremove_wake_function+0x10/0x10
[50247.437830]  __fuse_simple_request+0xd7/0x290
[50247.437841]  fuse_dentry_revalidate+0x132/0x340
[50247.437847]  ? fuse_do_getattr+0x154/0x200
[50247.437858]  lookup_fast+0xce/0xf0
[50247.437868]  walk_component+0x1f/0x150
[50247.437874]  link_path_walk.part.0.constprop.0+0x21e/0x390
[50247.437881]  path_lookupat+0x3e/0x1a0
[50247.437887]  filename_lookup+0xde/0x1d0
[50247.437898]  vfs_statx+0x8d/0x100
[50247.437908]  do_statx+0x63/0xa0
[50247.437920]  __x64_sys_statx+0x98/0xe0
[50247.437930]  do_syscall_64+0x87/0x1b0
[50247.437936]  ? __memcg_slab_free_hook+0xf7/0x140
[50247.437946]  ? kmem_cache_free+0x3a4/0x440
[50247.437953]  ? arch_exit_to_user_mode_prepare.isra.0+0x75/0xa0
[50247.437959]  ? syscall_exit_to_user_mode+0x37/0x1b0
[50247.437965]  ? do_syscall_64+0x93/0x1b0
[50247.437972]  ? vfs_write+0xf8/0x440
[50247.437980]  ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[50247.437985]  ? syscall_exit_to_user_mode+0x37/0x1b0
[50247.437990]  ? do_syscall_64+0x93/0x1b0
[50247.437996]  ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[50247.438000]  ? syscall_exit_to_user_mode+0x37/0x1b0
[50247.438005]  ? do_syscall_64+0x93/0x1b0
[50247.438011]  ? vfs_write+0xf8/0x440
[50247.438015]  ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[50247.438020]  ? syscall_exit_to_user_mode+0x37/0x1b0
[50247.438025]  ? do_syscall_64+0x93/0x1b0
[50247.438030]  ? arch_exit_to_user_mode_prepare.isra.0+0x16/0xa0
[50247.438035]  ? syscall_exit_to_user_mode+0x37/0x1b0
[50247.438040]  ? do_syscall_64+0x93/0x1b0
[50247.438044]  ? do_syscall_64+0x93/0x1b0
[50247.438049]  ? do_syscall_64+0x93/0x1b0
[50247.438053]  ? clear_bhb_loop+0x70/0xc0
[50247.438062]  ? clear_bhb_loop+0x70/0xc0
[50247.438069]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[50247.438077] RIP: 0033:0x7f5dbb22035a
[50247.438119] RSP: 002b:00007ffc89a2f588 EFLAGS: 00000206 ORIG_RAX: 000000000000014c [50247.438126] RAX: ffffffffffffffda RBX: 0000564ec7a07c40 RCX: 00007f5dbb22035a [50247.438130] RDX: 0000000000000900 RSI: 0000564ec7a0e6e8 RDI: 00000000ffffff9c [50247.438134] RBP: 0000000000510000 R08: 00007ffc89a2f5e0 R09: 0000000000000001 [50247.438138] R10: 0000000000000fff R11: 0000000000000206 R12: 00007ffc89a2f5c0 [50247.438141] R13: 00007ffc89a2f5b8 R14: 0000564ec7a07c60 R15: 0000000000010000
[50247.438149]  </TASK>
[50247.438575] OOM killer enabled.
[50247.438578] Restarting tasks ... done.
[50247.439001] random: crng reseeded on system resumption
[50247.566905] PM: suspend exit
[50253.821574] wlo1: authenticate with f8:c6:50:d7:2d:ec (local address=74:97:79:66:55:ad)
[50253.844324] wlo1: send auth to f8:c6:50:d7:2d:ec (try 1/3)
[50253.863473] wlo1: authenticated
[50253.864162] wlo1: associate with f8:c6:50:d7:2d:ec (try 1/3)
[50253.870480] wlo1: RX AssocResp from f8:c6:50:d7:2d:ec (capab=0x1111 status=0 aid=4)
[50253.870885] wlo1: associated
[50253.908404] wlo1: Limiting TX power to 30 (30 - 0) dBm as advertised by f8:c6:50:d7:2d:ec



-- System Information:
Debian Release: 13.6
  APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.105+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages keepassxc-full depends on:
ii  libargon2-1           0~20190702+dfsg-4+b2
ii  libbotan-2-19         2.19.5+dfsg-4
ii  libc6                 2.41-12+deb13u3
ii  libgcc-s1             14.2.0-19
ii  libminizip1t64        1:1.3.dfsg+really1.3.1-1+b1
ii  libpcsclite1          2.3.3-1
ii  libqrencode4          4.1.1-2
ii  libqt5concurrent5t64  5.15.15+dfsg-6+deb13u1
ii  libqt5core5t64        5.15.15+dfsg-6+deb13u1
ii  libqt5dbus5t64        5.15.15+dfsg-6+deb13u1
ii  libqt5gui5t64         5.15.15+dfsg-6+deb13u1
ii  libqt5network5t64     5.15.15+dfsg-6+deb13u1
ii  libqt5svg5            5.15.15-2
ii  libqt5widgets5t64     5.15.15+dfsg-6+deb13u1
ii  libqt5x11extras5      5.15.15-2
ii  libreadline8t64       8.2-6
ii  libstdc++6            14.2.0-19
ii  libusb-1.0-0          2:1.0.28-1
ii  libx11-6              2:1.8.12-1
ii  libxtst6              2:1.2.5-1
ii  libzxcvbn0            2.5+dfsg-2+b2
ii  zlib1g                1:1.3.dfsg+really1.3.1-1+b1

Versions of packages keepassxc-full recommends:
ii  fonts-font-awesome  5.0.10+really4.7.0~dfsg-4.1

Versions of packages keepassxc-full suggests:
pn  webext-keepassxc-browser  <none>
ii  xclip                     0.13-4

-- no debconf information

Reply via email to