Skip to content

Process hangs on spring #731

Description

@alexevanczuk

We're seemingly randomly getting process hangs when running things that boot the rails environment. It is easily resolved by just killing the process with ctrl+c and then starting it again... sometimes I need to spring stop?

I used rbspy to take a snapshot of the process while it's hanging and got this:

$ sudo rbspy snapshot  --pid 15173
<main> - /Users/alexevanczuk/workspace/monorail/bin/rubocop:6
load [c function] - (unknown)
<top (required)> - /Users/alexevanczuk/workspace/monorail/bin/spring:10
tap - unknown:92
block in <top (required)> - /Users/alexevanczuk/workspace/monorail/bin/spring:14
require - unknown:146
require [c function] - (unknown)
<top (required)> - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/binstub.rb:11
load [c function] - (unknown)
<top (required)> - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/bin/spring:49
run - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/client.rb:36
call - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/client/command.rb:8
call - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/client/run.rb:37
warm_run - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/client/run.rb:51
run - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/client/run.rb:69
run_command - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/client/run.rb:198
gets [c function] - (unknown)

We're using ruby 3.3.5 and rails 7.2.2

Any tips on what's going on here?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions