Skip to content

Deadlock in Unit Tests #190

@jzampieron

Description

@jzampieron

I am able to get unit tests which use the wrapper to deadlock on startup.

It seems to be worse on x86-64 and somehow seems to work on aarch64, but this could be a timing thing.

Best I can tell the rust test execution runtime is violating the libxml2 initialization requirement.

Reference:

Uncertain if this is even fixable in rust-libxml or just needs to be a known issue and documented.

I'm still new-enough to Rust that IDK if replacing INIT_LIBXML_PARSER with a OnceLock instead of a Once would do it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions