[#111472] [Ruby master Bug#19274] Error installing ruby 3.2.0 on RH 8 — "aalllop (Alberto Allegue) via ruby-core" <ruby-core@...>
Issue #19274 has been reported by aalllop (Alberto Allegue).
5 messages
2022/12/28
[#111508] Data support for versions before 3.2.0 — Eustáquio Rangel via ruby-core <ruby-core@...>
I was wondering that every piece of code (gems, etc) that use the new Data =
3 messages
2022/12/29
[ruby-core:111116] [Ruby master Bug#19164] [3.2.0dev] Freezing an object can prevent removing methods on its class
From:
"byroot (Jean Boussier)" <noreply@...>
Date:
2022-12-01 08:09:04 UTC
List:
ruby-core #111116
Issue #19164 has been reported by byroot (Jean Boussier).
----------------------------------------
Bug #19164: [3.2.0dev] Freezing an object can prevent removing methods on its class
https://bugs.ruby-lang.org/issues/19164
* Author: byroot (Jean Boussier)
* Status: Open
* Priority: Normal
* Target version: 3.2
* ruby -v: ruby 3.2.0dev (2022-11-30T08:20:38Z master c8bfbbc25e) [arm64-darwin22]
* Backport: 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONTNEED
----------------------------------------
The following snippet showcase the bug. It passes on 3.1 and older, but fails on 3.2.0
```ruby
klass = Class.new
klass.prepend(Module.new)
klass.new.freeze
klass.class_eval do
define_method(:bar) {} # works
remove_method(:bar) # raise FrozenError
end
```
Bisecting with this script points me to [e7b1ff984fde859a7778dec564731eb79392406f](https://github.com/ruby/ruby/commit/e7b1ff984fde859a7778dec564731eb79392406f), which suggest some part of the codebase might be misusing some user flags.
I have a patch that fix this script but I doubt it's the right fix, I'll be working with @jemmai and @tenderlovemaking to find a proper fix.
I'm opening this ticket to make sure it's addressed before the 3.2.0 final release.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- [email protected]
To unsubscribe send an email to [email protected]
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/