caplanmaor (Maor Caplan)
- Login: caplanmaor
- Registered on: 11/23/2026
- Last sign in: 11/23/2026
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
11/23/2026
-
11:24 PM Ruby Bug #22631 (Closed): Set#map! / Set#collect! segfaults under GC.stress on 4.0.x
- Applied in changeset commit:git|4ecd94d4b09a3f776b73db2c73db39cd890da7df.
----------
[Bug #22631] Fix use-after-free in Set#collect! and Set#flatten!
Set#collect! builds a temporary set and copies it back into the
receiver with set_i_i... -
08:03 PM Ruby Bug #22631 (Closed): Set#map! / Set#collect! segfaults under GC.stress on 4.0.x
- `Set#collect!`/`map!` on an empty set segfaults when a GC runs during the call.
## Reproduction
```ruby
GC.stress = true
1000.times do
Set.new.map! { |x| x }
end
```
Segfaults on the first iteration, every run, on the o... -
11:24 PM Ruby Revision 4ecd94d4 (git): [Bug #22631] Fix use-after-free in Set#collect! and Set#flatten!
- Set#collect! builds a temporary set and copies it back into the
receiver with set_i_initialize_copy. After the last use of `other`
as a VALUE, only a pointer to its embedded table is left, so the
compiler is free to drop the reference. ...