"incorrect checksum for freed object" with Nokogiri (w/simple test case)
Hello, Nokogiri started working with MacRuby 0.8, which is awesome. However, I'm getting sporadic crashes: "incorrect checksum for freed object - object was probably modified after being freed." It doesn't crash every time I run the test, but if I run it 10 times, I get one or more failures. ***Self-contained script to reproduce:*** https://gist.github.com/797346. ***Example crash output:*** $ macruby nokogiri_test.rb starting Nokogiri parsed the html Run # 0: OK Run # 1: OK macruby(59860,0x100f81000) malloc: *** error for object 0x10944ce38: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug Abort trap ***My Nokogiri info:*** $ nokogiri -v --- warnings: [] nokogiri: 1.4.4 ruby: version: 1.9.2 platform: universal-darwin10.0 engine: macruby libxml: binding: extension compiled: 2.7.3 loaded: 2.7.3 ***MacRuby Info*** $ macruby -v MacRuby 0.8 (ruby 1.9.2) [universal-darwin10.0, x86_64] I posted to the Nokogiri list ( https://github.com/tenderlove/nokogiri/issues/issue/406). The test case runs on all the other Ruby versions we've tried, so it seems Macruby-specific. Any insight appreciated! Andre
Hi,
Nokogiri started working with MacRuby 0.8, which is awesome. However, I'm getting sporadic crashes: "incorrect checksum for freed object - object was probably modified after being freed." It doesn't crash every time I run the test, but if I run it 10 times, I get one or more failures. **Self-contained script to reproduce:** https://gist.github.com/797346.
I tried running this test on trunk at least 20 times and I didn't get any incorrect checksum error or any crash. I suspect it's a bug already fixed in trunk (maybe http://www.macruby.org/trac/changeset/5191/). If you don't want to compile MacRuby by hand you may want to try the nighly builds: http://www.macruby.org/files/nightlies/
participants (2)
-
Andre Lewis
-
Vincent Isambart