brianmario/yajl-ruby — Issue #87: Ruby 1.9.3 segmentation fault on Yajl::Parser stream
Author: nateware
Created: 2011-11-01 22:58:03+00:00
State: open

Blog entry of somebody else that hit this and their solution: http://tom.meinlschmidt.org/2011/11/01/cucumber-yajl-troubles-osx-lion/

The above solution also worked on my box running Snow Leopard.

Relevant code:

@yajl = Yajl::Parser.new(:symbolize_keys => true)
@yajl.on_parse_complete = lambda{|text| puts "got: #{text}"}
input.each_line do |line|
@yajl << line
end

I had a stack trace but lost it. But the ruby interpreter segfaulted in the :<< method with the same errors as the above blog.