1.11.5 / 2021-05-19 #2245
flavorjones
announced in
Releases
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1.11.5 / 2021-05-19
Fixed
[Windows CRuby] Work around segfault at process exit on Windows when using libxml2 system DLLs.
libxml 2.9.12 introduced new behavior to avoid memory leaks when unloading libxml2 shared libraries (see libxml/!66). Early testing caught this segfault on non-Windows platforms (see #2059 and libxml@956534e) but it was incompletely fixed and is still an issue on Windows platforms that are using system DLLs.
We work around this by configuring libxml2 in this situation to use its default memory management functions. Note that if Nokogiri is not on Windows, or is not using shared system libraries, it will will continue to configure libxml2 to use Ruby's memory management functions.
Nokogiri::VERSION_INFO["libxml"]["memory_management"]
will allow you to verify when the default memory management functions are being used. [#2241]Added
Nokogiri::VERSION_INFO["libxml"]
now contains the key"memory_management"
to declare whether libxml2 is using itsdefault
memory management functions, or whether it uses the memory management functions fromruby
. See above for more details.This discussion was created from the release 1.11.5 / 2021-05-19.
Beta Was this translation helpful? Give feedback.
All reactions