Project

General

Profile

Actions

Bug #9135

closed

ruby 2.0.0p247 [BUG] Bus Error

Bug #9135: ruby 2.0.0p247 [BUG] Bus Error

Added by runfor (Илья Конюхов) almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin13.0.0]
[ruby-core:58461]

Description

I've encountered a strange ruby error on my mac while testing code with spec.

Here is the full output I get: https://gist.github.com/RunsFor/6cd51563bc56dd2457d4

As you can see, sometimes it fails, sometimes not. And it crashes only with debugger option.

I also tested this on the linux machine(gentoo) and it works fine.

I also created a test project to reproduce the issue.
https://bitbucket.org/runfor/ruby-fail

The command to run is:

bundle exec rspec --debugger

I'm interesting what the problem could be and how to avoid this.

Updated by satoryu (Tatsuya Sato) almost 12 years ago Actions #1 [ruby-core:58467]

This problem may be not Ruby's issue but ruby-debugger's issue.
According to ruby-debugger's README, the support for Ruby 2.0.0 is not enough and is recognised as a known issue.

https://github.com/cldwalker/debugger#known-issues

Updated by mrkn (Kenta Murata) almost 12 years ago Actions #2 [ruby-core:58615]

  • Status changed from Open to Rejected

You can use byebug to debug your code with this command line: bundle exec rspec -rbyebug.

FYI, --debug option of rspec has been removed in 3.0.0.beta1 of rspec-core.
Please see rspec-core's Changelog.md: https://github.com/rspec/rspec-core/blob/master/Changelog.md

Actions

Also available in: PDF Atom