Bug #9135
closedruby 2.0.0p247 [BUG] Bus Error
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) over 10 years ago
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.
Updated by mrkn (Kenta Murata) over 10 years ago
- 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