dak2 (Daichi Kamiyama)
- Login: dak2
- Registered on: 03/04/2026
- Last sign in: 04/23/2026
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
Today
-
12:21 AM Ruby Bug #21991 (Closed): `$!` stays as the first exception in Ruby Box
- Applied in changeset commit:git|d4727cd4e63c7bc1bc95a96b7f3c6de568bc5b6e.
----------
Ruby::Box fix stale cached values for exception-related global variables ($! and $@)
Ruby::Box fix stale cached values for exception-related global va... -
12:21 AM Ruby Revision d4727cd4 (git): Ruby::Box fix stale cached values for exception-related global variables ($! and $@)
- Ruby::Box fix stale cached values for exception-related global variables ($! and $@)
The exception-related virtual variables $! (current exception) and
$@ (its backtrace) are stored on the execution context (ec->errinfo
and the rescue/e...
05/05/2026
-
11:20 AM Ruby Bug #21991: `$!` stays as the first exception in Ruby Box
- I created a patch for this issue.
https://github.com/ruby/ruby/pull/16863
@tagomoris Could you review this?
05/01/2026
-
03:10 AM Ruby Bug #21940 (Closed): Ruby::Box: `$_` returns stale value due to gvar_tbl caching
- Applied in changeset commit:git|f89b07ef0046257dd796a2e615cc063072114f16.
----------
Mark `$_` as box-dynamic to bypass Box gvar_tbl cache
`$_` is updated through svar (rb_lastline_set), bypassing
rb_gvar_set, so the Box gvar_tbl cache... -
03:10 AM Ruby Revision f89b07ef (git): Mark `$_` as box-dynamic to bypass Box gvar_tbl cache
- `$_` is updated through svar (rb_lastline_set), bypassing
rb_gvar_set, so the Box gvar_tbl cache is never invalidated
and returns a stale value. Call rb_gvar_box_dynamic so
gvar_use_box_tbl() skips the cache.
Fixes [Bug #21940](https://...
03/16/2026
-
01:37 PM Ruby Bug #21940: Ruby::Box: `$_` returns stale value due to gvar_tbl caching
- At last week's Asakusa.rb, I realized that `$~` was facing a similar issue. I've also made the necessary fixes in the PR mentioned above.
https://github.com/ruby/ruby/pull/16303#issuecomment-4067703448
03/04/2026
-
03:36 PM Ruby Bug #21940: Ruby::Box: `$_` returns stale value due to gvar_tbl caching
- Patch: https://github.com/ruby/ruby/pull/16303
-
03:25 PM Ruby Bug #21940 (Closed): Ruby::Box: `$_` returns stale value due to gvar_tbl caching
## Environment
- Ruby Version v4.0.1
- OS: macOS 15.6.1 (arm64)
- `RUBY_BOX=1` enabled
## Reproduction
```shell
echo -e "a\nb" | RUBY_BOX=1 ruby -e 'gets; $_; gets; p $_'
```
## Expected
```
"b\n"
```
The secon...