kmymoney crashes

Started by Cefdinir71, 2025/11/22, 13:10:25

Previous topic - Next topic

Cefdinir71

Hi,
I'd like to try out kmymoney, so I installed via apt-get as a *.deb package.

Unfortunately, I cannot run it, it crashes during start.
Some details:

kmymoney version: 5.2.1-1

Error messages generated in konsole when kmymoney is run from there to get some debug output:
→ lw@pucki:~$ kmymoney
Model for "ST" loaded with 4 items in 0 ms
Monetary values will be formatted based on locale "de_DE" Example:  "123,45 €"
Long date format "dddd, d. MMMM yyyy"
Short date format "dd.MM.yy"
Narrow date format "dd.MM.yy"
WebConnect: Try to connect to WebConnect server
WebConnect: Connect to server failed
WebConnect: Starting server failed. Try to remove stale socket.
WebConnect: Running in server mode
KCrash: appFilePath points to nullptr!
KCrash: Application '<unknown>' crashing... crashRecursionCounter = 2
Speicherzugriffsfehler     (Speicherabzug geschrieben) kmymoney


gdb reveals some other stuff:
(gdb) run
Starting program: /usr/bin/kmymoney
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffecbff6c0 (LWP 2930984)]
[New Thread 0x7fffe7bff6c0 (LWP 2930985)]
[New Thread 0x7fffe73fe6c0 (LWP 2930986)]
[New Thread 0x7fffe4fff6c0 (LWP 2930987)]
[New Thread 0x7fffdd1ff6c0 (LWP 2930988)]
[New Thread 0x7fffdc9fe6c0 (LWP 2930989)]
[New Thread 0x7fffc3fff6c0 (LWP 2930990)]
[New Thread 0x7fffc37fe6c0 (LWP 2930991)]
[New Thread 0x7fffc2ffd6c0 (LWP 2930992)]
[Thread 0x7fffc2ffd6c0 (LWP 2930992) exited]
[Thread 0x7fffc37fe6c0 (LWP 2930991) exited]
[Thread 0x7fffc3fff6c0 (LWP 2930990) exited]
[Thread 0x7fffdc9fe6c0 (LWP 2930989) exited]
Model for "ST" loaded with 4 items in 0 ms
Monetary values will be formatted based on locale "de_DE" Example:  "123,45 €"
Long date format "dddd, d. MMMM yyyy"
Short date format "dd.MM.yy"
Narrow date format "dd.MM.yy"
WebConnect: Try to connect to WebConnect server
WebConnect: Connect to server failed
WebConnect: Starting server failed. Try to remove stale socket.
WebConnect: Running in server mode

Thread 1 "kmymoney" received signal SIGSEGV, Segmentation fault.
0x00007ffff52e4153 in sqlcipher_find_db_index () from /lib/x86_64-linux-gnu/libsqlcipher.so.2


A backtrace taken with gdb returns:
(gdb) bt
#0  0x00007ffff52e4153 in sqlcipher_find_db_index () from /lib/x86_64-linux-gnu/libsqlcipher.so.2
#1  0x00007ffff52e7c8d in sqlite3_key_v2 () from /lib/x86_64-linux-gnu/libsqlcipher.so.2
#2  0x0000555555644408 in ?? ()
#3  0x0000555555618a56 in ?? ()
#4  0x00007ffff4c33ca8 in __libc_start_call_main (main=main@entry=0x555555617500, argc=argc@entry=1, argv=argv@entry=0x7fffffffdb38)
    at ../sysdeps/nptl/libc_start_call_main.h:58
#5  0x00007ffff4c33d65 in __libc_start_main_impl (main=0x555555617500, argc=1, argv=0x7fffffffdb38, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffdb28) at ../csu/libc-start.c:360
#6  0x00005555556191e1 in ?? ()


I seems to be related to sql somehow.

What is there I can do?

Thanks and best regards.

unklarer

The Package would draw 186 packages as a dependency here. It's in forky and sid.

Are you using sid?
Is that on board? apt policy libsqlcipher2
libsqlcipher2:
  Installiert:           (keine)
  Installationskandidat: 4.11.0-1
  Versionstabelle:
     4.11.0-1 500
        500 https://deb.debian.org/debian unstable/main amd64 Packages

Cefdinir71

Hello,

well, 186 missing dependancies - please do not install them just for investigating my issue.
Here are my sys-infos:

Quoteroot@pucki:/home/lw# apt policy libsqlcipher2
libsqlcipher2:
  Installiert:           4.11.0-1
  Installationskandidat: 4.11.0-1
  Versionstabelle:
*** 4.11.0-1 500
        500 http://deb.debian.org/debian testing/main amd64 Packages
        500 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
root@pucki:/home/lw# cat /etc/debian_version
forky/sid
root@pucki:/home/lw# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux forky/sid
Release:        n/a
Codename:       forky
root@pucki:/home/lw# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux forky/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=forky
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@pucki:/home/lw# ^[[200~grep -E 'stable|testing|unstable|sid|bookworm|trixie' /etc/apt/sources.list /etc/apt/sources.list.d/*.list
grep: Befehl nicht gefunden.
root@pucki:/home/lw# grep -E 'stable|testing|unstable|sid|bookworm|trixie' /etc/apt/sources.list /etc/apt/sources.list.d/*.list
/etc/apt/sources.list:deb http://deb.debian.org/debian/ testing non-free-firmware non-free contrib main
/etc/apt/sources.list:deb https://ftp.gwdg.de/pub/linux/siduction/extra/ unstable main
/etc/apt/sources.list:deb https://ftp.gwdg.de/pub/linux/siduction/fixes/ unstable main contrib non-free
/etc/apt/sources.list.d/debian.list:deb http://deb.debian.org/debian/ unstable non-free-firmware non-free contrib main
/etc/apt/sources.list.d/extra.list:# One might consider to choose the geographical nearest or the fastest mirror.
/etc/apt/sources.list.d/extra.list:deb http://packages.siduction.org/extra/ unstable main
/etc/apt/sources.list.d/fixes.list:# One might consider to choose the geographical nearest or the fastest mirror.
/etc/apt/sources.list.d/fixes.list:deb http://packages.siduction.org/fixes/ unstable main
/etc/apt/sources.list.d/microsoft-edge.list:# deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main

I am not sure why it sometimes says "forky", sometimes "sid".

Best regards

unklarer

QuoteI'd like to try out kmymoney, so I installed via apt-get as a *.deb package.

-remove the .deb package (apt purge kmymoney && apt autopurge)
-remove/comment out (#)/etc/apt/sources.list:deb http://deb.debian.org/debian/ testing non-free-firmware non-free contrib main
/etc/apt/sources.list:deb https://ftp.gwdg.de/pub/linux/siduction/extra/ unstable main
/etc/apt/sources.list:deb https://ftp.gwdg.de/pub/linux/siduction/fixes/ unstable main contrib non-free


-apt update

-Install kmymoney via apt install

the sources should look like thisinxi -r
Repos:
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/dbgsym.sources
  Active apt repos in: /etc/apt/sources.list.d/debian.sources
    1: deb https://deb.debian.org/debian/ unstable main non-free-firmware
  No active apt repos in: /etc/apt/sources.list.d/experimental.sources
  Active apt repos in: /etc/apt/sources.list.d/extra.sources
    1: deb https://packages.siduction.org/extra unstable main non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/fixes.sources
    1: deb https://packages.siduction.org/fixes unstable main non-free-firmware


Take a look at the sources.list in the siduction manual to see what they should look like in deb822 format.

Cefdinir71

kmymoney received an updated package provided by debian team which fixed the issue. It can now be used without problems.
Thanks to all who helped to track down the issue.