-
Notifications
You must be signed in to change notification settings - Fork 36
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
Invalid pointer after unlink!
#28
Comments
Thank you for reporting. I think this is a bug of ExXML.jl and may have found the reason. So, I'll fix that soon. Below is a note for myself.
bug.jl
X.xml
Loading an XML document from a file fills the |
Thanks for the quick response! |
Try v0.5.1 once it is registered in METADATA (or check out the tag). |
Awesome, thanks! |
I'm trying to load an .xml file, mutate the xml document in memory, and save it to disk again. However, I get errors whenever I use
unlink!
to remove a subset of elements from my xml. Perhaps I'm misusingunlink!
or I'm not allowed to mutate xml files that I've loaded - any help appreciated.Minimal example. Create a file called
tmp2.xml
with content(this is a simplified and much reduced version of some data I have)
Then I run Julia v0.6 and get an pointer error from something calling
free
. To be clear, in my real example with more complex data, the error happens before exiting Julia - and is possibly happening during some Julia garbage collection event - but in the example below the "tmp3.xml" file is written successfully before the error happens. Speculatively, I'm wondering ifunlink!
free's some resources which are still referenced somewhere, and a finalizer or destructor or something then attempts to free it again later.The text was updated successfully, but these errors were encountered: