Project

General

Profile

Activity

From 07/30/2023 to 08/05/2023

08/05/2023

10:40 PM Revision af13b038 (git): Remove unnecessarily copied document [ci skip]
nobu (Nobuyoshi Nakada)
05:30 PM Revision ac07d881 (git): [ruby/yarp] Add a Requirements section in Build System docs
https://github.com/ruby/yarp/commit/298025314c Eregon (Benoit Daloze)
05:30 PM Revision 489120f1 (git): [ruby/yarp] Small fixes to docs/build_system.md
https://github.com/ruby/yarp/commit/f9db0c282b
Co-authored-by: Mike Dalessio <[email protected]>
Eregon (Benoit Daloze)
05:30 PM Revision 11f10bb1 (git): [ruby/yarp] Clarify shared library
https://github.com/ruby/yarp/commit/0b174b76f1
Co-authored-by: Mike Dalessio <[email protected]>
Eregon (Benoit Daloze)
05:30 PM Revision 70ef66f2 (git): [ruby/yarp] Document the build system of YARP
https://github.com/ruby/yarp/commit/85ae0e2816 Eregon (Benoit Daloze)
02:07 PM Feature #19790: Optionally write Ruby crash reports into a file rather than STDERR
https://github.com/nobu/ruby/tree/bugreport_path
Implemented `%%`, `%e`, `%E`, `%f`, `%F`, `%p`, `%t` and `%NNN`(octal).
When invoking pipe, the string is split with white spaces first without quoting, `%040` would be useful to repre...
nobu (Nobuyoshi Nakada)
09:56 AM Revision 4e6861d3 (git): Fix `Gem::BUNDLED_GEMS.find_gem` return value
If the required name is different from the found gem name, return the
gem name, instead of true that means the required name is an exact gem
name.
nobu (Nobuyoshi Nakada)
03:50 AM Revision e176f841 (git): Just suppress a warning for non-Emscripten Wasm build
Revert "Revert "Skip calling jit_exec on Wasm""
This reverts commit 2e94610f70baca4af004202f288a6b5dd10889ca.
It's not about whether it's optimized away or not. I just don't want to
leave and maintain the callsite (e.g. signature) in t...
k0kubun (Takashi Kokubun)
03:12 AM Revision 2e94610f (git): Revert "Skip calling jit_exec on Wasm"
This reverts commit e80752f9bbc5228dba3066cd95a81e2e496bd9d7.
RJIT and YJIT are never enabled on Wasm. When both are disabled,
`jit_exec` is defined to return `Qundef` constantly, and is optimized
away.
nobu (Nobuyoshi Nakada)
02:39 AM Revision 4e7e9728 (git): Remove uneeded int2big property for Universal Parser
S_H_ (Shun Hiraoka)
01:32 AM Revision f07ef1d5 (git): Lrama v0.5.3
yui-knk (Kaneko Yuichiro)

08/04/2023

