#1113811 homebank: [trixie] Segfaults when opening some transactions

Package:
homebank
Source:
homebank
Description:
Manage your personal accounts at home
Submitter:
Alberto Garcia
Date:
2025-09-02 22:21:01 UTC
Severity:
normal
Tags:
#1113811#5
Date:
2025-09-02 21:37:39 UTC
From:
To:
Package: homebank
Version: 5.8.6-1
Severity: important

Hi,

homebank 5.8.6-1 (trixie) segfaults when I try to open the details
of some transactions. The version in sid (currently 5.9.1-1) is not
affected.

This can be easily reproduced with the attached test case:

1. Open the file with 'homebank text.xhb'
2. There is one single account, double click on it to see the list of
   transactions.
3. There is one single transaction, double click on it.

This should open a dialog to see and edit the transaction
details. Instead, it segfaults:

Thread 1 "homebank" received signal SIGSEGV, Segmentation fault.
deftransaction_external_edit (parent=0x5555557860a0 [GtkApplicationWindow], old_txn=old_txn@entry=0x555555ddd190,
    new_txn=new_txn@entry=0x5555559351b0) at ./src/ui-transaction.c:943
943			gtk_date_entry_set_date(GTK_DATE_ENTRY(data->PO_dateto), (guint)child->date);
(gdb) print child
$4 = (Transaction *) 0x0
(bt)
#0  deftransaction_external_edit
    (parent=0x5555557860a0 [GtkApplicationWindow], old_txn=old_txn@entry=0x555555ddd190, new_txn=new_txn@entry=0x5555559351b0)
    at ./src/ui-transaction.c:943
#1  0x0000555555579cd3 in hub_ledger_action_txnedit (action=<optimized out>, parameter=<optimized out>, user_data=0x555555c777e0)
    at ./src/dsp-account.c:1669


Regards,

Berto

#1113811#10
Date:
2025-09-02 21:56:44 UTC
From:
To:
Control: tags -1 patch

I had a closer look at this, here is the upstream bug:

https://bugs.launchpad.net/homebank/+bug/2109861

And the attached patch seems enough to fix it.

Berto