Skip to content

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

Open
@gudzpoz

Description

@gudzpoz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions