Project

General

Profile

Activity

From 02/28/2024 to 03/05/2024

03/05/2024

09:19 PM Revision 23dc7aa2 (git): .travis.yml: Allow failures for arm64 and arm32 cases temporarily.
It's to avoid the failures by the infra issues in the term of the following
maintenance.
There is a planned maintena...
Jun Aruga
08:53 PM Misc #20013: Travis CI status
jaruga (Jun Aruga) wrote in #note-28:
> I noticed the following announcement that would happen on this Wednesday, 6t...
jaruga (Jun Aruga)
08:00 PM Bug #20325: Enumerator.product.size bug with zero * infinite enumerators
I don't think this is a bug, the documentation and tests say the current behavior is intentional:
> "Returns the ...
eileencodes (Eileen Uchitelle)
03:21 PM Bug #20325 (Closed): Enumerator.product.size bug with zero * infinite enumerators
``` ruby
Enumerator.product([], 1..).to_a # => [] (OK)
Enumerator.product([], 1..).size # => Infinity (Should be 0)...
marcandre (Marc-Andre Lafortune)
04:07 PM Revision 8f6113a9 (git): [ruby/irb] Add the ability to fetch and load multiple irb files.
(https://github.com/ruby/irb/pull/859)
This allows hierarchy when loading rc files for example both files below
are ...
hahmed (Haroon Ahmed)
09:50 AM Revision 226a889d (git): [DOC] fix some comments
Signed-off-by: cui fliter <[email protected]> cui fliter
08:03 AM Revision 8e27c01f (git): Reapply "mkmf.rb: Define missing `POSTLINK` variable in generated Makefile"
This reverts commit 0ae0a0c1c3bb01d118c5a924d731a2b3e9774105. hsbt (Hiroshi SHIBATA)
07:13 AM Revision b582e5a6 (git): [rubygems/rubygems] Clear generated files recursively
On macOS, `dsymutil` utility splits debug info into .dSYM directory.
Glob list of `.bundle/cache/extensions/**/*binar...
nobu (Nobuyoshi Nakada)
06:53 AM Revision e1026000 (git): [rubygems/rubygems] Use `IO.popen` to list files
- Redirect stderr `git ls-files` to null without shelling out.
- When building by `gem`, `__FILE__` is the path name...
nobu (Nobuyoshi Nakada)
03:08 AM Revision 0ae0a0c1 (git): Revert "mkmf.rb: Define missing `POSTLINK` variable in generated Makefile"
This reverts commit 71d511615b8dac459d6f88f5896b9859f99c999e. hsbt (Hiroshi SHIBATA)
03:08 AM Revision 899ce129 (git): Run test-bundler-parallel again
hsbt (Hiroshi SHIBATA)

03/04/2024

