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
While stepping through active_record code using the Chrome devtools debugger, the debugger seems to have accessed a property index which is nil, causing the debugger to crash.
The debugger does not crash if not using Chrome devtools. (Unsurprising, since the nil value appears to be in the server/threading code.)
To Reproduce
Other than trying to step through the code, I am unsure how to reproduce it.
I stepped through many times, and it always crashed at the same place, inside i18nfallback.rb code.
require"bundler/inline"gemfiledosource"https://rubygems.org"ruby"3.1.2",patchlevel: "20"gem"debug","1.6.3"gem"sqlite3","1.5.3"gem"activerecord","7.0.4"endrequire"active_record"ActiveRecord::Base.establish_connection(adapter: "sqlite3",database: "data")classPerson < ActiveRecord::Base;end# Debugger will crash on fallbacks.rb:20, so set a break point on line 19 to make re-pro easier.# In the Chrome devtools, no breakpoints are shown, but the break point is in fact set.# Use the "Resume script execution" button, or `F8`, to stop at the break point, then step-in once more to crash at i18n fallback.rb:20debugger# break vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/backend/fallbacks.rb:19# open chromePerson.first
Your environment
ruby -v
:ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin20]
rdbg -v
:rdbg 1.6.3
Describe the bug
While stepping through active_record code using the Chrome devtools debugger, the debugger seems to have accessed a property index which is nil, causing the debugger to crash.
The debugger does not crash if not using Chrome devtools. (Unsurprising, since the nil value appears to be in the server/threading code.)
To Reproduce
Other than trying to step through the code, I am unsure how to reproduce it.
I stepped through many times, and it always crashed at the same place, inside
i18n
fallback.rb
code.Expected behavior
Continue stepping without crashing.
Additional context
Backtrace:
The text was updated successfully, but these errors were encountered: