Activity
From 01/28/2025 to 02/03/2025
02/03/2025
-
10:47 PM Bug #21111 (Closed): RbConfig::CONFIG['CXX'] quietly set to "false" when Ruby cannot build C++ programs
- As reported in https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues/2222 and https://trac.macports.org/ticket/70750, we've had numerous macOS users experience problems with compiling Ruby C++ extensions after upgrading to XCode ...
-
03:20 PM Misc #21110: Should Marshal.dump always use object links for repeated Float values?
- Right, I think always adding a link makes sense.
Then the logic for flonum/not-flonum should be identical (as shown [here](https://github.com/ruby/ruby/pull/12679#discussion_r1937116017)). -
02:51 PM Misc #21110: Should Marshal.dump always use object links for repeated Float values?
- I agree that `Marshal` should not depend on the details.
At least, `Float` should be distinguished only by its value, not its object ID.
OTOH, dump of `Float` is often longer:
```ruby
Marshal.dump(Math.log(324.0)) #=> "\x04\bf\x165... -
01:08 PM Misc #21110: Should Marshal.dump always use object links for repeated Float values?
- IMO Marshal should not depend on obscure implementation details like Flonum, i.e. Float whether fitting in a Flonum or not should be dumped the same with Marshal.
What do others think? -
01:02 PM Misc #21110 (Open): Should Marshal.dump always use object links for repeated Float values?
- I've noticed (during the downstreaming ruby/spec in https://github.com/ruby/ruby/pull/12679) that a repeated Float value may be dumped "directly"/"immediately" without an object link on x86 architecture, and with a link in other cases. I...
-
01:54 PM Bug #21088 (Assigned): TCPSocket.new raises Socket::ResolutionError instead of Errno::ECONNREFUSED for hosts defined in /etc/hosts
-
01:24 PM Bug #21088 (Closed): TCPSocket.new raises Socket::ResolutionError instead of Errno::ECONNREFUSED for hosts defined in /etc/hosts - Applied in changeset commit:git|1683dadb19876f0a64589bdbbcf6fff8143f78ff.
----------
Do not save ResolutionError if resolution succeeds for any address family (#12678)
* Do not save ResolutionError if resolution succeeds for any addres... -
01:24 PM Revision 7317f967 (git): Move out from quarantine a Marshal.dump spec for Float (#12692)
- * Move out from quarantine a Marshal.dump spec for Float
Co-authored-by: Benoit Daloze <eregontp@gmail.com> - 11:26 AM Revision 1683dadb (git): Do not save ResolutionError if resolution succeeds for any address family (#12678)
- * Do not save ResolutionError if resolution succeeds for any address family
Socket with Happy Eyeballs Version 2 performs connection attempts and name resolution in parallel.
In the existing implementation, if a connection attempt fail... -
09:47 AM Revision f84d75ee (git): [ruby/openssl] pkey/ec: remove deprecated PKey::EC::Point#mul(ary, ary [, bn]) form
- The method has two forms, each corresponding to EC_POINT_mul() and
EC_POINTs_mul(). The latter form does not work with any OpenSSL or
LibreSSL versions that are still supported by upstream.
The latter form has an extremely confusing beh... -
09:46 AM Revision 5a14f536 (git): [ruby/openssl] ssl: separate SSLContext#min_version= and #max_version=
- Make these methods simple wrappers around
SSL_CTX_set_{min,max}_proto_version().
When we introduced these methods in commit https://github.com/ruby/openssl/commit/18603949d316 [1], which went
to v2.1.0, we added a private method to SSLC... -
09:29 AM Bug #21104: Net::HTTP connections failing in Ruby >= 3.4.0 on macOS with Happy Eyeballs enabled
- shioimm (Misaki Shioi) wrote in #note-1:
> To help narrow down the cause, could you provide more information on the following?
> ...
Yes, I saw it first running `bundle install` with errors like:
```
Bundler::HTTPError Could not fe... -
07:07 AM Revision 8cbff4fe (git): Add sleep to PTY tests to stabilize flaky failures (#12691)
-
05:43 AM Revision 890020e3 (git): Removed manpages for bundled gems
-
03:47 AM Bug #21108: C-c (SIGINT) crashes ruby when looping Ractors are not taken?
- Thank you for your comment! Your patch looks promising. Hope it gets merged soon.
-
01:58 AM Revision e8cf4414 (git): [ruby/weakref] Add missing block parameter
- A block is part of the Delegator's contract. Ruby 3.4 issues a warning if a block is passed but unused. This commit fixes the warning by adding a block to the argument list.
https://github.com/ruby/weakref/commit/9495ec9191 -
01:22 AM Revision 15e6f13f (git): [ruby/fiddle] Fix Fiddle.last_error on FFI backend and improve test
- to work for all
(https://github.com/ruby/fiddle/pull/173)
https://github.com/ruby/fiddle/commit/ef2382a7ef -
01:22 AM Revision b5b50976 (git): [ruby/fiddle] Define Fiddle.last_error family and Fiddle.dlopen
- statically
(https://github.com/ruby/fiddle/pull/172)
`RUBY_ENGINE` and `Fiddle::WINDOWS` should not change in a process, no
need to be checked inside the methods.
Also, `win32_last_error` and `win32_last_socket_error` are equal to
`las... - 01:05 AM Revision 56c814a8 (git): [rubygems/rubygems] Bump the rb-sys group across 2 directories with 1 update
- Bumps the rb-sys group with 1 update in the /test/rubygems/test_gem_ext_cargo_builder/custom_name/ext/custom_name_lib directory: [rb-sys](https://github.com/oxidize-rb/rb-sys).
Bumps the rb-sys group with 1 update in the /test/rubygems/t... -
01:05 AM Revision c0688c21 (git): [rubygems/rubygems] Raise a simpler error when RubyGems fails to activate a dependency
- If you force uninstall a dependency but leave other gems depending on
it, those gems will fail to be activated.
In that case, RubyGems prints a rather complicated error:
```
$ rails --version
/Users/deivid/.asdf/installs/ruby/3.4.1/lib... -
01:05 AM Revision d645b62b (git): [rubygems/rubygems] Remove already fixed TODO
- It was fixed by https://github.com/rubygems/rubygems/commit/3b0d44fbf5a3.
https://github.com/rubygems/rubygems/commit/4cf3429599 -
01:05 AM Revision 98c56de8 (git): [ruby/json] Refactor further to expose the simpler escape search possible
- https://github.com/ruby/json/commit/e03515ac8b
-
01:05 AM Revision 98e1c284 (git): [ruby/json] Refactor convert_UTF8_to_JSON to split searching and escaping code
- The goal is to be able to dispatch to more optimized search implementations
without having to duplicate the escaping code.
Somehow, this is a few % faster already:
```
== Encoding activitypub.json (52595 bytes)
ruby 3.4.1 (2024-12-25 r...
02/02/2025
-
11:20 PM Bug #21090: SEGV from require in Thread in Ractor
- I managed to track down the issues, as there was more than 1.
I'll copy my PR message below:
stack struct memory was receiving weird values with lots of ractors when
calling Ractor#require in a thread that wasn't joined.
This was due ... -
11:19 PM Bug #21108: C-c (SIGINT) crashes ruby when looping Ractors are not taken?
- This is actually related to https://bugs.ruby-lang.org/issues/21090, my patch fixes this issue as well.
-
10:22 AM Bug #21108: C-c (SIGINT) crashes ruby when looping Ractors are not taken?
- Created a patch: https://github.com/ruby/ruby/pull/12689
-
08:59 AM Bug #21108 (Closed): C-c (SIGINT) crashes ruby when looping Ractors are not taken?
- Hitting C-c causes ruby to crash under these circumstances.
## Repro
Hit C-c while the program is running.
```ruby
r1 = Ractor.new do
ary = []
loop do
Ractor.receive
Ractor.yield ary.push(1)
end
end
r2 = ... -
06:02 PM Bug #21087: "try to mark T_NONE object" error in Rage/ActiveRecord/Fiber with 3.4.1 upgrade
- alanwu (Alan Wu) wrote in #note-9:
> Thanks! The reproducer help diagnose the issue and we landed a fix in commit:58ccce60cf5f3268e7ef27942b75e78fe2d78e75.
Great!
-
04:18 PM Bug #21106 (Closed): The last iteration of the rb_ary_shuffle_bang function is useless
- Applied in changeset commit:git|8dd0d63550c4da2ba7939f371f73825caa2e932e.
----------
[Bug #21106] Remove the useless last iteration
When only one element remains, this simply swaps the first identical
element and has no actual effect. -
04:58 AM Bug #21106 (Closed): The last iteration of the rb_ary_shuffle_bang function is useless
- The number of iterations in the Fischer-Yates shuffle is (N-1) times.
In the following verification code, rand function is called N times.
```
class R
def rand(n)
puts n
return 0
end
end
a = [1,2,3,4,5,6,7,8,9,... -
03:27 PM Revision 581d8505 (git): Add out of range tests of random number generator
-
02:27 PM Bug #21104: Net::HTTP connections failing in Ruby >= 3.4.0 on macOS with Happy Eyeballs enabled
- I suspect that this issue might be caused by an interaction between the specifications of Happy Eyeballs v2 and certain intermediate devices along the network path.
This is because, according to the report you linked, the problem occur... -
01:18 PM Feature #21109 (Closed): Want to clarify how $/ is handled in Ractor
- I am often in trouble because `$/` is inaccessible in Ractor.
For example, `IO#readline` can't be called from non-main Ractor.
```
$ echo "foo"|ruby -e 'Ractor.new do p $stdin.readline end.take'
-e:1: warning: Ractor is experimenta... -
11:59 AM Revision 571f3394 (git): [Bug #21106] Fix tests for custom random object
- When a positive integer limit is given, `rand` method of a RNG object
is expected to return a value between 0 and the limit (exclusive).
Fix shuffle_spec.rb like as the similar code in sample_spec.rb, and
add tests for greater values.
... -
11:42 AM Feature #21105: Improve Ruby Stack Trace to Include Exact Error Position (Column Number)
- It is already shown:
```ruby
class Example
def self.run
nil.foo.bar.baz
end
end
Example.run
```
```
example.rb:3:in `run': undefined method `foo' for nil (NoMethodError)
nil.foo.bar.baz
^^^^
from ex... -
01:15 AM Feature #21105 (Closed): Improve Ruby Stack Trace to Include Exact Error Position (Column Number)
- ## Subject
Improve Ruby Stack Trace to Include Exact Error Position (Column Number)
## Description
Currently, when an exception occurs in Ruby, the stack trace provides the file name and line number but does not indicate the exa... -
10:34 AM Revision 8dd0d635 (git): [Bug #21106] Remove the useless last iteration
- When only one element remains, this simply swaps the first identical
element and has no actual effect. -
07:58 AM Revision ace39a3e (git): Remove rb_exc_raise for Parser
-
06:57 AM Feature #21107 (Open): Add a Ractor safety & shareability section to stdlib class docs
- ## Proposal
Add a section describing Ractor safety and shareability for each stdlib class.
For example, a description for Array could look like:
```
== Ractor safety and shareability
An \Array is not Ractor shareable by defa...
02/01/2025
-
10:19 PM Bug #21104 (Open): Net::HTTP connections failing in Ruby >= 3.4.0 on macOS with Happy Eyeballs enabled
- A project I work on recently upgraded Ruby to 3.4.1 from 3.3.5. Following the upgrade, and when running locally on my Mac, all attempts to connect to an external service within the project over http(s) fail.
We use `mise` for managing... -
04:33 PM Feature #21028: Method for finding why an object isn't Ractor shareable
- +1 for this feature. It is quite hard to find out that a rb_data_type_t in the deep is lacking the `RUBY_TYPED_FROZEN_SHAREABLE` flag.
-
02:15 PM Bug #21103 (Closed): Binding problem with delegate methods
- Applied in changeset commit:git|db02a6b3ab4cabbdf492c26dcb1929b4ef0370a1.
----------
[Bug #21103] Fix local variable index calculation with forwarding
Forwarding argument is optimized not to packed when no other arguments
and an intern... -
01:45 PM Bug #21103: Binding problem with delegate methods
- https://github.com/ruby/ruby/pull/12686
-
01:03 PM Revision db02a6b3 (git): [Bug #21103] Fix local variable index calculation with forwarding
- Forwarding argument is optimized not to packed when no other arguments
and an internal object refers values before it. This size is decided
at called time, calculate the local variable index from the fixed end
point. -
07:57 AM Revision 71f402c5 (git): [DOC] Remove the index file for bundler man pages
- Those man pages are not placed here already.
-
07:22 AM Revision bff168f1 (git): Install non-mdoc files as-is
- See if the content contains `.Nm` macro, instead of the names.
This reverts "Don't convert bundler man pages from mdoc to man",
commit e0b40ef5d8173aff304c81f93516e1246e3c042c. -
06:37 AM Feature #19555: Allow passing default options to `Data.define`
- I've found the need for something like this as well, I have a use case where it's getting repetitive and distractingly verbose to build out the `Data` blocks just for a number of defaults. The mutable defaults is a really good point, tho...
-
06:36 AM Revision 5318a48e (git): Compress manpages automatically
01/31/2025
-
09:44 PM Bug #21101 (Rejected): Encoding::CompatibilityError when using String#strip
-
05:35 PM Bug #21103 (Closed): Binding problem with delegate methods
- ```ruby
def foo(...)
a = 123
binding.local_variable_get(:a)
end
p foo([])
```
Expected output is `123`, actual output is some number. I think there is an off-by-one error in bindings created from delegate frames. -
05:02 PM Bug #21102 (Rejected): Unexpected encoding when concatenating ASCII string with ASCII compatible string with non ASCII encoding
- The problem was noticed in code that is boiled down to:
```ruby
# encoding: UTF-8
str = "something"
p str.encoding # => #<Encoding:UTF-8>
p [nil, str].join.encoding # => #<Encoding:US-ASCII>
```
As `nil.to_s` is an empty str... -
12:30 PM Revision 022ab413 (git): [DOC] Improve Errno and SystemCallError.new
- 12:00 PM Revision 0da2b127 (git): Prefer `platform_is_not :windows`.
-
09:54 AM Bug #21095: Prefer `uname -n` over `hostname` in tests.
- @ioquatix There are several problems with what happened here, so I'll list them in the hope this does not repeat in the future:
* The rationale for this change is not well explained (e.g. why is it a problem for Arch to have `inettools`... - 06:41 AM Revision f719b889 (git): [DOC] Fix grep_v description
-
05:34 AM Revision 451d848a (git): Stop generating binstubs for Bundler itself
-
05:34 AM Revision 56e2ef24 (git): [rubygems/rubygems] Fix `bundle console` unnecessarily trying to load IRB twice
- https://github.com/rubygems/rubygems/commit/f9bf58573f
-
05:34 AM Revision 3cff46c5 (git): [rubygems/rubygems] Remove unnecessary error handling
- These gems always define their main namespace and I don't think that
will ever change.
https://github.com/rubygems/rubygems/commit/6663cbed53 -
05:34 AM Revision e0f39d4c (git): [rubygems/rubygems] Test with JRuby 9.4.10.0
- https://github.com/rubygems/rubygems/commit/770b19d859
- 05:34 AM Revision 2ed30c99 (git): [rubygems/rubygems] Consolidate the platform into a single list:
- - Similar change than https://github.com/rubygems/rubygems/commit/29a1be0008e6,
keep a single source of truth where we store the platform.
The only change worth highlighing is the platform "maglev".
It was not part of the supporte... - 05:34 AM Revision dc7c6651 (git): [rubygems/rubygems] Consolidated the Ruby version list:
- - We keep 2 list of supported ruby versions and each time a new ruby
version is released we need to maintain both list. Forgetting
to update one would prevent users from adding gem for a specific
plaftorm (i.e. https://github.com/r... - 05:34 AM Revision 57fec1e8 (git): [rubygems/rubygems] Add ruby_34 and ruby_35 as valid platform:
- - Fix https://github.com/rubygems/rubygems/pull/8427
- Similar to https://github.com/rubygems/rubygems/commit/7cd19d824d17.
Tweaked a bit the test supposed to prevent this error by checking
whether the dep respond to these methods.
... - 02:52 AM Revision 366462bd (git): - Add a mention to git 2.32 in the building ruby documentation:
- I had issues building Ruby as I was using git 2.30.
The error was:
> file2lastrev.rb: git rev-parse failed error: could not expand
> include path '~/.gitcinclude'
The default system git config includes paths making use of `$HOM... -
01:43 AM Revision 7604588f (git): [Feature #19521] Test for `Module#set_temporary_name`
01/30/2025
-
11:00 PM Revision 9497820b (git): YJIT: Remove comments that refer to the removed "stats" feature
- The Cargo feature was removed in 2de8b5b8054f311c4cee112dcab5208b66cc62a4
and it's available in all build configs now.
[ci skip] -
11:00 PM Revision 95bf3590 (git): YJIT: Turn on dead code lint for the stats module
-
11:00 PM Revision 7e733ca5 (git): YJIT: Explicitly specify C ABI to fix a nightly Rust warning
-
07:43 PM Revision afd7d5be (git): Skip a new spec for Marshal#dump and Float that fails on i686
-
07:43 PM Revision d7a5ad2a (git): Update to ruby/spec@affef93
-
07:43 PM Revision ea2dd5b8 (git): Update to ruby/mspec@0aabb3e
-
06:22 PM Bug #21099: TestGc#test_gc_stress_at_startup assertion failure
- peterzhu2118 (Peter Zhu) wrote in #note-1:
> Thank you for this bug report. I have a fix here: https://github.com/ruby/ruby/pull/12667
Thanks for the fix! -
03:10 PM Bug #21099 (Closed): TestGc#test_gc_stress_at_startup assertion failure
- Applied in changeset commit:git|a084fef9afc7713aa4f4111f7e826c7ca1a607c7.
----------
[Bug #21099] Fix GC when Ractor list not initialized
When the Ractor list is not initialized and a GC is ran at boot, then it
would crash because the ... -
05:27 PM Bug #21098 (Closed): rb_alias: confusing error messages when the original method cannot be found and ZSUPER methods are involved
- https://github.com/ruby/ruby/pull/12665 landed in commit:f0dc9dcdc7a3b15b3192b1503a3c3d9eec3ada06.
-
04:48 PM Revision d729c157 (git): Output object_id in ObjectSpace.dump
- Outputs the object ID in the dump for objects that have it seen.
-
04:10 PM Bug #21034 (Closed): try to mark T_NONE object error after upgrading to 3.4.1
- Should be fixed by commit:58ccce60cf5f3268e7ef27942b75e78fe2d78e75. If you'd like to try out a patch for 3.4.1, take a look at https://bugs.ruby-lang.org/issues/21021#note-26.
-
04:07 PM Bug #21034: try to mark T_NONE object error after upgrading to 3.4.1
- Ha, ya, thanks Benoit. I'm not sure what that was about, but here's the real values (I think):
```
(gdb) rp i
FIXNUM: 15
```
```
(gdb) rp values[14]
FIXNUM: 70068055741204
(gdb) rp values[15]
FIXNUM: 286326800
(gdb) rp ... -
04:05 PM Bug #21087 (Closed): "try to mark T_NONE object" error in Rage/ActiveRecord/Fiber with 3.4.1 upgrade
- Thanks! The reproducer help diagnose the issue and we landed a fix in commit:58ccce60cf5f3268e7ef27942b75e78fe2d78e75.
- 03:20 PM Revision f0dc9dcd (git): rb_alias: improve "undefined method" error message by invoking
- `rb_print_undef` with `target_klass` as argument.
-
03:10 PM Revision 50327913 (git): Fix conversion of RubyVM::FrozenCore to T_ICLASS
- We shouldn't directly set the flags of an object because there could be
other flags set that would be erased. Instead, we can unset T_MASK and
set T_ICLASS isntead. -
03:10 PM Revision a084fef9 (git): [Bug #21099] Fix GC when Ractor list not initialized
- When the Ractor list is not initialized and a GC is ran at boot, then it
would crash because the newobj_cache of the main Ractor is not cleared.
This commit changes it to use ruby_single_main_ractor when it's available
and iterate over t... -
01:02 PM Bug #21101: Encoding::CompatibilityError when using String#strip
- Thank you very much for the quick answer, that seems to have resolved my problem.
-
12:56 PM Bug #21101: Encoding::CompatibilityError when using String#strip
- See https://bugs.ruby-lang.org/issues/18931.
You can add `encoding: Encoding::ISO_8859_1` keyword argument to tell the expected encoding. -
12:00 PM Bug #21101 (Rejected): Encoding::CompatibilityError when using String#strip
- When opening an ISO 8859-1 encoded file containing a German letter (e.g. ö), then parsing through each line and stripping whitespace using either `rstrip` or `strip` it raises an Error ( `lstrip` seams fine; I'd assume it skips stripping...
- 09:45 AM Revision 4cfc904d (git): [DOC] Fix article-noun agreement
-
09:19 AM Revision 4bde1493 (git): Make node line macros inline functions
- To suppress -Waddress warning and for the debugging purpose.
-
09:19 AM Revision aca0b92c (git): `prev_mn_schedulable` might be clobbered by `longjmp`
-
09:13 AM Revision 167985dc (git): Handle environment where GEM_HOME is not available
-
08:52 AM Misc #21100 (Closed): DevMeeting before RubyKaigi 2025
- RubyKaigi 2025 will be at Matsuyama, Japan, Apr 16th - 18th.
We would like to try to hold a face-to-face dev meeting at Matsuyama. (@matz will also participate!)
* Date: 2025/04/15 (Tue.) 16:00-19:00 (The day before RubyKaigi)
* Loc... -
07:56 AM Revision dc3d2a3c (git): [ruby/json] Avoid plain char for ctype macros
- On some platforms ctype functions are defined as macros accesing tables.
A plain char may be `signed` or `unsigned` per implementations and the
extension result implementation dependent.
gcc warns such case:
```
parser.c: In function '... - 07:56 AM Revision 7f70ef64 (git): [ruby/json] Few doc tweaks:
- - Also modified the gemspec files' blob as the ragel's `parser.rl`
file was removed in https://github.com/ruby/json/commit/c8d5236a921e
https://github.com/ruby/json/commit/b2b106e314 -
07:49 AM Bug #21021: "try to mark T_NONE object" with 3.4.1
- Benoit_Tigeot (Benoit Tigeot) wrote in #note-28:
> I will post an update tomorrow UTC, with more runs of the code impacted.
I can confirm that Alan's patch is fixing our issue. No crash on our side even with some concurrency in the a... -
07:30 AM Revision 2880ec09 (git): Use https://github.com/ruby/net-imap/pull/389 for flaky tests
-
06:50 AM Bug #21092 (Closed): error building ruby 3.4.1 on cygwin/msys2
- Applied in changeset commit:git|2b6fc9ea7212543a1be26768403f59c7a759b5ea.
----------
[Bug #21092] Fallback variables after execonf has done
When reading from a dummy makefile, the global variables initialized
in `init_mkmf` may not be ... -
05:37 AM Bug #21092: error building ruby 3.4.1 on cygwin/msys2
- nobu (Nobuyoshi Nakada) wrote in #note-4:
> I cannot reproduce that error at all, with ruby-3.4.1.
This was because I failed to get msys to pretend to be cygwin, and it reproduced by simply trying on cygwin.
MSys is mysterious.
-
05:52 AM Revision 2b6fc9ea (git): [Bug #21092] Fallback variables after execonf has done
- When reading from a dummy makefile, the global variables initialized
in `init_mkmf` may not be overridden. -
05:18 AM Revision 8f77e694 (git): [ruby/resolv] `w32error_raise` never returns
- https://github.com/ruby/resolv/commit/d00e86f7e4
-
03:52 AM Revision 895aa44b (git): bin_path_spec.rb relied to available Ruby environment with after `make install`
- But we stub-out GEM_HOME variable for test-bundled-gems and others on ruby/ruby. It means
the installation path mismatched with GEM_HOME variable always. We can't test this example
collectly.
```
1)
Gem.bin_path finds executables of def... -
03:07 AM Revision 19ba093c (git): Try to use parallel execution of mingw tests
-
02:24 AM Revision af508a6d (git): Skip irb examples, I will handle related workarounds later
-
01:25 AM Bug #21088 (Assigned): TCPSocket.new raises Socket::ResolutionError instead of Errno::ECONNREFUSED for hosts defined in /etc/hosts
-
12:40 AM Revision 3dda4887 (git): Removed executables of bundled gems
-
12:15 AM Bug #14480: miniruby crashing when compiled with -O2 or -O1 on aarch64
- vo.x (Vit Ondruch) wrote in #note-19:
> I don't understand why this change was applied. This should be either enabled everywhere or disabled everywhere, not enabled on some random platforms. Please note that this should not be issue on ... -
12:09 AM Revision 5a7089fc (git): YJIT: A64: Remove assert that trips when OOM at page boundary
- With a well-timed OOM around a page switch in the backend, it can return
RetryOnNextPage twice and crash due to the assert. (More places can
signal OOM now since VirtualMem tracks Rust malloc heap size for
--yjit-mem-size.)
Return error...
01/29/2025
-
07:02 PM Bug #21099: TestGc#test_gc_stress_at_startup assertion failure
- Thank you for this bug report. I have a fix here: https://github.com/ruby/ruby/pull/12667
-
04:00 PM Bug #21099 (Closed): TestGc#test_gc_stress_at_startup assertion failure
- Hi all,
I'm running macOS 15.2, and on my machine the test `TestGc#test_gc_stress_at_startup` results in an assertion failure.
These are my current configure flags:
```
../configure \
--prefix="$SOURCEDIR/ruby_3.4.1" \
... -
06:22 PM Revision de45755d (git): Use an identity hash instead of array for stress_to_class
-
06:22 PM Revision 5e644e80 (git): Fix GC.add_stress_to_class and GC.remove_stress_to_class
- These methods were accidentally removed in [Feature #20470]. This commit
adds them back. -
05:14 PM Revision 1b731c1f (git): [ruby/openssl] pkey: avoid calling i2d_PUBKEY family on an incomplete key
- Call ossl_pkey_check_public_key() to ensure that
EVP_PKEY_missing_parameters() passes. This check should be cheap.
DSA#{to_der,to_pem,export,to_s} and PKey#{public_to_der,public_to_pem}
cause a segfault if the receiver is an empty DSA i... -
05:14 PM Revision 81c83fd7 (git): [ruby/openssl] test/openssl/test_ossl.rb: use clock_gettime for measuring time
- The benchmark library is planned to become a bundled gem in Ruby 3.5.
While we can add it in our Gemfile, it is only used in
test_memcmp_timing and the usage can be easily replaced with a few
Process.clock_gettime calls.
https://github.... -
03:49 PM Bug #21021: "try to mark T_NONE object" with 3.4.1
- alanwu (Alan Wu) wrote in #note-26:
> If you'd like, try it on for size and share if it works!
Running the 3.4.1 with your patch right now. No issues for the moment. Thanks a lot!
I will post an update tomorrow UTC, with more run... -
05:49 AM Bug #21021 (Closed): "try to mark T_NONE object" with 3.4.1
- Applied in changeset commit:git|58ccce60cf5f3268e7ef27942b75e78fe2d78e75.
----------
YJIT: Initialize locals in ISeqs defined with `...` (#12660)
* YJIT: Fix indentation [ci skip]
Fixes: cdf33ed5f37f9649c482c3ba1d245f0d80ac01ce
* YJI... -
12:57 AM Bug #21021: "try to mark T_NONE object" with 3.4.1
- I have a patch that should address the issue. It definitely fixes *a* bug, seems to fix the workload in #21087. If you'd like, try it on for size and share if it works!
```patch
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs
... -
03:17 PM Bug #21098 (Closed): rb_alias: confusing error messages when the original method cannot be found and ZSUPER methods are involved
- Hi all,
I've noticed that the current implementation of `rb_alias` can raise `NameError` exceptions with confusing error messages when the original method cannot be found and ZSUPER methods are involved in the inheritance chain traver... -
03:16 PM Revision d3bb4277 (git): [DOC] Tweaks for rb_hash_s_try_convert
-
03:12 PM Feature #20470: Extract Ruby's Garbage Collector
- That was not intentional. I have fixed it in this PR: https://github.com/ruby/ruby/pull/12664
-
08:08 AM Feature #20470: Extract Ruby's Garbage Collector
- This change still keeps `GC_DEBUG_STRESS_TO_CLASS` feature, but removed `GC.add_stress_to_class` method.
Is it intentional? -
02:14 PM Bug #21096: `Process.fork` hangs up on QEMU when called multiple times.
- You are one of the most responsive people I have ever encountered.
To test the reproduction, iiewad provided a branch of his application where this issue occurs.
(It’s essentially a standard Rails application with something like `--v... -
11:40 AM Bug #21096: `Process.fork` hangs up on QEMU when called multiple times.
- As mentioned on the Rails issue, this is unlikely to be debugged unless a reproducer is provided, which does include a Ruby script or application that cause the hang when compiled, and the precise host and container versions.
-
07:28 AM Bug #21096 (Third Party's Issue): `Process.fork` hangs up on QEMU when called multiple times.
- Hello,
We are experiencing issues when using [Bootsnap](https://github.com/Shopify/bootsnap) for production container image building, specifically when running `bundle exec bootsnap precompile --gemfile` on an emulated ARM64 environme... -
01:29 PM Bug #21088: TCPSocket.new raises Socket::ResolutionError instead of Errno::ECONNREFUSED for hosts defined in /etc/hosts
- Thank you for reporting.
I am aware of this issue and am working on resolving it. -
11:24 AM Bug #21088: TCPSocket.new raises Socket::ResolutionError instead of Errno::ECONNREFUSED for hosts defined in /etc/hosts
- This feature was merged a few months ago (#20782) by @shioimm,
with a [non-trivial state machine implementation](https://gist.github.com/shioimm/fbb09f103caf0812137c5c67ffa14eb6).
I'm pretty sure this is a missing edge case. - 01:19 PM Revision 63b6323e (git): Ensure that memory is not freed before calling `free_fast_fallback_getaddrinfo_*` (#12661)
- Ensure that `getaddrinfo_entry` and `getaddrinfo_shared` exist before free them in the main thread.
-
01:13 PM Bug #21092: error building ruby 3.4.1 on cygwin/msys2
- I cannot reproduce that error at all, with ruby-3.4.1.
-
12:53 PM Revision 2d3d7a74 (git): [DOC] Fix wrong call-seq format (#12662)
-
10:39 AM Bug #21095: Prefer `uname -n` over `hostname` in tests.
- FWIW the older issue has a clear plan which would cause no breaking changes: https://bugs.archlinux.org/task/27808
The new issue is just unclear about everything from what I see. -
10:37 AM Bug #21095: Prefer `uname -n` over `hostname` in tests.
- > did you read the background context and linked issues?
I have read the linked comment, there is not much else there. I don't have time to read other issues like https://gitlab.archlinux.org/archlinux/packaging/packages/filesystem/-/is... -
09:34 AM Bug #21095: Prefer `uname -n` over `hostname` in tests.
- > This change costs us nothing
It costs maintenance time, and IMO already far too much of it for such a small unimportant thing.
Whatever we do here will not impact other distros keeping hostname or not, I'm pretty sure they don't ke... -
10:06 AM Bug #21097: `x = a rescue b in c` and `def f = a rescue b in c` parsed differently between parse.y and prism
- `not` `in` and `not` `rescue` has the same problem
~~~
$ ruby --parser=parse.y -e "def f = not 1 in 2; p f"
false
$ ruby --parser=prism -e "def f = not 1 in 2; p f"
true
$ ruby --parser=parse.y -e "def f = not a rescue true; p f"... -
08:51 AM Bug #21097 (Assigned): `x = a rescue b in c` and `def f = a rescue b in c` parsed differently between parse.y and prism
- ~~~ruby
x = a rescue b in c
(x = (a rescue b)) in c # parse.y, prism(ruby 3.4)
x = (a rescue (b in c)) # prism(ruby 3.5)
~~~
~~~ruby
def f = a rescue b in c #=> true(parse.y), :f(prism)
(def f = (a rescue b)) in c # parse.y
def... -
08:51 AM Revision e01b4ca1 (git): [ruby/error_highlight] Ensure first_line and last_line are set
- Fixes https://github.com/ruby/error_highlight/pull/58
https://github.com/ruby/error_highlight/commit/9ddc1f31a9 -
07:57 AM Revision be44d567 (git): Suppress unused-value warnings
-
05:49 AM Revision cb586b27 (git): Launchable: Use Zero Input Subsetting (#12650)
-
04:54 AM Revision 58ccce60 (git): YJIT: Initialize locals in ISeqs defined with `...` (#12660)
- * YJIT: Fix indentation [ci skip]
Fixes: cdf33ed5f37f9649c482c3ba1d245f0d80ac01ce
* YJIT: Initialize locals in ISeqs defined with `...`
Previously, callers of forwardable ISeqs moved the stack pointer up
without writing to the stack. ... - 01:35 AM Revision ff64806a (git): Fix possible dereference of NULL
- In some places in compile.c (for example in compile_builtin_arg)
ERROR_ARGS macro is used while node = NULL. This macro uses nd_line
which dereferences node. Add check for NULL to prevent such errors. -
12:04 AM Revision a34b95fe (git): Use https://github.com/ruby/net-smtp/pull/90
01/28/2025
-
10:12 PM Bug #21095: Prefer `uname -n` over `hostname` in tests.
- Ruby should prefer (POSIX) standardised tools and interfaces where possible. This change costs us nothing and reduces downstream friction. it's win-win for everyone, including other distributions which have to maintain their own package ...
-
09:58 PM Bug #21095: Prefer `uname -n` over `hostname` in tests.
- My 2 cents on this is it would be far less effort to add a test dependency on inettools in Arch than changing the specs and backporting.
IMO this is no bug, the issue only arises because Arch is trying to remove some common binary, such... -
09:39 PM Bug #21095: Prefer `uname -n` over `hostname` in tests.
- Fixed in <https://github.com/ruby/ruby/commit/46b544c54955348ef1ea9692b837b061f59f91cd> and <https://github.com/ruby/ruby/commit/d3abee739f4feb91bb9aaae33877d70c8c576db0>.
-
09:38 PM Bug #21095 (Closed): Prefer `uname -n` over `hostname` in tests.
- It turns out that `hostname`, while a defacto standard, is not actually a standard in any official sense. On Linux, it's distributed as part of the `inettools` package, and while generally available on other platforms (BSD, Windows, MacO...
-
06:19 PM Bug #21094: Module#set_temporary_name does not affect a name of a nested module
- This seems like a bug to me because if you set the temp name before creating `N` it works as you expected. Opened a PR https://github.com/ruby/ruby/pull/12658
-
11:19 AM Bug #21094 (Closed): Module#set_temporary_name does not affect a name of a nested module
- Wondering whether it's intentional and correct behaviour:
```ruby
m = Module.new
m::N = Module.new
p m::N.name # => "#<Module:0x000000010d0a00b0>::N"
m.set_temporary_name("foo")
p m::N.name # => "#<Module:0x000000010d0a00b0>::N... -
05:03 PM Bug #21088: TCPSocket.new raises Socket::ResolutionError instead of Errno::ECONNREFUSED for hosts defined in /etc/hosts
- Setting `Socket.tcp_fast_fallback = false` does fix the issue. I get `Errno::ECONNREFUSED` in that case.
```
[1] pry(main)> require "socket"
=> true
[2] pry(main)> TCPSocket.new("test_system", 12345)
Socket::ResolutionError: getaddrinf... -
02:06 PM Revision 4a06ef98 (git): Remove results workflow from modgc
- 12:20 PM Revision d3abee73 (git): Add fallback for `hostname` if `uname` isn't available. (#12655)
-
09:22 AM Revision baf22a05 (git): Remove rb_usascii_encoding for Parser
-
09:16 AM Bug #21093 (Closed): Backport patch for loongarch64 build
- https://github.com/ruby/ruby/pull/12653
-
08:46 AM Bug #21034: try to mark T_NONE object error after upgrading to 3.4.1
- Happy to see a gdb working with the crash 😊
travisbell (Travis Bell) wrote in #note-9:
> ```
> ...
It seems those error are more related to what is passed to `rp` ? https://github.com/ruby/ruby/blob/50e34fd7683ff77fae8c822096c8bf5f3ca12... -
06:42 AM Revision 50e34fd7 (git): Allow JSON::Fragment to be used even in strict mode
-
06:41 AM Revision 89e316ad (git): Introduce JSON::Coder
- Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
-
06:39 AM Revision 53cf2170 (git): [ruby/json] Update gemspec URIs
- https://github.com/ruby/json/commit/edd61b4a8b
-
06:39 AM Revision 77af41ea (git): [ruby/json] Add some JSON::Fragment documentation
- https://github.com/ruby/json/commit/dbcf614e50
-
06:37 AM Revision 53f0ebf9 (git): Ignore vendor folder for documentation just once
-
06:31 AM Revision b48febf2 (git): [rubygems/rubygems] Remove respond_to? check for Thread#name=
- Since bundler now requires 3.3.1, we no longer need to do respond_to?
check before setting thread name.
https://github.com/rubygems/rubygems/commit/bfc37fc7db -
06:31 AM Revision 9b2ebfc7 (git): [rubygems/rubygems] Fix bug report template incorrectly showing up
- If a gem has an internal error, that should not make `bundle console`
print the bug report template.
https://github.com/rubygems/rubygems/commit/7432a9a084 -
06:31 AM Revision 83b4de85 (git): [rubygems/rubygems] Remove unnecessary check
- At this point, `dep.autorequire` is always nil.
https://github.com/rubygems/rubygems/commit/0fb2b0a70a -
06:31 AM Revision 0e985e13 (git): [rubygems/rubygems] Remove unnecessary initialization
- This local variable is initialized later on in this file.
https://github.com/rubygems/rubygems/commit/5c15dbd210 -
06:31 AM Revision 6460777c (git): [rubygems/rubygems] Retry namespaced require using `retry`
- It's simpler.
https://github.com/rubygems/rubygems/commit/76f1e3bf05 -
06:31 AM Revision 7ae6aa0e (git): [rubygems/rubygems] Handle all `Bundle.require` exceptions at the same level
- https://github.com/rubygems/rubygems/commit/a5519f4f79
-
06:31 AM Revision d157aa7a (git): [rubygems/rubygems] Remove dead code
- LoadError is not a RuntimeError.
https://github.com/rubygems/rubygems/commit/4c67549722 -
06:31 AM Revision f6e7f533 (git): [rubygems/rubygems] Remove unnecessary `@autorequire` initialization
- It's initialized again later on.
https://github.com/rubygems/rubygems/commit/c3ddc81659 -
06:31 AM Revision d8394461 (git): [rubygems/rubygems] Support installing arm native gems on Windows
- https://github.com/rubygems/rubygems/commit/96496e3f53
Co-authored-by: Johnny Shields <johnny.shields@gmail.com> -
06:31 AM Revision 47888801 (git): [rubygems/rubygems] Reuse platform constants
- We need to move platform monkeypatching to happen earlier because
otherwise `Bundler::GemHelpers` will use the constants before they have
actually been defined.
https://github.com/rubygems/rubygems/commit/086c3438dc -
06:31 AM Revision 4035003f (git): [rubygems/rubygems] Remove duplicated `bundle install`
- https://github.com/rubygems/rubygems/commit/1774ac5db1
-
06:31 AM Revision 0603c1c6 (git): [rubygems/rubygems] Define `Bundler::SpecSet#to_s`
- For better debuggability.
https://github.com/rubygems/rubygems/commit/21d252fa7a -
06:31 AM Revision 10af7a6a (git): [rubygems/rubygems] Use RubyGems helpers for finding a non local tag for specs
- https://github.com/rubygems/rubygems/commit/a1d4ec1a3f
-
06:31 AM Revision 09b04fef (git): [rubygems/rubygems] Remove unnecessary platform helpers
- I think they add unnecessary indirection and inconsistency to the specs.
https://github.com/rubygems/rubygems/commit/609924d985 -
06:31 AM Revision 8ad78347 (git): [rubygems/rubygems] Remove unnecessary test code
- It's always going to be either the first or the second platform in the
list so no need to keep an explicit list of all platforms.
https://github.com/rubygems/rubygems/commit/5d3cdb3855 -
06:31 AM Revision 9c94b8fe (git): [rubygems/rubygems] Improve simulating Windows during Bundler specs
- https://github.com/rubygems/rubygems/commit/b48168bf1f
-
06:31 AM Revision 22359cda (git): [rubygems/rubygems] Refactor specs to use platform strings directly
- https://github.com/rubygems/rubygems/commit/d24c0c20e3
-
06:31 AM Revision c28ce760 (git): [rubygems/rubygems] Remove unnecessary mapping
- I don't think any supported platform has these names, so the mapping
should be unnecessary.
https://github.com/rubygems/rubygems/commit/6b1bdfc8a8 -
06:31 AM Revision 77b1b3be (git): [rubygems/rubygems] Fix typo
- https://github.com/rubygems/rubygems/commit/639b970c64
- 06:31 AM Revision 2dc870ed (git): [rubygems/rubygems] Bump the rb-sys group across 2 directories with 1 update
- Bumps the rb-sys group with 1 update in the /test/rubygems/test_gem_ext_cargo_builder/custom_name/ext/custom_name_lib directory: [rb-sys](https://github.com/oxidize-rb/rb-sys).
Bumps the rb-sys group with 1 update in the /test/rubygems/t... -
06:31 AM Revision 4de44cb0 (git): [rubygems/rubygems] RDoc is no longer a default gem in Ruby 3.5
- https://github.com/rubygems/rubygems/commit/0e889ae7fb
-
06:20 AM Revision 4c73c311 (git): Increased job number on Cygwin build
-
06:20 AM Revision daeac999 (git): Use the latest commit of ruby/syslog
-
06:20 AM Revision bfd5df0d (git): Try to extract bundled gems
-
01:53 AM Revision 92b87c49 (git): Use the latest versions of irb and reline
-
01:51 AM Bug #21092 (Assigned): error building ruby 3.4.1 on cygwin/msys2
- I could reproduce this.
https://github.com/ruby/ruby/actions/runs/13001828367/job/36261824250?pr=12649 -
12:42 AM Bug #20743: ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items
- https://github.com/ruby/ruby/pull/12642
- 12:36 AM Revision 46b544c5 (git): Prefer `uname -n` over `hostname`. (#12647)