Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/python/TransactionTest.py leads to segfault #2328

Open
gudzpoz opened this issue Feb 4, 2024 · 0 comments
Open

test/python/TransactionTest.py leads to segfault #2328

gudzpoz opened this issue Feb 4, 2024 · 0 comments

Comments

@gudzpoz
Copy link

gudzpoz commented Feb 4, 2024

Discovered when playing around #2246 and building wheels with cibuildwheel.

Reproducing Steps

Build ledger with -DUSE_PYTHON=ON, install it and run python test/python/TransactionTest.py. It is also reproduced when running Python tests in the cmake.yml workflow (gudzpoz@0242b68, results).

$ python test/python/TransactionTest.py
.*** stack smashing detected ***: terminated
[1]    712857 IOT instruction (core dumped)  python test/python/TransactionTest.py

Bisecting the file it seems the following line causes the segfault.

xacts[0].note = 'this is also a note'

Stack trace: gdb.bt.txt

Environment

OS: Arch Linux x86_64 (EndeavourOS)
Ledger: Ledger 3.3.2-20230330
Python: Python 3.11.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant