Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-662

Crash with BSON::ObjectId.new('\xff')

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.2
    • Affects Version/s: 1.8.6
    • Component/s: BSON
    • None
    • Environment:
      Ubuntu 12.04.1 LTS x86_64

      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>

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            nicolasch Nicolas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: