[kmymoney] [Bug 503551] kmymoney prints "File ... is already opened by another process"
Ralf Habacker
bugzilla_noreply at kde.org
Wed Apr 30 12:48:00 BST 2025
https://bugs.kde.org/show_bug.cgi?id=503551
--- Comment #6 from Ralf Habacker <ralf.habacker at freenet.de> ---
I did run kmymoney with strace and got:
write(2, "Open file QUrl(\"file:///server/d"..., 83) = 83
access("/server/daten/kmymoney.xml", F_OK) = 0
statx(AT_FDCWD, "/server/daten/kmymoney.xml",
AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT, STATX_ALL,
{stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0,
stx_mode=S_IFREG|0644, stx_size=3649420, ...}) = 0
openat(AT_FDCWD, "/server/daten/kmymoney.xml", O_RDONLY|O_CLOEXEC) = 12
statx(12, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL,
{stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0,
stx_mode=S_IFREG|0644, stx_size=3649420, ...}) = 0
statx(12, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL,
{stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0,
stx_mode=S_IFREG|0644, stx_size=3649420, ...}) = 0
read(12, "<?xml version=\"1.0\" encoding=\"UT"..., 16384) = 16384
close(12) = 0
openat(AT_FDCWD, "/server/daten/kmymoney.xml.lck",
O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0666) = -1 EEXIST (Die Datei existiert
bereits)
-> here the file is opened with read and write access, which failed
openat(AT_FDCWD, "/server/daten/kmymoney.xml.lck", O_RDONLY|O_CLOEXEC) = 12
-> here the file is opened with read access, which was okay
statx(12, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL,
{stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0,
stx_mode=S_IFREG|0644, stx_size=91, ...}) = 0
statx(12, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL,
{stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0,
stx_mode=S_IFREG|0644, stx_size=91, ...}) = 0
read(12, "30208\nkmymoney\n...n6d5d7e29bea"..., 16384) = 91
read(12, "", 16293) = 0
close(12) = 0
uname({sysname="Linux", nodename="buero", ...}) = 0
openat(AT_FDCWD, "/var/lib/dbus/machine-id", O_RDONLY|O_CLOEXEC) = 12
read(12, "6d5d7e29bea34ce689e362c70e40def0", 32) = 32
close(12) = 0
openat(AT_FDCWD, "/proc/sys/kernel/random/boot_id", O_RDONLY|O_CLOEXEC) = 12
read(12, "18150db6-b484-488e-b1b4-9e5b844e"..., 36) = 36
close(12) = 0
kill(30208, 0) = -1 ESRCH (Kein passender Prozess
gefunden)
newfstatat(AT_FDCWD, "/etc/localtime", {st_mode=S_IFREG|0644, st_size=2298,
...}, 0) = 0
newfstatat(AT_FDCWD, "/etc/localtime", {st_mode=S_IFREG|0644, st_size=2298,
...}, 0) = 0
newfstatat(AT_FDCWD, "/etc/localtime", {st_mode=S_IFREG|0644, st_size=2298,
...}, 0) = 0
statx(AT_FDCWD, "/server/daten/kmymoney.xml.lck",
AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT, STATX_ALL,
{stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0,
stx_mode=S_IFREG|0644, stx_size=91, ...}) = 0
newfstatat(AT_FDCWD, "/etc/localtime", {st_mode=S_IFREG|0644, st_size=2298,
...}, 0) = 0
newfstatat(AT_FDCWD, "/etc/localtime", {st_mode=S_IFREG|0644, st_size=2298,
...}, 0) = 0
newfstatat(AT_FDCWD, "/etc/localtime", {st_mode=S_IFREG|0644, st_size=2298,
...}, 0) = 0
openat(AT_FDCWD, "/server/daten/kmymoney.xml.lck.rmlock",
O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0666) = 12
-> then an additional file is created with read/write access
flock(12, LOCK_EX|LOCK_NB) = -1 EACCES (Keine Berechtigung)
which could not locked and leads to the reported issue.
write(2, "setNativeLocks failed: \"Permissi"..., 43) = 43
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the KMyMoney-devel
mailing list