10:39 PM Revision e80752f9 (git): Skip calling jit_exec on Wasm
We often break Wasm build when we modify how jit_exec works. I'm
planning to modify it again soon.
We actually don't support running Ruby JIT on Wasm, so it doesn't seem
worth the maintenance effort.
k0kubun (Takashi Kokubun)
06:57 PM Revision 8d7861e3 (git): YJIT: expand bitwise shift support in x86 assembler (#8174)
maximecb (Maxime Chevalier-Boisvert)
05:13 PM Revision c4066af3 (git): [ruby/irb] Store integration tests' envs in an ivar
(https://github.com/ruby/irb/pull/668)
https://github.com/ruby/irb/commit/bbd20445ea
st0012 (Stan Lo)
02:29 PM Feature #19830: Allow `Array#transpose` to take an optional size argument
It doesn't feel elegant or concise to feed the element size to me.
For what use cases do you want it actually?
nobu (Nobuyoshi Nakada)
07:42 AM Feature #19830: Allow `Array#transpose` to take an optional size argument
nobu (Nobuyoshi Nakada) wrote in #note-1:
> Why not `ary.transpose[1]&.join`?
That avoids the exception but returns `nil` instead of taking advantage of `#join`’s knowledge of the “correct” result for an empty array, i.e. the empty s...
tomstuart (Tom Stuart)
01:14 AM Feature #19830: Allow `Array#transpose` to take an optional size argument
Why not `ary.transpose[1]&.join`? nobu (Nobuyoshi Nakada)
02:09 PM Revision fc0b2a8d (git): YJIT: guard for array_len >= num in expandarray (#8169)
Avoid generating long dispatch chains for all array lengths seen. maximecb (Maxime Chevalier-Boisvert)
01:13 PM Revision 61b76e74 (git): Revert "Tests to move between size pools are flaky on Windows too"
This reverts commit c5abe0d08f8f7686422e6eef374cf8c78aefacb6. peterzhu2118 (Peter Zhu)
01:13 PM Revision 4b45b276 (git): Don't check stack for moved after compaction
We don't need to check stack for moved objects after compaction because
the mutator cannot run between marking the stack and the end of
compaction. However, the stack may have moved objects leftover from
marking and sweeping phases. This...
peterzhu2118 (Peter Zhu)
12:12 PM Revision 6b570ff2 (git): Display call location with bundled gems warning
hsbt (Hiroshi SHIBATA)
12:12 PM Revision ae8fd392 (git): Fixed worng key of bundled_gems list
hsbt (Hiroshi SHIBATA)
12:12 PM Revision a0b695b4 (git): Also decorate warning message with future tense for bundler
hsbt (Hiroshi SHIBATA)
12:12 PM Revision ede3c5ee (git): Use future tense if current version is older than list version
hsbt (Hiroshi SHIBATA)
11:59 AM Revision 48f03522 (git): Fetch the last element only when not empty
Also `flag_keyword_hash` sets to 0 or a hash object. nobu (Nobuyoshi Nakada)
11:16 AM Revision 0dc0c24c (git): [ruby/irb] Fix IntegrationTestCase
(https://github.com/ruby/irb/pull/667)
https://github.com/ruby/irb/commit/79fc6dcf5f
st0012 (Stan Lo)
09:21 AM Bug #19831 (Open): warning message of linker with macOS Sonoma beta
Xcode 15 beta and macOS Sonoma beta show the following warnings with `make`
```
(snip)
linking miniruby
ld: warning: ignoring duplicate library '-lpthread'
miniruby: replacing existing signature
exe/ruby: replacing existing signa...
hsbt (Hiroshi SHIBATA)

08/03/2023

08:14 PM Revision 4f99240b (git): YJIT: add jb (unsigned less-than) instruction to backend (#8168)
maximecb (Maxime Chevalier-Boisvert)
08:09 PM Revision 98b4256a (git): YJIT: handle expandarray_rhs_too_small case (#8161)
* YJIT: handle expandarray_rhs_too_small case
YJIT: fix csel bug in x86 backend, add test
Remove commented out lines
Refactor expandarray to use chain guards
Propagate Type::Nil when known
Update yjit/src/codegen.rs
Co-authored-by:...
maximecb (Maxime Chevalier-Boisvert)
06:52 PM Revision 132f0971 (git): No computing embed_capa_max in str_subseq
Fix str_subseq so that it does not attempt to predict the size of the
object returned by str_alloc_heap.
wks (Kunshan Wang)
05:42 PM Feature #19830 (Open): Allow `Array#transpose` to take an optional size argument
One benefit of supplying an initial value to `Enumerable#inject` is that it avoids an annoying edge case when the collection is empty:
```
>> [1, 2, 3].inject(:+)
=> 6 # good
> ...
=> nil # bad
>> [].inject(0, :+)
=> 0 # good...
tomstuart (Tom Stuart)
04:55 PM Revision b35a2223 (git): gdb.py: Support dumping a dummy frame [ci skip]
k0kubun (Takashi Kokubun)
03:12 PM Revision c65856d4 (git): Remove unneeded function prototype
Function prototype for gc_mode_transition is not needed as it's not
used before the implementation.
peterzhu2118 (Peter Zhu)
02:27 PM Feature #19325: YJIT: Windows support lacking.
Hello @tamaron. There is no update as of yet. One of the challenges is that it's not easy for us to have access to windows machines, it would be kind of a pain for us to debug things in a VM. This would also add complexity to our CI test... maximecb (Maxime Chevalier-Boisvert)
10:27 AM Feature #19325: YJIT: Windows support lacking.
Hello, any progress here?
I am very new to the Ruby community but interested in working on this.
tamaron (Raiki Tamura)
12:34 PM Revision aeff3116 (git): No computing embed_capa_max in ary_make_partial
ary_make_partial now uses the actual embed_capa of an allocated heap
array to guide whether make an embedded copy or a slice view.
wks (Kunshan Wang)
10:45 AM Bug #19829 (Closed): Enumerator.product called with keyword arguments raises exception with not precise message
The `Enumerator.product` method, added in Ruby 3.2, when it's called with keyword arguments (but it expects only a list of enums) raises `unknown keyword: ... (ArgumentError)` exception:
```ruby
Enumerator.product([], a: 1)
# (irb):...
andrykonchin (Andrew Konchin)
08:14 AM Bug #19792: arm の alpine 上でネストしたハッシュに長い文字列を入れると segmentation fault が発生する
以下の環境でも再現しました
- Docker version 24.0.2, build cb74dfc
- M1 Max
- Ventura 13.5
willnet (Shinichi Maeshima)
04:43 AM Revision 5336b2f0 (git): Move a local variable declaration after the protected region
nobu (Nobuyoshi Nakada)
04:17 AM Revision 8f2bbbbc (git): Add assertion in `RHASH_AR_TABLE_BOUND`
nobu (Nobuyoshi Nakada)
12:51 AM Revision fe977314 (git): Check if reader members are set
nobu (Nobuyoshi Nakada)
12:11 AM Revision 4b6c5840 (git): Remove --disable-gems for assert_separately
assert_separately adds --disable=gems so we don't need to add
--disable-gems when calling assert_separately.
peterzhu2118 (Peter Zhu)

08/02/2023

11:43 PM Revision 29fd0503 (git): * remove trailing spaces. [ci skip]
git[bot]
11:43 PM Revision 192ed8e7 (git): gdb.py: Add -a option to dump all frames [ci skip]
k0kubun (Takashi Kokubun)
11:25 PM Bug #19828 (Closed): Segfault when `OpenSSL::X509::Certificate#public_key=` is given a `OpenSSL::PKey::DH` object
The OpenSSL bindings cause a SegFault when creating a new OpenSSL::X509::Certificate object and setting it's `public_key` to the `public_key` of a new `OpenSSL::PKey::DH` key-pair.
### Steps To Reproduce
```ruby
#!/usr/bin/env rub...
postmodern (Hal Brodigan)
11:23 PM Revision 5f5cc22b (git): gdb.py: Print Env based on EP instead of BP
because EP could be escaped. k0kubun (Takashi Kokubun)
09:26 PM Feature #19572: Add a new TracePoint event for rescued exceptions
@ko1 Thank you! st0012 (Stan Lo)
06:35 PM Revision 32e828bb (git): [ruby/irb] Deprecate multi-irb commands
(https://github.com/ruby/irb/pull/654)
* Deprecate multi-irb commands
- Print deprecated message when any of the commands are used
- Put related commands under `Multi-irb` category with a deprecated
label
* Update readme
https://gi...
st0012 (Stan Lo)
06:33 PM Revision 8ecd300e (git): [ruby/irb] Extract integration testing helpers out of debug command
tests
(https://github.com/ruby/irb/pull/660)
The ability to run a test case in a subprocess is useful for testing
many other features, like nested IRB sessions. So I think it's worth
extracting them into a new test case class.
https://...
st0012 (Stan Lo)
04:53 PM Revision dc54574a (git): Update to ruby/spec@9e278f5
Eregon (Benoit Daloze)
03:33 PM Revision e20f1e44 (git): YJIT: Fallback setivar if the receiver isn't T_OBJECT (#8160)
Followup: https://github.com/ruby/ruby/pull/8152
If the receiver is a T_MODULE or T_CLASS and has a lot of
ivars, `get_next_shape_internal` will return `NULL`.
Co-authored-by: Jean Boussier <[email protected]>
Jean byroot Boussier
03:13 PM Revision 3c41a04b (git): Fix encoding switches when RUBYOPT is empty or only spaces
* Follow-up of dbbc3583ba432c279f07b1fa0afb0a8a9ba50c91 which broke this. Eregon (Benoit Daloze)
02:55 PM Revision a502cd80 (git): Fix wrong assignment
nobu (Nobuyoshi Nakada)
02:19 PM Revision 81c198b5 (git): YJIT: Distinguish exit and fallback reasons for send (#8159)
k0kubun (Takashi Kokubun)
02:16 PM Revision 452debba (git): YJIT: Fix --yjit-dump-disasm coloring on less(1) (#8158)
k0kubun (Takashi Kokubun)
02:15 PM Revision d405410e (git): YJIT: Move ROBJECT_OFFSET_* to yjit.c (#8157)
k0kubun (Takashi Kokubun)
01:32 PM Bug #19795: attr_accessor leading to nil values for re-assignment
I got it in the end thanks to a peer. I misunderstood wrongly how this was working:
Running the following snippet helped me understand:
```ruby
# attr_accessor_nil.rb
class A
attr_accessor :a
def initialize
@a = 0
...
francktrouillez (Franck Trouillez)
12:55 PM Bug #19795: attr_accessor leading to nil values for re-assignment
I guess that it is a local variable, but is it the expected behavior?
As a developer, I expect that I can access `a` without the `self.a`.
Since the following code works as expected without `self`:
```ruby
# attr_accessor_nil.rb
class...
francktrouillez (Franck Trouillez)
12:42 PM Bug #19795 (Closed): attr_accessor leading to nil values for re-assignment
This is an assignment to the local variable, not the accessor.
```ruby
a += 1
```
You have to write:
```ruby
self.a += 1
```
nobu (Nobuyoshi Nakada)
12:21 PM Bug #19795 (Closed): attr_accessor leading to nil values for re-assignment
### Steps to reproduce:
- Create a class with an `attr_accessor` for an instance variable
- Create an instance method that reassign this variable using the current value stored in the variable
- Show that the variable is set to nil du...
francktrouillez (Franck Trouillez)
01:08 PM Bug #19793 (Closed): Segmentation fault when requiring files after defining Object#method_missing
Applied in changeset commit:git|1d096c1e53581ed9fe94694c9760babd1e12e580.
----------
Fix crash in NoMethodError for dummy frames
[Bug #19793]
Dummy frames are created at the top level when requiring another file.
While requiring a fil...
peterzhu2118 (Peter Zhu)
01:08 PM Revision 1d096c1e (git): Fix crash in NoMethodError for dummy frames
[Bug #19793]
Dummy frames are created at the top level when requiring another file.
While requiring a file, it will try to convert using encodings. Some of
these encodings will not respond to to_str. If method_missing is
redefined on Ob...
peterzhu2118 (Peter Zhu)
10:55 AM Revision 85ee4a65 (git): Allow to override environment variables for debug
nobu (Nobuyoshi Nakada)
10:55 AM Revision ffe0f9eb (git): `EnvUtil.invoke_ruby` also passes ASAN options
nobu (Nobuyoshi Nakada)
09:56 AM Revision 28c21367 (git): [rubygems/rubygems] Replaced remained local to lockfile
https://github.com/rubygems/rubygems/commit/6ed69223d4 hsbt (Hiroshi SHIBATA)
09:18 AM Revision fd8dd719 (git): Implement StringIO#pread (#56)
Both for being closer to real IOs and also because it's a convenient API
in multithreaded scenarios.
Co-authored-by: Jean Boussier <[email protected]>
Jean byroot Boussier
09:17 AM Revision 201fd575 (git): [ruby/irb] Drop src_encoding.rb
(https://github.com/ruby/irb/pull/634)
Its method `IRB.default_src_encoding` was only used in `magic-file.rb`,
which has been removed.
https://github.com/ruby/irb/commit/ed98983b1f
st0012 (Stan Lo)
09:17 AM Revision fe255277 (git): [ruby/fiddle] Include stdbool.h explicitly
https://github.com/ruby/fiddle/commit/c313a74632 Sutou Kouhei
09:17 AM Revision 673f4493 (git): [ruby/fiddle] Include stdbool.h explicitly
https://github.com/ruby/fiddle/commit/69ff680bf6 Sutou Kouhei
09:17 AM Revision 15e8cf7a (git): [ruby/fiddle] Add support for bool
GitHub: fix https://github.com/ruby/fiddle/pull/130
Reported by Benoit Daloze. Thanks!!!
https://github.com/ruby/fiddle/commit/bc6c66bbb9
Sutou Kouhei
09:17 AM Revision 10588fa1 (git): [ruby/fiddle] Use ifdef
https://github.com/ruby/fiddle/commit/6cdf53726d Sutou Kouhei
05:25 AM Revision fd782dcd (git): Revert "YJIT: implement `expandarray_rhs_too_small` case (#8153)"
This reverts commit 3b88a0bee841aee77bee306d9d34e587561515cf.
This commit break aarch64 platform and Apple Silicon
hsbt (Hiroshi SHIBATA)
05:19 AM Revision c5abe0d0 (git): Tests to move between size pools are flaky on Windows too [ci skip]
Needs more investigations. nobu (Nobuyoshi Nakada)
05:08 AM Bug #19794 (Assigned): Ruby 3.2.2 fails to build on macOS Sonoma betas
With Big Sur, Apple deprecated putting dylibs in /usr/local/lib. In Sonoma (beta 4), this directory has disappeared completely. However, ruby's configure script depends on its existence. So, virtually every ruby installer (RVM, rbenv, as... jhaungs (Jim Haungs)
04:48 AM Revision e4fcac42 (git): Find paths of tools [ci skip]
Recent GitHub Actions Windows containers seem having Strawberry tools. nobu (Nobuyoshi Nakada)
04:21 AM Revision 15b2e912 (git): Remove `kprintf` in addr2line.c
According to @naruse, this `kprintf` was to avoid some segfaults, but
turned out it seemed another issue after all.
nobu (Nobuyoshi Nakada)
04:21 AM Revision 31d12267 (git): Avoid aborting inside addr2line.c
nobu (Nobuyoshi Nakada)

08/01/2023

11:22 PM Bug #19793: Segmentation fault when requiring files after defining Object#method_missing
thanks, you all are fast :) sczimmer (Scott Zimmermann)
09:03 PM Bug #19793: Segmentation fault when requiring files after defining Object#method_missing
Thank you for reporting this bug.
The following script is a minimal reproduction:
```ruby
GC.stress = true
class Object
public :method_missing
end
File.write("/tmp/empty.rb", "")
require "/tmp/empty.rb"
```
I have a...
peterzhu2118 (Peter Zhu)
06:32 PM Bug #19793: Segmentation fault when requiring files after defining Object#method_missing
So instead of `99130.times { array << "a string"}` you can just add `GC.start` and it will also crash.
I also tested it's still failing on master. I'll see if this can be reduced.
byroot (Jean Boussier)
04:08 PM Bug #19793 (Closed): Segmentation fault when requiring files after defining Object#method_missing
I was doing ruby koans to learn ruby and I got a segmentation fault when it gets to the part where it uses `Symbol.all_symbols`. I realized it happens with any large Array, but I cannot reproduce in a small test script, just when it runs... sczimmer (Scott Zimmermann)
10:36 PM Revision df6071c4 (git): Do not auto-cancel builds on pull requests
For some reason, there was a pull request that contains a YJIT change
but did not run Cirrus CI, which ended up failing Cirrus CI on master.
This `auto_cancellation` config seems suspicious. Now that we have
`only_if`, I don't think we ...
k0kubun (Takashi Kokubun)
09:46 PM Revision 5ff1c00e (git): YJIT: Let local yjit-bindgen exit successfully (#8156)
k0kubun (Takashi Kokubun)
07:58 PM Revision 3b88a0be (git): YJIT: implement `expandarray_rhs_too_small` case (#8153)
* YJIT: handle expandarray_rhs_too_small case
* YJIT: fix csel bug in x86 backend, add test
* Remove commented out lines
maximecb (Maxime Chevalier-Boisvert)
06:43 PM Revision 16b91a34 (git): YJIT: Fallback setivar if the next shape is too complex (#8152)
k0kubun (Takashi Kokubun)
03:31 PM Bug #19791: Debugger does not handle delete key correctly
I just did `gem install reline` and upgraded it to 0.3.7, but the problem persists. stuartb (Stuart Bury)
03:29 PM Bug #19791: Debugger does not handle delete key correctly
`gem list` gives the following output:
```
*** LOCAL GEMS ***
abbrev (default: 0.1.1)
addressable (2.8.4)
angelo (0.5.1)
base64 (default: 0.1.1)
benchmark (default: 0.2.1)
bigdecimal (default: 3.1.3)
bundler (default: 2.4.17)
byebug (1...
stuartb (Stuart Bury)
02:52 PM Bug #19791: Debugger does not handle delete key correctly
Can you tell me what version of `debug` and `Reline` you are using? Using the latest version of `Reline` may solve the problem. ima1zumi (Mari Imaizumi)
01:49 PM Revision 1642e0c3 (git): Remove unnecessarily copied document [ci skip]
nobu (Nobuyoshi Nakada)
01:46 PM Feature #19572 (Closed): Add a new TracePoint event for rescued exceptions
Applied in changeset commit:git|d68c01fd314ebd6dc1d89c95a2734fad4f0953b0.
----------
support `rescue` event for TracePoint
fix [Feature #19572]
ko1 (Koichi Sasada)
01:46 PM Revision d68c01fd (git): support `rescue` event for TracePoint
fix [Feature #19572] ko1 (Koichi Sasada)
12:51 PM Revision f11ac063 (git): [ruby/irb] Add workspace category
(https://github.com/ruby/irb/pull/661)
* Create a new Workspace command category
* Update readme
https://github.com/ruby/irb/commit/310650c213
st0012 (Stan Lo)
10:00 AM Bug #19788 (Closed): Ripper returns a symbol instead of a token as operator for "::"
Applied in changeset commit:git|382678d4112f4afc6272244c22924d2b004274b1.
----------
[Bug #19788] Use the result of `tCOLON2` event
nobu (Nobuyoshi Nakada)
10:00 AM Revision 382678d4 (git): [Bug #19788] Use the result of `tCOLON2` event
nobu (Nobuyoshi Nakada)
09:06 AM Revision 6a5c5482 (git): remove strange line event
```ruby
def helper_cant_rescue
begin
raise SyntaxError
rescue
cant_rescue # here
end
end
```
on this case, a line event is reported on `cant_rescue` line
because of node structure. it should not be reported.
ko1 (Koichi Sasada)
05:54 AM Revision 0622c788 (git): [DOC] Update warning categories
- Fix indentations of labeled lists.
- Mention performance category.
nobu (Nobuyoshi Nakada)
05:24 AM Bug #19792: arm の alpine 上でネストしたハッシュに長い文字列を入れると segmentation fault が発生する
k0kubun (Takashi Kokubun) wrote in #note-1:
> 私の手元の環境では再現させられないのですが、 `[BUG]` の出力を全行、最初から最後まで省略しないで投稿していただくことは可能でしょうか? `c:0001 p:0000 s:0003 E:000da0 DUMMY [FINISH]` で出力が停止してしまっていた場合は、そのように明示していただけると助かります。
早速ご確認いただきありがとうございます。
下記が出力...
koke2y (優樹 纐纈)
04:58 AM Bug #19792: arm の alpine 上でネストしたハッシュに長い文字列を入れると segmentation fault が発生する
私の手元の環境では再現させられないのですが、 `[BUG]` の出力を全行、最初から最後まで省略しないで投稿していただくことは可能でしょうか? `c:0001 p:0000 s:0003 E:000da0 DUMMY [FINISH]` で出力が停止してしまっていた場合は、そのように明示していただけると助かります。 k0kubun (Takashi Kokubun)
04:52 AM Bug #19792 (Closed): arm の alpine 上でネストしたハッシュに長い文字列を入れると segmentation fault が発生する
## 実行環境
Docker version: Docker version 24.0.2, build cb74dfc
Docker image: ruby:3.2.2-alpine3.18
ホスト環境
- chip: Apple M2 Max
- OS version: Version 13.4
## 発生した事象
上記の環境で下記のスクリプトを実行すると、segmentation faultが発生しました。
```
str = 'a'...
koke2y (優樹 纐纈)
01:44 AM Revision 533dcb8e (git): RDoc for module Process (#8141)
burdettelamar (Burdette Lamar)
12:48 AM Revision 0b8045c9 (git): Supress warnings by Refinement#refined_class in test code
shugo (Shugo Maeda)
12:31 AM Revision de91ce98 (git): [rubygems/rubygems] Use Kernel.singleton_class
https://github.com/rubygems/rubygems/commit/9be984f281 hsbt (Hiroshi SHIBATA)
12:27 AM Revision 3f010d48 (git): [DOC] Fix a link [ci skip]
znz (Kazuhiro NISHIYAMA)
12:27 AM Bug #19789 (Closed): YJIT + rustc 1.71.0 is broken with macOS
Thanks. I confirmed to work with https://github.com/ruby/ruby/pull/8146 hsbt (Hiroshi SHIBATA)
12:02 AM Revision ec0e6809 (git): Skip flaky test on Solaris
This test is flaky on "SPARC Solaris 10 (gcc)" CI with this message:
TestGCCompact#test_moving_objects_between_size_pools [test/ruby/test_gc_compact.rb:378]:
Expected 499 to be >= 500.
peterzhu2118 (Peter Zhu)

07/31/2023

08:15 PM Bug #19791 (Closed): Debugger does not handle delete key correctly
When entering the debugger using `binding.debugger` or the `rdbg` command, pressing the delete key on the keyboard to delete characters at the REPL merely prints "^[[3~" to the console, and does not actually delete anything. This is **ve... stuartb (Stuart Bury)
08:10 PM Revision 04f4e0ae (git): [ruby/yarp] Document building, more macro changes
https://github.com/ruby/yarp/commit/4214f262d2 kddnewton (Kevin Newton)
07:57 PM Revision 5d78ec8a (git): [ruby/irb] Decouple `edit` and `show_source` commands
(https://github.com/ruby/irb/pull/658)
* Decouple `edit` command from `show_source`
2 commands should not depend on each other. If `edit` command also needs
to find a source, the source finding logic should be extracted into a
separate...
st0012 (Stan Lo)
07:12 PM Revision c01b17f7 (git): Fix default value of global_init_slots
Not setting a value to global_init_slots causes get_envparam_size to
output a broken default value.
peterzhu2118 (Peter Zhu)
06:56 PM Revision 954b7ac8 (git): addr2line.c: fix `DW_FORM_ref_addr` parsing for DWARF 2 (#8146)
addr2line.c: fix DW_FORM_ref_addr parsing for DWARF 2
This fixes a crash when retrieving backtrace info with YJIT enabled on
macOS with Rust 1.71.0. Since Rust 1.71.0, the DWARF info generated by
the Rust compiler uses DW_FORM_ref_addr ...
katei (Yuta Saito)
06:52 PM Revision 36d669b7 (git): Fix test_gc_parameter_init_slots
If the stack is not cleared (e.g. compiling with -O0), then `ary` could
remain on the stack, which would be marked. Clear the array first to
make sure all the objects can be GC'd.
peterzhu2118 (Peter Zhu)
04:47 PM Revision 8b390a45 (git): [DOC] Update description of `Process.daemon` arguments
These arguments can only be `true` or `false` now. Also add markups. nobu (Nobuyoshi Nakada)
03:46 PM Revision 547d2378 (git): Assert that at least one element has been embedded
It's not guaranteed that the first element will always be embedded. peterzhu2118 (Peter Zhu)
03:46 PM Revision b98838b6 (git): Store initial slots per size pool
This commit stores the initial slots per size pool, configured with
the environment variables `RUBY_GC_HEAP_INIT_SIZE_%d_SLOTS`. This
ensures that the configured initial slots remains a low bound for the
number of slots in the heap, whic...
peterzhu2118 (Peter Zhu)
03:17 PM Bug #19789: YJIT + rustc 1.71.0 is broken with macOS
I made a fix for this issue: https://github.com/ruby/ruby/pull/8146 katei (Yuta Saito)
11:03 AM Bug #19789 (Closed): YJIT + rustc 1.71.0 is broken with macOS
I got some segmentation fault on macOS.
```
1) Failure:
TestVMDump#test_darwin_invalid_call [/Users/hsbt/Documents/github.com/ruby/ruby/test/ruby/test_vm_dump.rb:11]:
pid 35071 exit 1
| -e:1: [BUG] Bus Error at 0x0000000000000001
...
hsbt (Hiroshi SHIBATA)
02:50 PM Feature #19787: Add Enumerable#uniq_map, Enumerable::Lazy#uniq_map, Array#uniq_map and Array#uniq_map!
joshuay03 wrote:
> What is the usual process for deciding on whether or not to accept a feature?
Ultimately you only have to convince matz. :)
However had, matz may also request additional information and/or use case and
"usefu...
rubyFeedback (robert heiler)
02:22 PM Feature #19787: Add Enumerable#uniq_map, Enumerable::Lazy#uniq_map, Array#uniq_map and Array#uniq_map!
joshuay03 (Joshua Young) wrote in #note-4:
> > Is `.map { ... }.uniq` such a very frequent idiom?
> ...
Wouldn’t it make more sense, then, to do `uniq { … }.map { … }`? Yes, there’s a *small* bit of extra code, but it means that you’re i...
austin (Austin Ziegler)
10:13 AM Feature #19787: Add Enumerable#uniq_map, Enumerable::Lazy#uniq_map, Array#uniq_map and Array#uniq_map!
mame (Yusuke Endoh) wrote in #note-3:
> Is `.map { ... }.uniq` such a very frequent idiom?
I work on a Rails codebase and it's most commonly used to iterate through foreign keys / associated records and get the unique values (quite oft...
joshuay03 (Joshua Young)
08:40 AM Feature #19787: Add Enumerable#uniq_map, Enumerable::Lazy#uniq_map, Array#uniq_map and Array#uniq_map!
It does not make sense to me to provide `.foo_map { ... }` for all patterns like `.map { ... }.foo`.
`flat_map` was introduced for some reasons: https://blade.ruby-lang.org/ruby-core/26287
Is `.map { ... }.uniq` such a very frequen...
mame (Yusuke Endoh)
02:23 PM Revision 1bda22f5 (git): `Refinement#refined_class` is now deprecated
nobu (Nobuyoshi Nakada)
02:05 PM Feature #19790 (Closed): Optionally write Ruby crash reports into a file rather than STDERR
### Use case
On our servers we set [`/proc/sys/kernel/core_pattern`](https://man7.org/linux/man-pages/man5/core.5.html) to point to a small utility that report all the crashes happening in production with the associated core dump into...
byroot (Jean Boussier)
01:17 PM Revision d42b9ffb (git): Reuse Regexp ptr when recompiling
When matching an incompatible encoding, the Regexp needs to recompile.
If `usecnt == 0`, then we can reuse the `ptr` because nothing else is
using it. This avoids allocating another `regex_t`.
This speeds up matches that switch to incom...
peterzhu2118 (Peter Zhu)
12:30 PM Bug #19436: Call Cache for singleton methods can lead to "memory leaks"
> 36023d5cb751d62fca0c27901c07527b20170f4d - mark cc->cme_ if it is for super
for this SEGV. But other patches can be required.
ko1 (Koichi Sasada)
11:57 AM Bug #19436: Call Cache for singleton methods can lead to "memory leaks"
@ko1 I don't see any more failures, thank you very much.
So overall the patch is all these commits?
```
c330037c1a38cc257dbe21022fcc7b13159c2821 - cc->cme should not be marked.
6391132c03ac08da0483adb986ff9a54e41f9e14 - fix typo...
byroot (Jean Boussier)
11:07 AM Bug #19436: Call Cache for singleton methods can lead to "memory leaks"
Thanks,
Could you try current master (I hope it was fixed).
ko1 (Koichi Sasada)
08:36 AM Bug #19436: Call Cache for singleton methods can lead to "memory leaks"
@ko1 of course, here you go:
```
Assertion Failed: vm_callinfo.h:339:vm_cc_class_check:cc->klass == 0 || RB_TYPE_P(cc->klass, T_CLASS) || RB_TYPE_P(cc->klass, T_ICLASS)
ruby 3.3.0dev (2023-07-30T08:05:58Z shopify b5c74d5488) [x86_64...
byroot (Jean Boussier)
08:23 AM Feature #19714 (Closed): Add Refinement#refined_module
Applied in changeset commit:git|a542512b7c394847a488e9b94d9defebe26003ce.
----------
Add Refinement#target and deprecate Refinement#refined_class
[Feature #19714]
shugo (Shugo Maeda)
08:23 AM Revision a542512b (git): Add Refinement#target and deprecate Refinement#refined_class
[Feature #19714] shugo (Shugo Maeda)
08:13 AM Bug #18572 (Closed): Performance regression when invoking refined methods
Applied in changeset commit:git|cfd7729ce7a31c8b6ec5dd0e99c67b2932de4732.
----------
use inline cache for refinements
From Ruby 3.0, refined method invocations are slow because
resolved methods are not cached by inline cache because of...
ko1 (Koichi Sasada)
08:13 AM Revision cfd7729c (git): use inline cache for refinements
From Ruby 3.0, refined method invocations are slow because
resolved methods are not cached by inline cache because of
conservertive strategy. However, `using` clears all caches
so that it seems safe to cache resolved method entries.
Thi...
ko1 (Koichi Sasada)
08:13 AM Revision 280419d0 (git): `calling->cd` instead of `calling->ci`
`struct rb_calling_info::cd` is introduced and `rb_calling_info::ci`
is replaced with it to manipulate the inline cache of iseq while
method invocation process. So that `ci` can be acessed with
`calling->cd->ci`. It adds one indirection ...
ko1 (Koichi Sasada)
06:59 AM Revision e40f8bbd (git): Update bundled gems list at 2023-07-31
git[bot]
06:25 AM Revision a3c0e9d9 (git): [rubygems/rubygems] update Magnus library in Rust extension gem template
https://github.com/rubygems/rubygems/commit/19a92a3367 Mat Sadler
05:04 AM Revision 36023d5c (git): mark `cc->cme_` if it is for `super`
`vm_search_super_method()` makes orphan CCs (they are not connected
from ccs) and `cc->cme_` can be collected before without marking.
ko1 (Koichi Sasada)
03:26 AM Revision 60ac719a (git): [ruby/optparse] [DOC] Corrections to tutorial
https://github.com/ruby/optparse/commit/2940dbb65a burdettelamar (Burdette Lamar)
02:46 AM Bug #19788: Ripper returns a symbol instead of a token as operator for "::"
https://github.com/ruby/ruby/pull/8144 nobu (Nobuyoshi Nakada)

07/30/2023

06:13 PM Bug #19788 (Closed): Ripper returns a symbol instead of a token as operator for "::"
```ruby
require 'ripper'
class BasicParser < Ripper
EVENTS.each do |event|
module_eval(<<~RUBY, __FILE__, __LINE__ + 1)
def on_#{event}(*args)
puts "#{event}(\#{args.inspect})"
args.unshift :#{event}
...
thyresias (Thierry Lambert)
10:38 AM Revision 52722ea3 (git): Extract common variables
nobu (Nobuyoshi Nakada)
06:13 AM Revision b5c74d54 (git): Ease the `Encoding::CompatibilityError` test failure
At the time this test first started using `assert_raise_with_message`,
it did not touch `Encoding.default_internal`.
nobu (Nobuyoshi Nakada)
02:35 AM Revision dfad14d8 (git): [ruby/optparse] [DOC] Mark up constant and method names as code
https://github.com/ruby/optparse/commit/e8bee0be8f nobu (Nobuyoshi Nakada)
01:37 AM Revision 67be453d (git): [rubygems/rubygems] Set thread configurations inside block in the thread local manner
https://github.com/rubygems/rubygems/commit/965e54b8f1 nobu (Nobuyoshi Nakada)
01:36 AM Revision 0d86cc4c (git): [rubygems/rubygems] Use the dedicated method to convert file path
The dedicated method `File.path` to deal with pathname-like objects
has been provided since ruby 1.9.0.
Also adds a test for rubygems/rubygems#6837.
https://github.com/rubygems/rubygems/commit/258c6eda80
nobu (Nobuyoshi Nakada)
01:14 AM Revision bde4080b (git): YJIT: Drop Copy trait from Context (#8138)
k0kubun (Takashi Kokubun)
 

Also available in: Atom