11:59 PM Revision 5e5bf57b (git): [rubygems/rubygems] Bump rb-sys
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.89 to 0.9.90.
- [Release notes](https://github.com/oxid...
dependabot[bot]
08:24 PM Revision 50e9a6b7 (git): [ruby/prism] Provide API for visiting in C
https://github.com/ruby/prism/commit/537947aa5c kddnewton (Kevin Newton)
08:06 PM Revision 20123008 (git): [ruby/prism] Drop support for old ERB
https://github.com/ruby/prism/commit/acdff3aae3 nobu (Nobuyoshi Nakada)
06:39 PM Misc #20281: DevMeeting-2024-03-14
* [Bug #20301] `Set#add?` does two hash look-ups (jeremyevans0)
* This doesn't seem like a bug to me, as there was...
jeremyevans0 (Jeremy Evans)
06:09 PM Revision e78a705f (git): [ruby/prism] Warnings for tokens at EOL
https://github.com/ruby/prism/commit/d0dbf01bef kddnewton (Kevin Newton)
05:50 PM Bug #19975 (Closed): ISeq#to_binary loses hidden local variable indices
Applied in changeset commit:git|5899f6aa55a02f211545d9cdaef4d86fa0b49528.
----------
Keep hidden local variables whe...
jeremyevans (Jeremy Evans)
05:49 PM Revision 5899f6aa (git): Keep hidden local variables when dumping and loading iseqs
Fixes [Bug #19975] jeremyevans (Jeremy Evans)
05:46 PM Bug #20319: Singleton class is being frozen lazily in some cases
Eregon (Benoit Daloze) wrote in #note-3:
> I think Kernel#freeze should only freeze the object itself, which means i...
jeremyevans0 (Jeremy Evans)
05:38 PM Bug #20314: Simultaneous Timeout expires may raise an exception after the block
Solution 2 makes the most sense to me. If inside a `Timeout.timeout` block, you are swallowing the exception that yo... jeremyevans0 (Jeremy Evans)
05:18 PM Bug #20226 (Closed): Inconsistent Sort results on 3.3.0 compared to previous versions
jeremyevans0 (Jeremy Evans)
04:49 PM Revision f7adee34 (git): [ruby/prism] Only define xallocator when not defined
https://github.com/ruby/prism/commit/919d682379 kddnewton (Kevin Newton)
04:41 PM Revision 6ad0f89d (git): [ruby/prism] Use a more efficient StringIO on TruffleRuby
* The stdlib StringIO is synchronized and this occurs a high overhead.
* This is about twice as fast on TruffleRuby b...
Eregon (Benoit Daloze)
04:40 PM Revision 03a73fdc (git): [ruby/prism] Add then keyword loc to when nodes
https://github.com/ruby/prism/commit/e1e613df16 kddnewton (Kevin Newton)
04:40 PM Revision c0a34a6c (git): [ruby/prism] Document xallocator functions
https://github.com/ruby/prism/commit/ee1a4acacd kddnewton (Kevin Newton)
04:40 PM Revision b95e2cdc (git): [ruby/prism] Additional fix of adding `x` prefix after rebase with main branch
https://github.com/ruby/prism/commit/08733438bd hasumikin (hitoshi hasumi)
04:40 PM Revision 54f27549 (git): [ruby/prism] Chage some names
- PRISM_CUSTOM_ALLOCATOR -> PRISM_XALLOCATOR
- prism_custom_allocator.h -> prism_xallocator.h
https://github.com/rub...
hasumikin (hitoshi hasumi)
04:40 PM Revision c4bd6da2 (git): [ruby/prism] Make alloc interface replaceable
- Add `x` prefix to malloc, calloc, realloc, and free
(eg: malloc -> xmalloc)
- By default, they are replaced with ...
hasumikin (hitoshi hasumi)
04:35 PM Revision 61ea202f (git): [DOC] Fix invalid documentation for `reachable_objects_from` (#10172)
Previous documentation is stating the opposite (that the method won't
work for CRuby).
Lazarus Lazaridis
04:26 PM Revision 85fe8b6b (git): [ruby/prism] Update lib/prism/translation/parser/compiler.rb
https://github.com/ruby/prism/commit/dccfd83bc4 kddnewton (Kevin Newton)
04:26 PM Revision a03f9292 (git): [ruby/prism] Fix incompatibility AST for regexp match in `Prism::Translation::Parser`
This PR fixes the following incompatibility AST for regexp match between Parser gem and Prism:
## Parser gem
Return...
koic (Koichi ITO)
04:26 PM Revision 26507b92 (git): [ruby/prism] Include BSDmakefile
https://github.com/ruby/prism/commit/1fe507fe3d kddnewton (Kevin Newton)
03:36 PM Bug #20323 (Closed): Segmentation Fault in while working in Ruby 2.6.3
This is not a segmentation fault (SIGSEGV), it's an illegal instruction crash (SIGILL). Considering it occurs in `/us... jeremyevans0 (Jeremy Evans)
06:25 AM Bug #20323 (Closed): Segmentation Fault in while working in Ruby 2.6.3
I am using Ruby 2.6.3 in my project. Suddenly my application raises segmentation fault issue, I have tried the soluti... Anonymous
03:20 PM Feature #20317: Removing the `allocate` method should cause `new` to fail
May I ask what is the use case for this?
The only reason I can think to undefine `allocate` is if you want to allow ...
Dan0042 (Daniel DeLorme)
02:50 PM Misc #20232: Document Kernel#require and Module#autoload concurrency guarantees
Followup.
We've exchanged impressions with @ioquatix.
Regarding the first example, it would be nice that Ruby detec...
fxn (Xavier Noria)
02:39 PM Revision 5856ea3f (git): [ruby/prism] Fix up some minor parser incompatibilities
https://github.com/ruby/prism/commit/c6c771d1fa kddnewton (Kevin Newton)
02:25 PM Revision 2c787bf9 (git): Run POSTLINK for rubyspec CAPIEXT objects
nobu (Nobuyoshi Nakada)
01:14 PM Bug #20324 (Closed): `(1..).overlap?('foo'..)` returns true
Applied in changeset commit:git|b176315827d1082f43628013a7d89fda02724d33.
----------
[Bug #20324] Uncomparable range...
nobu (Nobuyoshi Nakada)
07:18 AM Bug #20324 (Closed): `(1..).overlap?('foo'..)` returns true
While thinking about finding the intersection of two ranges, I found that `(1..).overlap?('foo'..)` returns true.
...
kyanagi (Kouhei Yanagita)
12:28 PM Misc #20013: Travis CI status
I noticed the following announcement that would happen on this Wednesday, 6th March. So, I will plan to add the allow... jaruga (Jun Aruga)
12:23 PM Misc #20013: Travis CI status
jaruga (Jun Aruga) wrote in #note-21:
> jaruga (Jun Aruga) wrote in #note-19:
> > We are seeing one of s390x build[...
jaruga (Jun Aruga)
12:02 PM Revision b1763158 (git): [Bug #20324] Uncomparable ranges are not overlapping
nobu (Nobuyoshi Nakada)
06:36 AM Revision ef5af327 (git): [rubygems/rubygems] Clear `RUBY_CODESIGN` env var while running tests
The `RUBY_CODESIGN` environment variable is used by mkmf-generated
Makefile to sign extension bundles on macOS. The v...
katei (Yuta Saito)
03:33 AM Revision 2d8788e9 (git): Support NODE_ONCE for pattern matching
S_H_ (Shun Hiraoka)
02:57 AM Revision ade02f3c (git): merge revision(s) 051a874325c177e040301878069c2b28f5d06ce6: [Backport #20096]
Fix memory overread in registry.rb
The terminator is not actually getting filled in; we're simply passing
...
naruse (Yui NARUSE)
02:07 AM Feature #20273 (Closed): Disable callcc when compiled with ASAN
Applied in changeset commit:git|5621d794a2fa9293d1da489d6b0ee0e7c73c9128.
----------
Disable callcc when ASAN is ena...
Anonymous
02:07 AM Revision 5621d794 (git): Disable callcc when ASAN is enabled
callcc's implementation is fundamentally incompatible with ASAN. Since
callcc is deprecated and almost never used, it...
KJ Tsanaktsidis

03/03/2024

04:18 PM Bug #20307: `Hash#update` from compare_by_identity hash can have unfrozen string keys
ignore me, I misunderstood the reproduction script. `h` is not compared by identity. byroot (Jean Boussier)
04:15 PM Bug #20307: `Hash#update` from compare_by_identity hash can have unfrozen string keys
I don't understand the bug report nor the patch.
If you make a frozen copy of the provided key, you change the key...
byroot (Jean Boussier)
03:17 PM Bug #20307: `Hash#update` from compare_by_identity hash can have unfrozen string keys
After the code above, we can do
```ruby
h.rehash
p h #=> {"A"=>1}
```
When a key is clobbered like that due to a...
Dan0042 (Daniel DeLorme)
03:57 PM Revision 0d9a681e (git): enc: Expand substitution variables in Makefile.in by default
This change makes `make_encmake.rb` expand all substitution variables
when replacing them in `enc/Makefile.in` to avo...
katei (Yuta Saito)
03:57 PM Revision 072761bb (git): enc: Define missing `POSTLINK` variable in enc.mk
This is a follow up change to 71d511615b8dac459d6f88f5896b9859f99c999e katei (Yuta Saito)
12:57 PM Bug #20321: `require': cannot load such file
nobu (Nobuyoshi Nakada) wrote in #note-1:
> What did you try to do at that time?
> And could you show more error lo...
Justman10000 (Justin Nogossek)
12:15 AM Bug #20321 (Feedback): `require': cannot load such file
What did you try to do at that time?
And could you show more error logs around the line?
nobu (Nobuyoshi Nakada)
10:43 AM Bug #20322 (Closed): rb_enc_interned_str_cstr doesn't accept null pointer for encoding
Applied in changeset commit:git|7e4b1f8e1935a10df3c41ee60ca0987d73281126.
----------
[Bug #20322] Fix rb_enc_interne...
thomasmarshall (Thomas Marshall)
10:43 AM Revision 7e4b1f8e (git): [Bug #20322] Fix rb_enc_interned_str_cstr null encoding
The documentation for `rb_enc_interned_str_cstr` notes that `enc` can be
a null pointer, but this currently causes a ...
thomasmarshall (Thomas Marshall)
05:16 AM Feature #20318: Pattern matching `case ... in` support for triple-dot arguments
A patch for @ko1 style.
~~Probably the code generation would be more efficient in compile.c.~~
https://github.com/n...
nobu (Nobuyoshi Nakada)

03/02/2024

07:03 PM Bug #20322: rb_enc_interned_str_cstr doesn't accept null pointer for encoding
I opened a PR to fix this: https://github.com/ruby/ruby/pull/10169 thomasmarshall (Thomas Marshall)
06:30 PM Bug #20322: rb_enc_interned_str_cstr doesn't accept null pointer for encoding
That's a regression and should be fixed mostly for consistency with other functions that take a encoding pointer. byroot (Jean Boussier)
05:56 PM Bug #20322 (Closed): rb_enc_interned_str_cstr doesn't accept null pointer for encoding
The [header documentation](https://github.com/ruby/ruby/blob/93556d46203545bc2364b1c0dd1281ba098f3cc9/include/ruby/in... thomasmarshall (Thomas Marshall)
04:40 PM Revision 93556d46 (git): [ruby/etc] Drop support for old ERB
https://github.com/ruby/etc/commit/11677318ac nobu (Nobuyoshi Nakada)
03:55 PM Revision e9a7801a (git): Drop support for old ERB
nobu (Nobuyoshi Nakada)
08:07 AM Revision 71d51161 (git): mkmf.rb: Define missing `POSTLINK` variable in generated Makefile
The `POSTLINK` variable had been used in the `LINK_SO` variable, which
is used to link shared extension libraries. Ho...
katei (Yuta Saito)
08:07 AM Revision b000e7bb (git): configure.ac: Append `POSTLINK` to `LINK_SO` for all platforms
The `POSTLINK` variable had been used only for darwin platforms, but
it's now used for WebAssembly/WASI as well. To m...
katei (Yuta Saito)
05:37 AM Revision 5a4cd732 (git): Make `File#chown` unblocking
nobu (Nobuyoshi Nakada)
05:37 AM Revision 061c6840 (git): Make `File#chmod` unblocking
nobu (Nobuyoshi Nakada)

03/01/2024

11:30 PM Bug #20321 (Feedback): `require': cannot load such file
Hi, have this, when i would compile Ruby:
> internal:<RUBY_PATH>/lib/rubygems/core_ext/kernel_require.rb:9:in `req...
Justman10000 (Justin Nogossek)
11:10 PM Revision 607b86ed (git): Update a stubbed type for RJIT
cfunc.func is actually used by RJIT k0kubun (Takashi Kokubun)
11:07 PM Revision 317163c7 (git): Update bindgen for YJIT and RJIT
k0kubun (Takashi Kokubun)
11:02 PM Revision 61fbd29e (git): Skip a redundant check for the rb_obj_hash case
Also, refactor the cfunc struct to use a new rb_cfunc_t. k0kubun (Takashi Kokubun)
08:50 PM Feature #20317: Removing the `allocate` method should cause `new` to fail
jeremyevans0 (Jeremy Evans) wrote in #note-1:
> The current behavior may be what you want if you want to ensure that...
tenderlovemaking (Aaron Patterson)
12:35 AM Feature #20317: Removing the `allocate` method should cause `new` to fail
The current behavior may be what you want if you want to ensure that new instances of the class have `#initialize` ca... jeremyevans0 (Jeremy Evans)
12:18 AM Feature #20317 (Open): Removing the `allocate` method should cause `new` to fail
When you remove the `allocate` method from a class the you can't allocate the class via the `allocate` method. Howeve... tenderlovemaking (Aaron Patterson)
08:41 PM Revision 5a3ae06a (git): Remove dead function rb_obj_rgengc_writebarrier_protected_p
peterzhu2118 (Peter Zhu)
08:36 PM Revision 99384bac (git): Correctly set anon_kwrest flag for def f(b: 1, **)
In cases where a method accepts both keywords and an anonymous
keyword splat, the method was not marked as taking an ...
jeremyevans (Jeremy Evans)
07:57 PM Revision 6da8f04e (git): [ruby/irb] Escape closing square brackets in regexp
Fixes the following warning:
test/irb/test_command.rb:546: warning: regular expression has ']' without escape
h...
peterzhu2118 (Peter Zhu)
07:16 PM Revision 70de3b17 (git): Optimize Hash methods with Kernel#hash (#10160)
k0kubun (Takashi Kokubun)
06:38 PM Revision 6f31dd49 (git): Don't check_rvalue_consistency in is_markable_object
is_markable_object is called by rb_objspace_markable_object_p, which
may pass a T_NONE object. check_rvalue_consisten...
peterzhu2118 (Peter Zhu)
06:03 PM Revision 661f9e6d (git): YJIT: Support opt_invokebuiltin_delegate for leaf builtin (#10152)
k0kubun (Takashi Kokubun)
05:54 PM Revision 88050ec1 (git): YJIT: No need to set cfp->sp when setting escaped locals
While writing to the env object can add it to the remember set,
it shouldn't trigger a GC run.
alanwu (Alan Wu)
04:26 PM Misc #20320 (Open): Using OSU Open Source Lab native ppc64le/s390x CI services trigged on pull-requests
We have been using Travis CI to run unit tests the native arm64/ppc64le/s390x in the ruby/ruby, ruby/zlib and ruby/pr... jaruga (Jun Aruga)
03:54 PM Misc #20013: Travis CI status
I found the following information on https://www.traviscistatus.com/ . Travis CI is undergoing a maintenance in a wee... jaruga (Jun Aruga)
12:33 PM Misc #20013: Travis CI status
We have observed unstable Travis ppc64le/s390x pipelines. So, I added the allow_failures to the pipelines by the PR <... jaruga (Jun Aruga)
12:18 PM Misc #20013: Travis CI status
Eregon (Benoit Daloze) wrote in #note-22:
> FYI mspec has a `--timeout SECONDS` option, which should help identify w...
jaruga (Jun Aruga)
03:51 PM Revision 57ca5960 (git): [ruby/irb] Restructure workspace management
(https://github.com/ruby/irb/pull/888)
* Remove dead irb_level method
* Restructure workspace management
Currently...
st0012 (Stan Lo)
03:39 PM Revision 162e13c8 (git): Remove pointer check in vm_ccs_free
We don't need to check that the object is pointer to the GC heap in
vm_ccs_free because it is called during sweeping,...
peterzhu2118 (Peter Zhu)
03:33 PM Revision f3af5ae7 (git): Make Struct memory leak test faster
[Bug #20311]
It times out on some platform, so we can reduce iterations.
On my machine it completes in 250ms and RSS...
byroot (Jean Boussier)
03:10 PM Revision 334e4c65 (git): Fix a couple issues noticed by nobu
Co-authored-by: Nobuyoshi Nakada <[email protected]> jeremyevans (Jeremy Evans)
03:10 PM Revision f446d68b (git): Add benchmarks for super and zsuper calls of different types
These show gains from the recent optimization commits:
```
arg_splat
miniruby: ...
jeremyevans (Jeremy Evans)
03:10 PM Revision 73371450 (git): Avoid 1-2 array allocations for zsuper calls with post arguments
These previously resulted in 2 array allocations, one for newarray
and one for concatarray. This replaces newarray a...
jeremyevans (Jeremy Evans)
03:10 PM Revision 32c58753 (git): Fix splatarray false peephole optimization for f(*ary, **kw, &block)
This optimization stopped being using when the splatkw VM instruction
was added. This change allows the optimization...
jeremyevans (Jeremy Evans)
03:10 PM Revision e484ffaf (git): Perform splatarray false peephole optimization for invokesuper in addition to send
This optimizes cases such as:
super(arg, *ary)
super(arg, *ary, &block)
super(*ary, **kw)
super(*ary, kw: 1)...
jeremyevans (Jeremy Evans)
12:43 PM Feature #15554: warn/error passing a block to a method which never use a block
One concern if it's verbose-only is it won't help for typical mistakes with blocks like:
```ruby
p foo do
body
...
Eregon (Benoit Daloze)
01:16 AM Feature #15554: warn/error passing a block to a method which never use a block
This would be a verbose-only warning right? Dan0042 (Daniel DeLorme)
12:14 PM Revision 54d26221 (git): .travis.yml: Allow failures for ppc64le and s390x.
Because Travis ppc64le/s390x are unstable.
ppc64le:
* https://app.travis-ci.com/github/ruby/ruby/builds/269211469
* ...
Jun Aruga
12:04 PM Bug #20319: Singleton class is being frozen lazily in some cases
Alternatively, I think we could simplify `Kernel#freeze` to always only freeze the direct object and no other object,... Eregon (Benoit Daloze)
11:52 AM Bug #20319 (Open): Singleton class is being frozen lazily in some cases
I've noticed suspicious behaviour (it doesn't affect anything in practice for me though) when an object becomes froze... andrykonchin (Andrew Konchin)
08:20 AM Feature #20318: Pattern matching `case ... in` support for triple-dot arguments
@ko1 A pretty similar effect can be achieved by combining several recent features:
```ruby
def foo(*, **) = case [*,...
zverok (Victor Shepelev)
07:46 AM Feature #20318: Pattern matching `case ... in` support for triple-dot arguments
ko1 (Koichi Sasada) wrote in #note-3:
> I prefer
>
> ...
>
> to represent method overloading.
> (but I unders...
baweaver (Brandon Weaver)
07:34 AM Feature #20318: Pattern matching `case ... in` support for triple-dot arguments
I prefer
```ruby
def foo(...)
in [name] # foo('ko1')
puts name
in [first...
ko1 (Koichi Sasada)
05:40 AM Feature #20318: Pattern matching `case ... in` support for triple-dot arguments
Personally I find the double ... rather confusing. I understand the benefit of a more succint syntax - e. g. eliminat... rubyFeedback (robert heiler)
05:24 AM Feature #20318: Pattern matching `case ... in` support for triple-dot arguments
Add array example. bradgessler (Brad Gessler)
03:11 AM Feature #20318 (Open): Pattern matching `case ... in` support for triple-dot arguments

# Premise
Sometimes when I'm creating a method for an API, I'd like to do pattern matching against the arguments...
bradgessler (Brad Gessler)
07:24 AM Revision c09e5ad1 (git): Clarify C API documentation about pinned classes
They are not only pinned, but also immortal. Even if the
constant referencing them is removed, they will remain alive...
byroot (Jean Boussier)
07:23 AM Bug #20311 (Closed): Struct.new("A") memory leak?
Applied in changeset commit:git|e626da82eae3d437b84d4f9ead0164d436b08e1a.
----------
Don't pin named structs defined...
byroot (Jean Boussier)
07:23 AM Bug #20311: Struct.new("A") memory leak?
> Is there any chance for the same module to be added twice?
Yes, aliasing isn't uncommon.
> Seems fine, but I'...
byroot (Jean Boussier)
07:01 AM Bug #20311: Struct.new("A") memory leak?
byroot (Jean Boussier) wrote in #note-7:
> So maybe a better short term solution that is easy to backport is to just...
nobu (Nobuyoshi Nakada)
06:03 AM Bug #20311: Struct.new("A") memory leak?
byroot (Jean Boussier) wrote in #note-3:
> So if a module is added twice, you need to remove it from the set if it's...
nobu (Nobuyoshi Nakada)
07:23 AM Revision e626da82 (git): Don't pin named structs defined in Ruby
[Bug #20311]
`rb_define_class_under` assumes it's called from C and that the
reference might be held in a C global v...
byroot (Jean Boussier)
07:10 AM Revision 5d76fe6b (git): [ruby/optparse] Invoke pager for `--help`
https://github.com/ruby/optparse/commit/77dccce37c nobu (Nobuyoshi Nakada)
04:56 AM Revision 9b75e5f0 (git): Add an example for fallback to sh
nobu (Nobuyoshi Nakada)
04:11 AM Revision 5baee82c (git): [DOC] Mention about executable file and fallback to sh
nobu (Nobuyoshi Nakada)
04:11 AM Revision 1a9a20ce (git): Turn `rb_sys_fail_on_write` into a function
nobu (Nobuyoshi Nakada)
04:11 AM Revision 452d51ff (git): Use `File.open` and `File.write` instead of `Kernel#open`
nobu (Nobuyoshi Nakada)
03:33 AM Revision a465393c (git): Update bundled gems list at 874e9fc34d728f8e2444d15aa6759b [ci skip]
git[bot]
03:33 AM Revision 04a1b873 (git): Bump actions/cache from 4.0.0 to 4.0.1
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/act...
dependabot[bot]
03:32 AM Revision 874e9fc3 (git): Don't need to remove ruby2_keywords dependency from drb
hsbt (Hiroshi SHIBATA)
03:32 AM Revision 1952c799 (git): Bump up drb-2.2.1
hsbt (Hiroshi SHIBATA)
03:32 AM Revision b26602f8 (git): Bump github/codeql-action from 3.24.5 to 3.24.6
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.24.5 to 3.24.6.
- [Release notes](https:...
dependabot[bot]
03:23 AM Revision 8ec9c2dd (git): Bump actions/cache in /.github/actions/setup/directories
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/act...
dependabot[bot]
12:38 AM Bug #16297: calling undefined allocator by `Class.instance_method(:allocate)`
I'm not sure if there's a deeper problem this causes, but it is still possible after this patch to call the allocator... jhawthorn (John Hawthorn)

02/29/2024

09:42 PM Bug #20085: Fiber.new{ }.resume causes Segmentation fault for Ruby 3.3.0 on aarch64-linux
kjtsanaktsidis (KJ Tsanaktsidis) wrote in #note-30:
> That patch just modifies the `configure.ac` file, which is the...
tianon (Tianon Gravi)
09:41 PM Bug #20085: Fiber.new{ }.resume causes Segmentation fault for Ruby 3.3.0 on aarch64-linux
That patch just modifies the `configure.ac` file, which is the autoconf macros which generate the `./configure` scrip... kjtsanaktsidis (KJ Tsanaktsidis)
08:48 PM Bug #20085: Fiber.new{ }.resume causes Segmentation fault for Ruby 3.3.0 on aarch64-linux
We applied the patch from https://github.com/ruby/ruby/commit/7f97e3540ce448b501bcbee15afac5f94bb22dd9.patch?full_ind... tianon (Tianon Gravi)
08:55 PM Revision 2508a796 (git): [ruby/resolv] Implement CAA resource record
This patch implements handling of CAA resource records defined by [RFC8659].
- There are no known deployment of CAA ...
hanazuki (Kasumi Hanazuki)
07:26 PM Revision d3ae5808 (git): Remove each_machine_stack_value
The function is only used by rb_gc_mark_machine_stack. peterzhu2118 (Peter Zhu)
07:24 PM Revision d5ae7965 (git): [ruby/prism] Lazily create Location objects in Prism::Serialize::Loader#load_location
* Following the changes in #2428.
* PRISM_FFI_BACKEND=true ruby -v -Ilib -rprism -rbenchmark -e '10.times { p Benchma...
Eregon (Benoit Daloze)
07:24 PM Revision 6075f67a (git): [ruby/prism] Tweak wording for Prism::BACKEND
* TruffleRuby does support C extensions but FFI is faster there.
https://github.com/ruby/prism/commit/d211a87691
Eregon (Benoit Daloze)
06:30 PM Revision 1a588922 (git): Load iseq name later than other ISEQ references
previous_insn_index() is crashing:
https://github.com/ruby/ruby/actions/runs/8100712618/job/22139323673
https://githu...
k0kubun (Takashi Kokubun)
06:23 PM Revision 3d614779 (git): Remove unused gc_mark_stack_values
peterzhu2118 (Peter Zhu)
06:23 PM Revision 6665ec26 (git): Remove check for is_markable_object in gc_mark_stack_values
gc_mark_and_pin already checks for is_markable_object. peterzhu2118 (Peter Zhu)
06:16 PM Revision 6e2880b3 (git): [wasm-pic] Add `LDSHARED` definition for WASI platform
We are going to add dynamic linking support for WASI platform. The
`LDSHARED` definition is used to link shared libra...
katei (Yuta Saito)
06:16 PM Revision 57f014b2 (git): Use configured `LD` for linking enc and ext libraries
"AR" was well propagated to the enc.mk and mkmf, but "LD" was not. This
caused the dynamic libraries to be linked wit...
katei (Yuta Saito)
05:32 PM Revision 1c0c490a (git): [ruby/prism] Warn on integers in flip-flops
https://github.com/ruby/prism/commit/500099e896 kddnewton (Kevin Newton)
05:21 PM Bug #20316 (Open): Regexp quantifier behavior changes in different syntactic context.
In the example below, adding a vertical bar to the end of a regular expression changes what is being matched by the p... jirkamarsik (Jirka Marsik)
05:05 PM Revision f9d5c604 (git): [PRISM] Use new command line option flags
kddnewton (Kevin Newton)
05:05 PM Revision 50e999c5 (git): [ruby/prism] Command line options as a bitset
https://github.com/ruby/prism/commit/369ffbd57e kddnewton (Kevin Newton)
04:59 PM Bug #20315 (Open): Quantifier expansion leads to different results in Regexp.
Consider the following series of regular expression matches:
```
irb(main):001:0> /(|a)(|a)(|a)(|a)(|a)b/.match("aa...
jirkamarsik (Jirka Marsik)
04:29 PM Revision cd8d1018 (git): [ruby/prism] Resync RBI and test it in CI
https://github.com/ruby/prism/commit/4ef4032774 kddnewton (Kevin Newton)
04:08 PM Revision 5891c70b (git): YJIT: Support inlining putself (#10137)
k0kubun (Takashi Kokubun)
04:07 PM Revision 4c0f0b90 (git): Assume that FL_FINALIZE is in finalizer_table
If FL_FINALIZE is set but not in finalizer_table, then rb_bug. peterzhu2118 (Peter Zhu)
04:06 PM Revision f8dd2342 (git): [ruby/prism] Fix an incorrect parsing for `Prism::Translation::Parser`
This PR fixes an incorrect parsing for `Prism::Translation::Parser`
when one-line pattern mathing with Ruby 2.7 runti...
koic (Koichi ITO)
03:57 PM Revision 8a918b45 (git): Add gc_each_object for walking the heap
peterzhu2118 (Peter Zhu)
03:25 PM Bug #20312: Memory leak with BigDecimal::EXCEPTION_OVERFLOW
Oh right! Sorry, done: https://github.com/ruby/bigdecimal/issues/290 MaxLap (Maxime Lapointe)
05:18 AM Bug #20312 (Third Party's Issue): Memory leak with BigDecimal::EXCEPTION_OVERFLOW
Hi, @MaxLap . Thank you for report this.
Can you file this to https://github.com/ruby/bigdecimal/? bigdecimal is a...
hsbt (Hiroshi SHIBATA)
02:59 PM Bug #20311: Struct.new("A") memory leak?
So https://github.com/ruby/ruby/pull/10143 is turning into a huge yak-shave and will be hard to backport. The reason... byroot (Jean Boussier)
12:07 PM Bug #20311: Struct.new("A") memory leak?
I think https://github.com/ruby/ruby/pull/10143 will do. But a good followup would also be to not pin `Struct.new("A")`. byroot (Jean Boussier)
11:47 AM Bug #20311: Struct.new("A") memory leak?
> But I also wonder why we have this root in the first place, I'd think these get marked from being constants in ::Ob... byroot (Jean Boussier)
11:45 AM Bug #20311: Struct.new("A") memory leak?
> rb_const_remove needs to take care of it when the removed constant is a class or module?
The problem is that it'...
byroot (Jean Boussier)
02:53 PM Revision cb784082 (git): [ruby/prism] Better hashing between positive/negative integers
https://github.com/ruby/prism/commit/68ddf08634 kddnewton (Kevin Newton)
02:38 PM Revision 950c6062 (git): Delete from finalizer_table before running finalizer
The finalizer could trigger a GC, which would cause FL_FINALIZE to be
out of sync with the finalizer table.
peterzhu2118 (Peter Zhu)
02:37 PM Revision d5bca066 (git): Unset FL_FINALIZE before running the finalizer
The finalizer could trigger a GC, so FL_FINALIZE could get out of sync
with the finalizer table.
peterzhu2118 (Peter Zhu)
12:32 PM Revision 1a6a7c69 (git): Update RBS (#10121)
Use an unreleased version of RBS to see if the new commit fixes the `EBADF` error. soutaro (Soutaro Matsumoto)
10:59 AM Feature #15554: warn/error passing a block to a method which never use a block
> Regarding the warning message:
+1, these messages are clearer.
Anonymous
09:15 AM Feature #15554: warn/error passing a block to a method which never use a block
These results look encouraging to me.
The number of "false positives" seems reasonable.
Also they are not really fals...
Eregon (Benoit Daloze)
08:12 AM Feature #15554: warn/error passing a block to a method which never use a block
We found issues with this warning system, like: https://github.com/ruby/ruby/commit/8316cb213c ko1 (Koichi Sasada)
08:10 AM Feature #15554: warn/error passing a block to a method which never use a block
Duck typing case:
```
class C1
def foo = nil
end
class C2
def foo = yield
end
[C1.new, C2.new].ea...
ko1 (Koichi Sasada)
08:05 AM Feature #15554: warn/error passing a block to a method which never use a block
Retry it on current master 2024.
Summary:
* false positive on several cases:
* intentional cases for duck ty...
ko1 (Koichi Sasada)
10:57 AM Revision 3f633e57 (git): [wasm-pic] Remove --pass-arg=asyncify-ignore-imports from POSTLINK
Before PIC era, we could assume that the stack is not unwound by
imported functions since all imported functions are ...
katei (Yuta Saito)
09:31 AM Bug #20314: Simultaneous Timeout expires may raise an exception after the block
I'm not sure how Solution 3 would work.
`Thread#raise` would block until what?
Until the exception started to be rais...
Eregon (Benoit Daloze)
06:25 AM Bug #20314 (Open): Simultaneous Timeout expires may raise an exception after the block
Launchable reports `TestTimeout#test_nested_timeout` as a flaky test, and I reproduced it as follows.
```ruby
r...
mame (Yusuke Endoh)
09:05 AM Revision 114c0b71 (git): Inform failures in parallel tests before retrying
Displays for each failure which test it actually occurred in. The
output destination follows the --{stdout,stderr}-o...
nobu (Nobuyoshi Nakada)
08:30 AM Feature #19979: Allow methods to declare that they don't accept a block via `&nil`
Actually, I prefer #15554, but my concern is that it causes compatibility issues with false positives.
Matz.
matz (Yukihiro Matsumoto)
07:40 AM Misc #20254 (Closed): Add Launchable into Ruby CI
@ono-max and @jaruga Thank you for your works. Launchable has been added our repository.
We discovered https://bug...
hsbt (Hiroshi SHIBATA)
12:51 AM Misc #20254: Add Launchable into Ruby CI
Thank you for introducing the feature, @jaruga. Also, I'd like to introduce the page https://app.launchableinc.com/or... ono-max (Naoto Ono)
01:18 AM Bug #20313: Backport RUBY_YJIT_ENABLE PR https://github.com/ruby/ruby/pull/7208
Merged to ruby_3_2 at https://github.com/ruby/ruby/commit/80112a9847b705b53e17e48540a6d00daa7e59a4. Thanks. nagachika (Tomoyuki Chikanaga)
01:17 AM Revision 80112a98 (git): Make sure RUBY_YJIT_ENABLE only enables YJIT for truthy values
Andrea Culot
12:57 AM Revision 51e32523 (git): Resolve a warning in `launchable record build` command
ono-max (Naoto Ono)

02/28/2024

11:26 PM Misc #20254: Add Launchable into Ruby CI
FYI: I'm going to change the GitHub comment feature as follows today:
If a test is executed multiple times, we'll tre...
ono-max (Naoto Ono)
03:15 PM Misc #20254: Add Launchable into Ruby CI
As a reference to see how the results of the Launchable CI look like, below is one example to see the flaky, the most... jaruga (Jun Aruga)
11:00 PM Revision f05ad373 (git): YJIT: Squash canary before falling back
Recent flaky canary-related CI failures have all happened while trying
to fall back. It's unclear what is leaving the...
alanwu (Alan Wu)
08:00 PM Revision 558b58d3 (git): YJIT: Reject keywords hash in -1 arity cfunc splat support
`test_keyword.rb` caught this issue. Just need to run with `threshold=1` alanwu (Alan Wu)
07:54 PM Revision 4b92b60f (git): Use array initialization rather than for loop
peterzhu2118 (Peter Zhu)
06:45 PM Revision c5b568ba (git): Migrate auto_request_review back to CODEOWNERS (#10133)
k0kubun (Takashi Kokubun)
06:45 PM Revision 5481dbef (git): Make rb_define_finalizer_no_check private
peterzhu2118 (Peter Zhu)
06:30 PM Revision a5bfc251 (git): [ruby/prism] Rewrite logic for CHECK_FIELD_KIND to improve readability
https://github.com/ruby/prism/commit/f731edcc26 Eregon (Benoit Daloze)
06:30 PM Revision 71673464 (git): [ruby/prism] More precise types for NodeListField in prism.rbi
https://github.com/ruby/prism/commit/b7959295e9 Eregon (Benoit Daloze)
06:30 PM Revision 2143789a (git): [ruby/prism] Make NodeKindField subclass NodeKindField
* To avoid duplication.
https://github.com/ruby/prism/commit/12e5aae0b4
Eregon (Benoit Daloze)
06:30 PM Revision 1b0a5bcb (git): [ruby/prism] Add a simple way to check field kinds are correct by setting $CHECK_FIELD_KIND
https://github.com/ruby/prism/commit/33e987ba3c Eregon (Benoit Daloze)
06:30 PM Revision ea2cb002 (git): [ruby/prism] Give a kind to all node[] fields which can have one more specific than "any Node"
* Fixes https://github.com/ruby/prism/issues/2058
https://github.com/ruby/prism/commit/f3e3310b5e
Eregon (Benoit Daloze)
06:30 PM Revision 567d4ee7 (git): [ruby/prism] Set proper types for node[] in Java-generated code
https://github.com/ruby/prism/commit/322eaea500 Eregon (Benoit Daloze)
06:26 PM Bug #20313 (Closed): Backport RUBY_YJIT_ENABLE PR https://github.com/ruby/ruby/pull/7208
k0kubun (Takashi Kokubun)
04:53 PM Bug #20313 (Closed): Backport RUBY_YJIT_ENABLE PR https://github.com/ruby/ruby/pull/7208
Backporting "Make sure RUBY_YJIT_ENABLE only enables YJIT for truthy values" PR https://github.com/ruby/ruby/pull/720... andclt (Andrea Culot)
06:26 PM Revision a29c0e82 (git): [PRISM] Handle implicit flip-flop bounds checking against $.
kddnewton (Kevin Newton)
05:44 PM Revision 16c7144c (git): [PRISM] Only look up encoding once per file
kddnewton (Kevin Newton)
05:42 PM Revision f8355e88 (git): [PRISM] Do not load -r until we check if main script can be read
kddnewton (Kevin Newton)
05:23 PM Feature #20309: Bundled gems for Ruby 3.5
Also something I remembered now is YJIT [does not compile singleton methods](https://github.com/Shopify/ruby/issues/5... Eregon (Benoit Daloze)
05:21 PM Feature #20309: Bundled gems for Ruby 3.5
@jeremyevans0 One issue with that replacement is it does not name the class of the object, so it's quite unclear if t... Eregon (Benoit Daloze)
03:38 PM Feature #20309: Bundled gems for Ruby 3.5
Eregon (Benoit Daloze) wrote in #note-6:
> hsbt (Hiroshi SHIBATA) wrote:
> > * singleton
> > * This is famous des...
jeremyevans0 (Jeremy Evans)
11:18 AM Feature #20309: Bundled gems for Ruby 3.5
Eregon (Benoit Daloze) wrote in #note-6:
> > * fcntl
> > * Should we integrate these constants into ruby core?
> ...
Eregon (Benoit Daloze)
11:14 AM Feature #20309: Bundled gems for Ruby 3.5
hsbt (Hiroshi SHIBATA) wrote:
> * ostruct
> * I make ostruct as optional on json at https://github.com/flori/json/p...
Eregon (Benoit Daloze)
08:46 AM Feature #20309: Bundled gems for Ruby 3.5
I'm big fan (and user) of `ruby -run -e httpd . -p 1234`, this is also part of "local HTTP server oneliners" like htt... retro (Josef Šimánek)
05:21 PM Revision dcc976ad (git): Remove unused rb_gc_id2ref_obj_tbl
peterzhu2118 (Peter Zhu)
04:42 PM Revision 49aa8d65 (git): [PRISM] Fix version spec to account for prism
kddnewton (Kevin Newton)
04:36 PM Bug #20311: Struct.new("A") memory leak?
Seems referred from `defined_module_hash`.
`rb_const_remove` needs to take care of it when the removed constant is a...
nobu (Nobuyoshi Nakada)
01:28 PM Bug #20311: Struct.new("A") memory leak?
I had a quick look at this using `ObjectSpace.dump_all`, and it appears that these classes are being retained in the ... byroot (Jean Boussier)
12:03 PM Bug #20311 (Closed): Struct.new("A") memory leak?
The following code gives the impression of a memory leak.
```ruby
10.times do
5000.times do
Struct.new("A...
MaxLap (Maxime Lapointe)
04:09 PM Revision 1cef3663 (git): [PRISM] Factor in CLI options for prism
kddnewton (Kevin Newton)
03:58 PM Revision 742abbf7 (git): Switch {prism: true} to {parser: :prism} in ISeq.to_a
kddnewton (Kevin Newton)
03:46 PM Bug #20312 (Third Party's Issue): Memory leak with BigDecimal::EXCEPTION_OVERFLOW
The following causes a memory leak.
I left a commented line, both trigger an memory leak. I assume it's the same b...
MaxLap (Maxime Lapointe)
03:41 PM Revision 7b69563b (git): Add check for finalizer in verify_internal_constency
This adds a check in GC.verify_internal_constency that FL_FINALIZE flags
is set if, and only if it is in finalizer_ta...
peterzhu2118 (Peter Zhu)
03:41 PM Revision 48f433fd (git): Change T_ZOMBIE flag check from an assertion
Assertions are only enable on debug builds, so it will now check for
flags of T_ZOMBIE objects on all builds in GC.ve...
peterzhu2118 (Peter Zhu)
03:36 PM Revision c990cc70 (git): [ruby/prism] Switch static literals to use a hash
https://github.com/ruby/prism/commit/82e6f36e8f kddnewton (Kevin Newton)
03:36 PM Revision 8b556d39 (git): [ruby/prism] Refactor static literals into hash
https://github.com/ruby/prism/commit/62382d3967 kddnewton (Kevin Newton)
08:53 AM Revision eb6eb1d4 (git): Fix crash report path test on Windows
nobu (Nobuyoshi Nakada)
08:12 AM Bug #20310: ASAN fake stacks need to be marked during GC for non-current execution context
I opened https://github.com/ruby/ruby/pull/10122 as my first attempt at this. kjtsanaktsidis (KJ Tsanaktsidis)
04:01 AM Bug #20310 (Closed): ASAN fake stacks need to be marked during GC for non-current execution context
When ASAN (address sanitizer) is enabled, the compiler does not necessarily store all local variables on the real mac... kjtsanaktsidis (KJ Tsanaktsidis)
07:09 AM Revision 8316cb21 (git): Fix to use `assert_crash_report` results
nobu (Nobuyoshi Nakada)
04:30 AM Revision 05387b59 (git): Update regex patterns with rbinstall.rb
hsbt (Hiroshi SHIBATA)
04:30 AM Revision 75a4aa20 (git): Support file listing with IO.poepn style
hsbt (Hiroshi SHIBATA)
04:22 AM Feature #20275: Avoid extra backtrace entries for rescue and ensure
I am in favor of this change, but I do not plan to write a patch and estimate its impact. Someone who wants this, ple... mame (Yusuke Endoh)
03:41 AM Feature #20274 (Closed): Add RubyVM::ASAN.enabled?
Applied in changeset commit:git|fe0b704df5553bdd59e90650ffbbfac785a2e48a.
----------
Skip assert_no_memory_leak when...
Anonymous
03:41 AM Revision fe0b704d (git): Skip assert_no_memory_leak when ASAN is enabled
ASAN greatly increases the memory footprint of Ruby, so these static
thresholds are not appropriate. There's no real ...
KJ Tsanaktsidis
02:14 AM Revision 47b46fd9 (git): Use dummy command for IO.popen
hsbt (Hiroshi SHIBATA)
02:11 AM Revision e8e2415b (git): Use RB_SPECIAL_CONST_P instead of rb_special_const_p
rb_special_const_p returns a VALUE (Qtrue or Qfalse), so we shouldn't
assume that Qfalse is 0. We should instead use ...
peterzhu2118 (Peter Zhu)
02:08 AM Revision 95e55e9a (git): Also ignore git ls-files command with IO.popen style for tmpdir.gemspec and tempfile.gemspec
hsbt (Hiroshi SHIBATA)
01:43 AM Bug #20090: Anonymous arguments are now syntax errors in unambiguous cases
I confirmed.
@naruse https://github.com/ruby/ruby/commit/f8f0d342e48a38caac6d32b438c145bb581a51e6 seems wrong comm...
hsbt (Hiroshi SHIBATA)
 

Also available in: Atom