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

Macruby "incorrect checksum for freed object" (w/simple test case) #406

Closed
andre opened this issue Jan 30, 2011 · 4 comments
Closed

Macruby "incorrect checksum for freed object" (w/simple test case) #406

andre opened this issue Jan 30, 2011 · 4 comments

Comments

@andre
Copy link

andre commented Jan 30, 2011

Nokogiri on Macruby (0.8) is sporadically crashing with "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: OKmacruby(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

I posted this issue to the Nokogiri mailing list here.

@flavorjones
Copy link
Member

Howdy!

This code appears to run fine under MRI (1.8, 1.9) and JRuby (1.5, 1.6). This leads me to think it may be a macruby bug. Can you try reporting it to the macruby team?

@andre
Copy link
Author

andre commented Feb 3, 2011

Will do. Cheers,

Andre

@andre
Copy link
Author

andre commented Feb 3, 2011

I reported to the MacRuby team, and we can't reproduce it in the nightly build -- what will become 0.9.

So it's definitely a MacRuby issue, not a Nokogiri one.

@flavorjones
Copy link
Member

Awesome, thanks so much for following up and letting us know the outcome!

And thanks for using Nokogiri!

flavorjones added a commit that referenced this issue May 18, 2011
flavorjones added a commit that referenced this issue May 19, 2011
Conflicts:

	CHANGELOG.rdoc
This issue was closed.
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

No branches or pull requests

2 participants