When I run
BSON::ObjectId.new('\xff')
in the application rails console, the console crashes with this segfault :
/bundle/ruby/2.0.0/gems/bson-1.8.6/lib/bson/types/object_id.rb:124: [BUG] Segmentation fault
Stack frame :
c:0025 p:---- s:0092 e:000091 CFUNC :to_s
c:0024 p:0009 s:0089 e:000087 METHOD /ftn/apps/picor/testing/shared/bundle/ruby/2.0.0/gems/bson-1.8.6/lib/bson/types/object_id.rb:124
c:0023 p:0010 s:0085 e:000084 BLOCK /opt/rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/irb/inspector.rb:122 [FINISH]
c:0022 p:---- s:0082 e:000081 CFUNC :call
c:0021 p:0011 s:0078 e:000077 METHOD /opt/rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/irb/inspector.rb:115
c:0020 p:0012 s:0074 e:000073 METHOD /opt/rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/irb/context.rb:386
c:0019 p:0015 s:0071 e:000068 METHOD /opt/rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/irb.rb:662
...<snipped>