rspec 1.2.9 raise ObjectBoundsExceededError #83

Closed
speedmax opened this Issue Nov 22, 2009 · 1 comment

Comments

Projects
None yet
2 participants

it runs fine in both 1.8 and 1.9, This could be a rspec issue since it doesn't check if it's trying to delete out of bound index from a array.

Problem file ~/.rvm/gems/rbx/head/gems/rspec-1.2.9/lib/spec/runner/option_parser.rb
def parse_drb
argv = @options.argv
is_drb = false
is_drb ||= argv.delete(OPTIONS[:drb][0]) # <= Basically these
is_drb ||= argv.delete(OPTIONS[:drb][1]) # <= bad boys
return false unless is_drb
if DrbCommandLine.run(self.class.parse(argv, @error_stream, @out_stream))
@options.examples_should_not_be_run
true
else
@error_stream.puts "Running specs locally:"
false
end
end

Rubinius runs the spec fine when i force the parse_drb to return false.

Backtrace

[ /workspace/rubinius/spec ] >: ruby play_spec.rb
An exception occurred running play_spec.rb
    Bounds of object exceeded:
      type: Tuple, bytes: 16, accessed: 1
 (ObjectBoundsExceededError)

Backtrace:
                          Array#delete at kernel/common/array.rb:1783
  Spec::Runner::OptionParser#parse_drb at /Users/taylorluk/.rvm/gems/rbx/head/gems/rspec-1.2.9/lib/spec/runner/option_parser.rb:196
     Spec::Runner::OptionParser#order! at /Users/taylorluk/.rvm/gems/rbx/head/gems/rspec-1.2.9/lib/spec/runner/option_parser.rb:130
                  Spec::Runner.options at /Users/taylorluk/.rvm/gems/rbx/head/gems/rspec-1.2.9/lib/spec/runner.rb:53
  Spec::Runner::ExampleGroupCreationListener#register_example_group at /Users/taylorluk/.rvm/gems/rbx/head/gems/rspec-1.2.9/lib/spec/runner.rb:18
 Spec::Example::ExampleGroupFactory::ClassMethods(Class)#register_example_group {} at /Users/taylorluk/.rvm/gems/rbx/head/gems/rspec-1.2.9/lib/spec/example
                                                                                      /example_group_factory.rb:19
                            Array#each at kernel/bootstrap/array.rb:156
 Spec::Example::ExampleGroupFactory::ClassMethods(Class)#register_example_group at /Users/taylorluk/.rvm/gems/rbx/head/gems/rspec-1.2.9/lib/spec/example/example_group_factory.rb:18
  Spec::Example::ExampleGroupMethods(Class)#inherited at /Users/taylorluk/.rvm/gems/rbx/head/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:30
                      Class#initialize at kernel/common/class.rb:76
  Spec::Example::ExampleGroupMethods(Class)#subclass at /Users/taylorluk/.rvm/gems/rbx/head/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:180
  Spec::Example::ExampleGroupMethods(Class)#describe at /Users/taylorluk/.rvm/gems/rbx/head/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:55
  Spec::Example::ExampleGroupFactory::ClassMethods(Class)#create_example_group at /Users/taylorluk/.rvm/gems/rbx/head/gems/rspec-1.2.9/lib/spec/example/example_group_factory.rb:31
      Spec::DSL::Main(Object)#describe at /Users/taylorluk/.rvm/gems/rbx/head/gems/rspec-1.2.9/lib/spec/dsl/main.rb:28
                       main.__script__ at play_spec.rb:3
    Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:230
           Requirer::Utils.single_load at kernel/delta/requirer.rb:236
   Requirer::Utils.load_from_extension at kernel/delta/requirer.rb:321
               Rubinius::Loader#script at kernel/loader.rb:334
                 Rubinius::Loader#main at kernel/loader.rb:448
                     Object#__script__ at kernel/loader.rb:452
Owner

evanphx commented Mar 26, 2010

Please retest on master/head.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment