You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
reline/line_editor.rb:367:in `==': stack level too deep (SystemStackError) #667
We have a Rails app and some specs that we run via Guard. Sometimes when we cancel the tests while it's running, an infinite number of prompts appear and end with:
/usr/local/bundle/gems/reline-0.5.0/lib/reline/line_editor.rb:367:in `==': stack level too deep (SystemStackError)
from /usr/local/bundle/gems/reline-0.5.0/lib/reline/line_editor.rb:367:in `block in render_line_differential'
from /usr/local/bundle/gems/reline-0.5.0/lib/reline/line_editor.rb:367:in `each'
from /usr/local/bundle/gems/reline-0.5.0/lib/reline/line_editor.rb:367:in `each'
from /usr/local/bundle/gems/reline-0.5.0/lib/reline/line_editor.rb:367:in `each'
from /usr/local/bundle/gems/reline-0.5.0/lib/reline/line_editor.rb:367:in `render_line_differential'
from /usr/local/bundle/gems/reline-0.5.0/lib/reline/line_editor.rb:499:in `block in render_differential'
from <internal:numeric>:237:in `times'
from /usr/local/bundle/gems/reline-0.5.0/lib/reline/line_editor.rb:488:in `render_differential'
... 11892 levels...
from /usr/local/bundle/gems/thor-1.3.1/lib/thor/base.rb:584:in `start'
from /usr/local/bundle/gems/guard-2.18.1/lib/guard/aruba_adapter.rb:32:in `execute'
from /usr/local/bundle/gems/guard-2.18.1/lib/guard/aruba_adapter.rb:19:in `execute!'
from /usr/local/bundle/gems/guard-2.18.1/bin/_guard-core:11:in `<main>'
make: *** [guard] Error 1
This is all ran via Docker containers.
Terminal Emulator
I personally use Emacs with TERM=dumb but I can reproduce in the standard mac OS Terminal app.
Activity
tompng commentedon Mar 26, 2024
Looks like a bug with multithread and
Signal.trapthat exist from at least v0.1.0Short reproducing code
freesteph commentedon Mar 27, 2024
Using
gem "reline", github: "tompng/reline", branch: "threadsafe"effectively solves the problem for me 🎉freesteph commentedon Mar 28, 2024
Actually, scratch that I still get some infinite
guard >prompt sometimes and have to kill the process.tompng commentedon Mar 28, 2024
I think this is bug is a combination of multithread(#669) and cleanup(#668). This problem won't be fixed until both is merged.
ima1zumi commentedon Apr 4, 2024
Closed by #668Sorry, #669 was still there.
tompng commentedon Apr 5, 2024
#668 and #669 are both merged. #646 which fixes another related problem is also merged.