General

Profile

Fryguy (Jason Frey)

  • Login: Fryguy
  • Email: fryguy9@gmail.com
  • Registered on: 04/15/2010
  • Last sign in: 03/08/2024

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

10/05/2025

06:13 AM Ruby Revision 80a18e8f (git): [ruby/pp] Support new instance_variables_to_inspect method from Ruby core
This supports the new `instance_variables_to_inspect` method from Ruby
core that was added in ruby/ruby#13555.
If `instance_variables_to_inspect` is defined, then
`pretty_print_instance_variables` will use it.
Additionally, this commit...
Fryguy (Jason Frey)

09/13/2021

05:01 PM Ruby Bug #18164: Segfault after spawn when using modified ENV
Speculation ahead, but I'm at the point where I don't understand the Ruby C code anymore...but I think what's happening is, roughly:
https://github.com/ruby/ruby/blob/ebad1e829316de48f212cd57f88639fa5ac55ee4/process.c#L2980-L2984
```ru...
Fryguy (Jason Frey)
04:55 PM Ruby Bug #18164: Segfault after spawn when using modified ENV
This seems to not segfault
```
ENV = {}
spawn({}, "true", :unsetenv_others => true)
ENV.replace({})
```
which leads me to believe that these lines are in play: https://github.com/ruby/ruby/blob/ebad1e829316de48f212cd57f88639fa5...
Fryguy (Jason Frey)
04:08 PM Ruby Bug #18164 (Closed): Segfault after spawn when using modified ENV
The attached segfault.rb causes a segfault on Ruby 3.0.2 (also on 2.7.2+). This is the smallest reproducer we could get.
```ruby
ENV = {}
spawn({}, "true")
ENV.replace({})
```
You can also change the last line to `ENV.to_s` an...
Fryguy (Jason Frey)

Also available in: Atom