Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

grray
Copy link
Contributor

@grray grray commented Jun 28, 2016

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
Copy link
Member

dginev commented Jun 28, 2016

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 grray mentioned this pull request Jun 29, 2016
@grray
Copy link
Contributor Author

grray commented Jun 29, 2016

#10 fixes this

@grray grray closed this Jun 29, 2016
@grray grray deleted the clone_bug branch June 29, 2016 00:24
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.

None yet

2 participants