Project

General

Profile

Actions

Bug #10486

closed

Crash running rspec let(:foo){undefinedhash['key']}

Added by nikgregory (Nik Gregory) over 9 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-darwin14.0]
[ruby-core:66139]

Description

! Get details about a specific site (FAILED)

Files

ruby_2014-11-07-160619_nik.crash (17.8 KB) ruby_2014-11-07-160619_nik.crash nikgregory (Nik Gregory), 11/07/2014 09:22 PM
bug-10486.log (56 KB) bug-10486.log nobu (Nobuyoshi Nakada), 11/08/2014 12:22 AM
ruby-10486.tar (15 KB) ruby-10486.tar bug scripts nikgregory (Nik Gregory), 11/09/2014 04:31 AM
10486-rvm-2.1.2.log (39.1 KB) 10486-rvm-2.1.2.log rvm 2.1.2 crash stack trace nikgregory (Nik Gregory), 11/09/2014 04:43 AM
ruby_2014-11-08-234055_nik.crash (13.8 KB) ruby_2014-11-08-234055_nik.crash rvm 2.1.2 system crahs file nikgregory (Nik Gregory), 11/09/2014 04:48 AM

Updated by nikgregory (Nik Gregory) over 9 years ago

OS version
uname -a
Darwin nik.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

How to reproduce it?

Updated by nikgregory (Nik Gregory) over 9 years ago

I am working on the simplest test case. Mine is currently a lot of code.

Updated by nikgregory (Nik Gregory) over 9 years ago

I have a somewhat inconsistent steps to reproduce

  1. in my existing terminal, I created the code that is in the attached tarball

tar xzvf ruby-10486.tar
cd rubybug
bundle install --path=vendor
bundle exec rake doc
and I get the crash above

in a different terminal in SAME directory
bundle exec rake doc
produces

 bundle exec rake doc
/Users/nik/.rvm/rubies/ruby-2.1.4/bin/ruby -I/Users/nik/sandbox/engineering/gardener/rubybug/vendor/ruby/2.1.0/gems/rspec-core-3.1.7/lib:/Users/nik/sandbox/engineering/gardener/rubybug/vendor/ruby/2.1.0/gems/rspec-support-3.1.2/lib /Users/nik/sandbox/engineering/gardener/rubybug/vendor/ruby/2.1.0/gems/rspec-core-3.1.7/exe/rspec --pattern spec/\*_spec.rb --format RspecApiDocumentation::ApiFormatter
Generating API Docs
  Site
  GET api/v1/sites/:site
----> Working...
    ! Get details about a specific site (FAILED)

Failures:

  1) Site GET api/v1/sites/:site Get details about a specific site
     Failure/Error: Unable to find matching line from backtrace
     SystemStackError:
       stack level too deep
     # /Users/nik/sandbox/engineering/gardener/rubybug/vendor/ruby/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/memoized_helpers.rb:242
     # 
     #   Showing full backtrace because every line was filtered out.
     #   See docs for RSpec::Configuration#backtrace_exclusion_patterns and
     #   RSpec::Configuration#backtrace_inclusion_patterns for more information.

Finished in 0.16372 seconds (files took 0.41338 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/test_spec.rb:18 # Site GET api/v1/sites/:site Get details about a specific site
/Users/nik/.rvm/rubies/ruby-2.1.4/bin/ruby -I/Users/nik/sandbox/engineering/gardener/rubybug/vendor/ruby/2.1.0/gems/rspec-core-3.1.7/lib:/Users/nik/sandbox/engineering/gardener/rubybug/vendor/ruby/2.1.0/gems/rspec-support-3.1.2/lib /Users/nik/sandbox/engineering/gardener/rubybug/vendor/ruby/2.1.0/gems/rspec-core-3.1.7/exe/rspec --pattern spec/\*_spec.rb --format RspecApiDocumentation::ApiFormatter failed

  1. if I rvm use 2.1.2 I get a different stack trace but still a crash
    see the 10486-rvm-2.1.2.log attached
    ruby -v
    ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
Actions #5

Updated by naruse (Yui NARUSE) over 6 years ago

  • Target version deleted (2.2.0)
Actions #6

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0