Bug 507316 - Crash when trying to create AqBanking user; Workaround needed afterwards to set TAN method;
Summary: Crash when trying to create AqBanking user; Workaround needed afterwards to s...
Status: RESOLVED UPSTREAM
Alias: None
Product: kmymoney
Classification: Applications
Component: onlinebanking (other bugs)
Version First Reported In: 5.2.0
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-21 16:14 UTC by AbnormalHumanDev
Modified: 2025-07-23 06:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
gdb log/backtrace (I hope I did this right, first time doing that) (203.19 KB, text/plain)
2025-07-21 16:14 UTC, AbnormalHumanDev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AbnormalHumanDev 2025-07-21 16:14:07 UTC
Created attachment 183398 [details]
gdb log/backtrace (I hope I did this right, first time doing that)

SUMMARY
After switching to CachyOS and wanting to re-create my AqBanking user and accounts, I am running into crashes as well as having to use a workaround for creating the user.

When creating the user and choosing: HBCI Backend and Setup a PIN/TAN account, entering the credentials of my bank and my user credentials, including PIN, at the next step I am then asked to choose a preferred TAN method. Here, I can choose from a dropdown menu, as expected. Upon choosing any of the methods (but preferrably "Smart-TAN plus manuell (version 6)" or "Smart-TAN plus optisch / USB (version 6)") the application crashes. (I hope I did use gdb right, I included what I got from it).

After restarting the folowing can be observed: A user has been created with those credentials. Editing it shows "Selected TAN Method" as " -- select --". The dropdown menu has no items other than " -- select -- ". This can be remedied by using the "Get iTAN Modes" button. From then on the account becomes usable as expected.

STEPS TO REPRODUCE
1. Create a new online banking user
2. Choose "HBCI backend using AqHBCI"
3. Choose "Setup a PIN/TAN" account
4. Choose a valid bank from the list (In my case a German one, GLS Gemeinschaftsbank)
5. Enter Credentials and Password/PIN
6. Try to choose one of the TAN methods, after this, the crash should happen

OBSERVED RESULT
Crash to Desktop, user account has been set up with incomplete information. TAN method can be added with a workaround after restarting the program.

EXPECTED RESULT
Continuing with the set-up of the online banking account; No crash; Account being set up with a valid TAN method without having to re-parse them;

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
(available in the Info Center app, or by running `kinfo` in a terminal window)

Linux/KDE Plasma: CachyOS Linux
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
aqbanking version: 6.6.0-2.1

ADDITIONAL INFORMATION
Kernel Version: 6.15.7-2-cachyos (64-bit)
Graphics Platform: Wayland

gdb.txt should be in attachment - I hope i did everything right, first time I used it.
Comment 1 Thomas Baumgart 2025-07-21 16:55:09 UTC
I noticed the following in the attachment:

#7  0x00007fffc8256536 in AH_User_SetSelectedTanMethod (u=0x0, i=<optimized out>) at plugins/backends/aqhbci/banking/user.c:1854

u=0x0 is caught by an assertion inside the code causing the crash. I don't know, how this could happen as all of this is in upstream AqBanking code.

Adding the AqBanking maintainer
Comment 2 Thomas Baumgart 2025-07-23 06:43:53 UTC
It has been confirmed that this is an upstream bug and fixed in AqBanking 6.6.1.