KWARC / rust-libxml

Rust wrapper for libxml2
https://crates.io/crates/libxml
MIT License
76 stars 38 forks source link

Test, which shows bug in clone() (or drop?) function #8

Closed grray closed 8 years ago

grray commented 8 years ago

Both tests gives me segmentation fault on linux with rust 1.9.0. I can't fix it myself. Second test is more "real life", but I'm not sure, maybe compiler can optimize it and do it without cloning.

dginev commented 8 years ago

Thanks, will take a look! The global scope of memory management in libxml is admittedly a hard paradigm to wrap in Rust, not surprised that there can be a segfault. Great to have tests!

grray commented 8 years ago

10 fixes this