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
Fiber.new causes SEGV when using Ruby 3.3.0 on Rails 7.1.2 in M1 Mac Docker environment #1020
Comments
I'm seeing the same issue, and can add a bit of extra detail: All that needs to happen to trigger the exception is I.E. if I use |
See also: https://bugs.ruby-lang.org/issues/20085 |
Thank you for the info! I should close the issue when the issue you specified is resolved ❤️ |
Segfaults are CRuby bugs (https://bugs.ruby-lang.org/issues/20085), not a concurrent-ruby issue, so I close this. |
Thnx! I should've closed this issue by myself 🙏 |
Ruby 3.3.0 produces segfaults in Docker on Macs in concurrent-ruby: ruby-concurrency/concurrent-ruby#1020 https://bugs.ruby-lang.org/issues/20085 concurrent-ruby is a transient dependency of feedback.
Ruby 3.3.0 produces segfaults in Docker on Macs in concurrent-ruby: ruby-concurrency/concurrent-ruby#1020 https://bugs.ruby-lang.org/issues/20085 concurrent-ruby is a transient dependency of feedback.
Ruby 3.3.0 produces segfaults in Docker on Macs in concurrent-ruby: ruby-concurrency/concurrent-ruby#1020 https://bugs.ruby-lang.org/issues/20085 concurrent-ruby is a transient dependency of feedback.
Ruby 3.3.0 produces segfaults in Docker on Macs in concurrent-ruby: ruby-concurrency/concurrent-ruby#1020 https://bugs.ruby-lang.org/issues/20085 concurrent-ruby is a transient dependency of feedback.
Ruby 3.3.0 produces segfaults in Docker on Macs in concurrent-ruby: ruby-concurrency/concurrent-ruby#1020 https://bugs.ruby-lang.org/issues/20085 concurrent-ruby is a transient dependency of feedback.
I encountered a SEGV when running Rails with Ruby 3.3.0 in Docker environment.
Note that Ruby 3.3.0 works fine with Rails 7.1.2 on non-Docker environments.
I hope some of you'd check this 🙏
Error
Error (click to expand)
As far as I investigated with rdbg, the SEGV emits at
Fiber.new { mutex.owned? }.resume
in lock_local_var.rb:concurrent-ruby/lib/concurrent-ruby/concurrent/atomic/lock_local_var.rb
Line 14 in 92b861c
Seems like the mutex has been missed.
How to reproduce
I prepared a repository for reproducing the issue: https://github.com/hachi8833/rails712_ruby33
dip
tool viagem install dip
dip build
dip bundle install
dip rails about
(or any other rails commands), which emits the SEGVAdditional info
I created the repo first with Ruby 3.2.2, and then upgraded to Ruby 3.3.0 because it is impossible to run even
rails new
in that Ruby 3.3.0 + Rails 7.2.1 + Docker.The Dockerfile I'm using is not the one that generated by Rails for production env, but for development.
ref: Ruby on Whales: Dockerizing Ruby and Rails development—Martian Chronicles, Evil Martians’ team blog
I'm unsure if the issue affects other PC environments such as Windows or Linux.
The text was updated successfully, but these errors were encountered: