Skip to content

Ownership of tsk_tree_t breaks in release builds. #363

@molpopgen

Description

@molpopgen

Post-mortem for future reference:

In #300, we moved the Tree API to a Deref target.

The Tree itself still owns a tsk_tree_t on the stack.
However, in release builds, this model breaks.
The API type that is the Deref target takes a pointer
to the tsk_tree_t.
In release builds, that pointer is invalidated, presumably
due to final moves of all the bits into structs.

To get this right, we have to do what we do for tables,
which is to use malloc'd pointers to tsk_foo via MBox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions