Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 3.0.0 Segmentation fault #217

Open
exocode opened this issue Mar 28, 2021 · 1 comment
Open

Ruby 3.0.0 Segmentation fault #217

exocode opened this issue Mar 28, 2021 · 1 comment

Comments

@exocode
Copy link

exocode commented Mar 28, 2021

Hi there, I am not sure where to post this issue: Is it Ruby 3.0.0 or the ruby-debug-ide or rspec-core (3.10.1) or Rubymine 20.2.3 ?

I am using Ruby 3.0.0 on a Mac (Big Sur) installed via Homebrews rbenv

When I run my rSpec tests, everything works fine. But when I set Breakpoints with Rubymine and start any test (where the breakpoint stops the test) I get this crash:

/Users/jan/Coding/RubymineProjects/project/spec/requests/search_request_spec.rb:29: [BUG] Segmentation fault at 0x0000000000000000
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin20]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports
   for more details.
Don't forget to include the above Crash Report log file in bug reports.

-- Control frame information -----------------------------------------------
c:0061 p:0022 s:0315 E:0016d0 BLOCK  /Users/jan/Coding/RubymineProjects/project/spec/requests/search_request_spec.rb:29 [FINISH]
c:0060 p:---- s:0312 e:000311 CFUNC  :instance_exec
c:0059 p:0015 s:0307 E:001700 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:262
c:0058 p:0003 s:0302 E:001720 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:508
c:0057 p:0003 s:0299 E:001740 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:465
c:0056 p:0003 s:0296 E:001760 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:486
c:0055 p:0003 s:0293 E:001780 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:626
c:0054 p:0018 s:0290 E:0017b0 METHOD /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:350
c:0053 p:0009 s:0284 E:0017d8 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-rails-5.0.1/lib/rspec/rails/adapters.rb:75 [FINISH]
c:0052 p:---- s:0280 e:000279 CFUNC  :instance_exec
c:0051 p:0013 s:0275 E:001810 METHOD /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:455
c:0050 p:0010 s:0269 E:001840 METHOD /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:390
c:0049 p:0010 s:0263 E:001860 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:628
c:0048 p:0018 s:0260 E:001890 METHOD /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:350
c:0047 p:0005 s:0254 E:0018b0 BLOCK  /Users/jan/Coding/RubymineProjects/project/spec/rails_helper.rb:96
c:0046 p:0006 s:0251 E:0018d8 METHOD /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/database_cleaner-core-2.0.1/lib/database_cleaner/strategy.rb:30
c:0045 p:0028 s:0246 E:000158 METHOD /Users/jan/.rbenv/versions/3.0.0/lib/ruby/3.0.0/forwardable.rb:238

a second try:

/Users/jan/Coding/RubymineProjects/project/spec/requests/search_request_spec.rb:29: [BUG] Segmentation fault at 0x0000000000000000
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin20]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports
   for more details.
Don't forget to include the above Crash Report log file in bug reports.

-- Control frame information -----------------------------------------------
c:0061 p:0022 s:0315 E:002510 BLOCK  /Users/jan/Coding/RubymineProjects/project/spec/requests/search_request_spec.rb:29 [FINISH]
c:0060 p:---- s:0312 e:000311 CFUNC  :instance_exec
c:0059 p:0015 s:0307 E:002540 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:262
c:0058 p:0003 s:0302 E:002560 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:508
c:0057 p:0003 s:0299 E:002580 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:465
c:0056 p:0003 s:0296 E:0025a0 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:486
c:0055 p:0003 s:0293 E:0025c0 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:626
c:0054 p:0018 s:0290 E:0025f0 METHOD /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:350
c:0053 p:0009 s:0284 E:002618 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-rails-5.0.1/lib/rspec/rails/adapters.rb:75 [FINISH]
c:0052 p:---- s:0280 e:000279 CFUNC  :instance_exec
c:0051 p:0013 s:0275 E:002650 METHOD /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:455
c:0050 p:0010 s:0269 E:002680 METHOD /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:390
c:0049 p:0010 s:0263 E:0026a0 BLOCK  /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb:628
c:0048 p:0018 s:0260 E:0026d0 METHOD /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb:350
c:0047 p:0005 s:0254 E:0026f0 BLOCK  /Users/jan/Coding/RubymineProjects/project/spec/rails_helper.rb:96
c:0046 p:0006 s:0251 E:000008 METHOD /Users/jan/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/database_cleaner-core-2.0.1/lib/database_cleaner/strategy.rb:30
c:0045 p:0028 s:0246 E:000048 METHOD /Users/jan/.rbenv/versions/3.0.0/lib/ruby/3.0.0/forwardable.rb:238
@Roman-Sht
Copy link

Happens to me as well, while debugging cucumber scenarios.
Attaching the logs.
idea.log

Ruby version: 3.0.0
mac os: mojave
Rubymine: 2021.1.2
ruby-debug-ide (0.7.2, 0.7.1.beta3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants