-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
Description
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:
- https://dev.w3.org/XInclude-Test-Suite/libxml2-2.4.24/libxml2-2.4.24/doc/threads.html
- A new thread is created for each test even if --test-threads=1 rust-lang/rust#104053
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.