hpdeifel / hledger-iadd

A terminal UI as drop-in replacement for hledger add.
BSD 3-Clause "New" or "Revised" License
77 stars 8 forks source link

Program crashes if I press return too fast #72

Open allgreed opened 1 year ago

allgreed commented 1 year ago

Given a clear shell When I start the program and press return 2+ times before the modal is present on the screen Then the program crashes.

As you can see I cannot always reproduce it: 2022-12-12-00-33-04_404x985

simonmichael commented 1 year ago

Sounds like https://github.com/simonmichael/hledger/issues/743

hpdeifel commented 1 year ago

I remember seeing this some time ago. I think I didn't manage to get a minimal reproducer, but will try again

hpdeifel commented 1 year ago

Ftr, I can still reproduce this with the newest brick versions. Specifically I get: free(): double free detected in tcache 2.


Inspired by the linked issue above: Here is a good way to reproduce:

while true; do hledger-iadd || break; done

Then hold the Esc key until it breaks.