Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Segmentation fault on 0.4.4295 #24

Closed
moskvin opened this issue Jun 23, 2019 · 3 comments
Closed

Segmentation fault on 0.4.4295 #24

moskvin opened this issue Jun 23, 2019 · 3 comments

Comments

@moskvin
Copy link

moskvin commented Jun 23, 2019

cat Gemfile
...
group :development do
  gem 'sorbet'
  gem 'sorbet-runtime'
  gem 'sorbet-rails'
end
...
bundle install
bundle exec srb rbi sorbet-typed
rake rails_rbi:routes
rake rails_rbi:models

but when I tried

bundle exec srb tc --suggest-typed --typed=strict --error-white-list=7022 --autocorrect

I got following error

vendor/bundler/ruby/2.6.0/gems/sorbet-0.4.4295/bin/srb: line 43: 83774 Segmentation fault: 11  "${sorbet[0]}" "${args[@]}"

Can you help me to figure out it?

OS: macOS Mojave 10.14.5 (18F132)

@hdoan741
Copy link
Contributor

It looks like the segfault is happening on srb itself. I think this will be a good question on StackOverflow, but I'll try to help you debug it:

  1. Did you run srb init successfully?
  2. Does bundle exec srb tc work before you run the rails_rbi rake tasks?
  3. Does bundle exec srb tc work after you run each of the rake task?

On #sorbet-ruby slack channel, there have been a few reports of srb crashing or not working properly with gems. I think this maybe a similar situation.

@moskvin
Copy link
Author

moskvin commented Jun 24, 2019

Thank you @manhhung741. Seems all your questions give me answer that the problem in the srb gem, I will create new ticket to the project instead.

@moskvin moskvin closed this as completed Jun 24, 2019
@hdoan741
Copy link
Contributor

You are welcome @moskvin!

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

No branches or pull requests

2 participants