summaryrefslogtreecommitdiff
path: root/test/ruby/test_basicinstructions.rb
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2026-02-07 08:44:08 -0800
committerJohn Hawthorn <john@hawthorn.email>2026-02-07 22:15:37 -0800
commit3e02e99e425ee1c2e4a7cee625eaea6ed1faf1c4 (patch)
treea2e085f39e494a5f97ac98821d228faae86300a8 /test/ruby/test_basicinstructions.rb
parentbdb3b8640644aa11772e9f76307e4d35b1500f39 (diff)
Fix signal crash during keyword argument call
64f508ade8 changed rb_threadptr_raise to call rb_exception_setup, which uses rb_scan_args with RB_SCAN_ARGS_PASS_CALLED_KEYWORDS. This checked rb_keyword_given_p(), which read the interrupted frame's keyword state rather than the signal raise arguments, causing a crash when a signal arrived during a keyword call. Revert rb_threadptr_raise to use rb_make_exception directly, and have thread_raise_m call rb_exception_setup where rb_keyword_given_p() reflects the correct frame. [Bug #21865]
Diffstat (limited to 'test/ruby/test_basicinstructions.rb')
0 files changed, 0 insertions, 0 deletions