moovweb/gokogiri — comment on commit b38691b9230f6d4d35ac1d8a236ab95b9fe18df2
File:  line 0
By zhigangc:

yeah. so try to reinstall your libxml with ( --with-mem-debug). What you need to do is (on mac)

brew edit libxml2

and then add " --with-mem-debug " into "args", after "--prefix=#{prefix}".

Then run the test again, and you will see memory error.

It does not show error on a normally install libxml2 because the memory is NOT completely freed completely. There are memory leaks. As I said, unless the memory leaks are dealt with, these issues would surface.