Skip to content

Conversation

@choppsv1
Copy link
Collaborator

@choppsv1 choppsv1 commented Nov 7, 2025

This crash (abort) is hit when the parsed data does not validate:

python3: ..validation.c:1998: lyd_validate: Assertion `tree && ctx' failed.
Aborted

The tree mentioned in the assert is from last value ffi.NULL that was passed in in the parent is not None case.

Instead just pass a pointer for a return value regardless of the parent value.

This crash (abort) is hit when the parsed data does not validate:

    python3: ..validation.c:1998: lyd_validate: Assertion `tree && ctx' failed.
    Aborted

The `tree` mentioned in the assert is from last value ffi.NULL that was passed
in in the `parent is not None` case.

Instead just pass a pointer for a return value regardless of the parent value.

Signed-off-by: Christian Hopps <chopps@labn.net>
@choppsv1
Copy link
Collaborator Author

@rjarry Would be good to get this fix in, trivial fix, and otherwise it's causing core dumps.

@rjarry rjarry merged commit ddb7e99 into CESNET:master Nov 11, 2025
10 checks passed
@choppsv1 choppsv1 deleted the chopps/fix-parse-data-crash branch November 11, 2025 14:11
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

Successfully merging this pull request may close these issues.

2 participants