Project

General

Profile

Activity

From 07/19/2023 to 07/25/2023

07/25/2023

11:51 PM Revision 6500f859 (git): Added Gem::BUNDLED_GEMS for warning feature of Bundler
hsbt (Hiroshi SHIBATA)
11:07 PM Bug #19738: `ObjectSpace.each_object.to_a` crashes in `make runirb`.
I found a bug in `PP` when call `PP.pp(Thread.current[:__recursive_key__], ''.dup)` and this resolved the problem with `ObjectSpace.each_object.to_a` to me.
[Link of PR](https://github.com/ruby/pp/pull/15)
marcelojr63 (Marcelo Marcinio Pereira Junior)
10:46 PM Revision 14691d39 (git): Revert "GitHub Actions: fix ENOENT for jobs running in forks"
Revert b106cf2eef574535fa2a069493235b00d679d20a.
Sorry, it didn't actually fix the problem. See for example:
https://github.com/peterzhu2118/ruby/actions/runs/5659386206/job/15332833836
The plot thickens.
alanwu (Alan Wu)
06:33 PM Revision d8cee550 (git): [ruby/irb] Display `show_cmds`'s output in a pager when in TTY
environment
(https://github.com/ruby/irb/pull/647)
This can:
- Make it easier to scroll up and down the commands list
- Avoid pushing up users' previous output
- Allow users to do basic search with `/<word>`
https://github.com/ruby/ir...
st0012 (Stan Lo)
06:29 PM Feature #19785 (Closed): Deprecate `RUBY_GC_HEAP_INIT_SLOTS`
GitHub PR: https://github.com/ruby/ruby/pull/8147
The `RUBY_GC_HEAP_INIT_SLOTS` environment variable is replaced by
`RUBY_GC_HEAP_INIT_SIZE_%d_SLOTS` (introduced in commit
[3ab3455](https://github.com/ruby/ruby/commit/3ab34551450c7a...
peterzhu2118 (Peter Zhu)
05:20 PM Bug #19781 (Closed): Stack consistency error with tailcall and YJIT enabled
Applied in changeset commit:git|e1104017e3080fd432c0b5fdc3ae6e004ffd0834.
----------
YJIT: Fix cfp inconsistency on tailcall (#8107)
[Bug #19781]
k0kubun (Takashi Kokubun)
05:20 PM Revision e1104017 (git): YJIT: Fix cfp inconsistency on tailcall (#8107)
[Bug #19781] k0kubun (Takashi Kokubun)
11:58 AM Bug #19751: Ruby 3.2.2 Fails to Compile from Source
Thank you very much @nobu. Allow me to confirm that with this patch I have successfully built Ruby on the systems it was not building on previously. Kagetsuki (零 影月)
10:30 AM Bug #19751 (Closed): Ruby 3.2.2 Fails to Compile from Source
Applied in changeset commit:git|99162dee7aa478d8a65f028b098bdaa69e1ecad5.
----------
[Bug #19751] Remove linemarkers in middle
nobu (Nobuyoshi Nakada)
07:18 AM Bug #19751: Ruby 3.2.2 Fails to Compile from Source
https://github.com/ruby/ruby/pull/8115 nobu (Nobuyoshi Nakada)
07:07 AM Bug #19751 (Assigned): Ruby 3.2.2 Fails to Compile from Source
nobu (Nobuyoshi Nakada)
11:53 AM Bug #19025: Ripper cannot parse syntax ok code that has numbered parameters
ruby_3_1 e55dde3bdddbc595be12e7184a23e729647eb989 merged revision(s) 91c004885fc75a93cadf0094fa86ec3bd0ec25f5. usa (Usaku NAKAMURA)
11:53 AM Revision e55dde3b (git): merge revision(s) 91c004885fc75a93cadf0094fa86ec3bd0ec25f5: [Backport #19025]
[Bug #19025] Numbered parameter names are always local variables
---
parse.y | 2 +-
test/ruby/test_syntax.rb | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
U.Nakamura
11:38 AM Bug #19602: `PLATFORM_GET_INC` is broken unless unaligned word access is allowed
ruby_3_1 aac3232ab09f649c5de86a1ef7b942de3cc218ce merged revision(s) fac814c2dc31afef272b45392a7389ef0bfa3a4f. usa (Usaku NAKAMURA)
11:37 AM Revision aac3232a (git): merge revision(s) fac814c2dc31afef272b45392a7389ef0bfa3a4f: [Backport #19602]
Fix `PLATFORM_GET_INC`
On platforms where unaligned word access is not allowed, and if
`sizeof(val)` and `sizeof(type)` differ:
- `val` > `type`, `val` will be a garbage.
- `val` < `type`, outside `val` ...
U.Nakamura
11:30 AM Bug #19084: Using `IO::Buffer` to change an extended String affects other Strings sharing the same buffer
ruby_3_1 3799270ec27b1267cd9923dae00bcb3955f7e061 merged revision(s) bd786e78969f9d4a8699376ceafe10934b6ad533. usa (Usaku NAKAMURA)
11:29 AM Revision 3799270e (git): merge revision(s) bd786e78969f9d4a8699376ceafe10934b6ad533: [Backport #19084]
Fix mutation on shared strings. (#7837)
---
io_buffer.c | 19 ++++++++++++-------
test/ruby/test_io_buffer.rb | 4 ----
2 files changed, 12 insertions(+), 11 deletions(-)
U.Nakamura
11:18 AM Bug #19543: Resizing IO::Buffer to zero bytes fails
ruby_3_1 e7c94d9d1d2bdbf396c489d1dc653c771f59bb92 merged revision(s) 09295ea796900fb7b05d29e93364090e21598566. usa (Usaku NAKAMURA)
11:18 AM Revision e7c94d9d (git): merge revision(s) 09295ea796900fb7b05d29e93364090e21598566: [Backport #19543]
IO::Buffer#resize: Free internal buffer if new size is zero (#7569)
`#resize(0)` on an IO::Buffer with internal buffer allocated will
result in calling `realloc(data->base, 0)`. The behavior of `realloc`
with siz...
U.Nakamura
11:13 AM Bug #19318: Float#round rounds incorrectly for some cases
hmmm, the potential impact it could have on existing scripts, I feel like this should be kept as a feature of sorts in stable branch...
sorry. but thanks for letting me know.
usa (Usaku NAKAMURA)
11:06 AM Bug #19394: cvars in instance of cloned class point to source class's cvars even after class_variable_set on clone
merged https://github.com/ruby/ruby/pull/7889
thx!
usa (Usaku NAKAMURA)
11:05 AM Revision cba152ff (git): Backport cvar clone bug fix for 19379 to 3.1 (#7889)
* Copy cvar table on clone
When a class with a class variable is cloned we need to also copy the
cvar cache table from the original table to the clone. I found this bug
while working on fixing [Bug #19379]. While this does not fix that ...
Eileen M. Uchitelle
11:03 AM Bug #19739: String coderange not cleared by String#slice!
ruby_3_1 7e926c4d8c2e785d174161b38a8a688b19ea4b99. usa (Usaku NAKAMURA)
11:00 AM Revision 7e926c4d (git): String#slice! should clear the coderange when truncating
[Bug #19739]
This bug was incidentally fixed in Ruby 3.2 via b0b9f72
but remains on 3.1 and older.
this patch is written by byroot, https://github.com/Shopify/ruby/commit/3b351ee62d4206bb72301c2e98dcb173f1e35be7
Co-authored-by: Jean B...
U.Nakamura
10:30 AM Revision 99162dee (git): [Bug #19751] Remove linemarkers in middle
nobu (Nobuyoshi Nakada)
10:22 AM Bug #19784: String#delete_prefix! problem
Ticket added to the next dev meeting. byroot (Jean Boussier)
10:18 AM Bug #19784: String#delete_prefix! problem
Ok, so as suspected, in the code strings with a broken encoding are very explicitly rejected: https://github.com/ruby/ruby/commit/10082360b9124c3eaabfccf4fe10a3640c40a05e#diff-430d86fdb6c4a558ab0f1b6648bbfae1720e8bde84f026e95a52740014752... byroot (Jean Boussier)
10:10 AM Bug #19784: String#delete_prefix! problem
I suspect it's because `"\xFF\xFE1\u00001\u0000" (UTF-8)` has invalid encoding.
That said, if `starts_with?` returns true, `delete_prefix` should arguably work.
I'll try to see if I can find why, but in the meantime I tested that y...
byroot (Jean Boussier)
09:37 AM Bug #19784 (Closed): String#delete_prefix! problem
Here is the snipped and the question is in the comments:
``` ruby
fp = 'with_BOM_16.txt'
body = File.read(fp).force_encoding('UTF-8')
p body # "\xFF\xFE1\u00001\u0000"
p body.start_with?("\xFF\xFE") #...
inversion (Yura Babak)
10:22 AM Misc #19766: DevMeeting-2023-08-24
- [Bug #19784] Inconsistency between `String#start_with?` and `String#delete_prefix` for strings with broken encodings.
- `"\xFF\xFE".start_with?("\xFF") # => true`
- `"\xFF\xFE".delete_prefix("\xFF") # => "\xFF\xFE"`
- If Ruby con...
byroot (Jean Boussier)
10:04 AM Feature #19783: Weak References in the GC
I believe this would fix [Bug #19436] (Call Cache for singleton methods can lead to "memory leaks") byroot (Jean Boussier)
09:39 AM Revision 37763905 (git): [ruby/reline] Avoid using CSI # S for scroll down
(https://github.com/ruby/reline/pull/577)
https://github.com/ruby/reline/commit/b67ee4e791
st0012 (Stan Lo)
06:23 AM Revision cf1f2e9d (git): [rubygems/rubygems] bin/rubocop -A
https://github.com/rubygems/rubygems/commit/e8a4184429 hsbt (Hiroshi SHIBATA)
06:23 AM Revision 979d1fa5 (git): [rubygems/rubygems] Extract Gem::BUNDLED_GEMS from Bundler
https://github.com/rubygems/rubygems/commit/e30e86aa60 hsbt (Hiroshi SHIBATA)
06:23 AM Revision 8fbe7d02 (git): [rubygems/rubygems] Skip warnings if bundled gems is already loaded
https://github.com/rubygems/rubygems/commit/9583a7eb82 hsbt (Hiroshi SHIBATA)
06:23 AM Revision 422144d2 (git): [rubygems/rubygems] Use Kernel.singleton_class
https://github.com/rubygems/rubygems/commit/f2e8e054df hsbt (Hiroshi SHIBATA)
06:23 AM Revision 6bb34a76 (git): [rubygems/rubygems] Don't reuse require argument
https://github.com/rubygems/rubygems/commit/1712cd6149 hsbt (Hiroshi SHIBATA)
06:23 AM Revision 64530b54 (git): [rubygems/rubygems] Added warnings targets for old version of Ruby
https://github.com/rubygems/rubygems/commit/d0c1d97105 hsbt (Hiroshi SHIBATA)
06:23 AM Revision fc5dbea4 (git): [rubygems/rubygems] Added Ruby version for bundled gems to warnings
https://github.com/rubygems/rubygems/commit/d61c1362e7 hsbt (Hiroshi SHIBATA)
06:23 AM Revision ec600332 (git): [rubygems/rubygems] Simplefied condition
https://github.com/rubygems/rubygems/commit/5238fcf234 hsbt (Hiroshi SHIBATA)
06:23 AM Revision 2424b921 (git): [rubygems/rubygems] make bundled gemst list as constant under Gem namespace
https://github.com/rubygems/rubygems/commit/438eac5447 hsbt (Hiroshi SHIBATA)
06:23 AM Revision cc2617ae (git): [rubygems/rubygems] Added csv as stub gem to build_repo1
https://github.com/rubygems/rubygems/commit/d2f2597c31 hsbt (Hiroshi SHIBATA)
06:23 AM Revision df4ac25b (git): [rubygems/rubygems] Added examples for warnings feature
https://github.com/rubygems/rubygems/commit/78807add23 hsbt (Hiroshi SHIBATA)
06:23 AM Revision 0ae227eb (git): [rubygems/rubygems] Also check Kernel.require for infinite loop
https://github.com/rubygems/rubygems/commit/961d9ac1bd hsbt (Hiroshi SHIBATA)
06:23 AM Revision a23fe8e8 (git): [rubygems/rubygems] Avoid infinite call of require
https://github.com/rubygems/rubygems/commit/9c345bfa3e hsbt (Hiroshi SHIBATA)
06:23 AM Revision bb61e45a (git): [rubygems/rubygems] Keep Kernel#require private
https://github.com/rubygems/rubygems/commit/cd59e73efa hsbt (Hiroshi SHIBATA)
06:23 AM Revision 95cde6e4 (git): [rubygems/rubygems] Don't use redefine_method
https://github.com/rubygems/rubygems/commit/f733f90110 hsbt (Hiroshi SHIBATA)
06:23 AM Revision f5e03ef3 (git): [rubygems/rubygems] Warn if file is loaded without Gemfile
https://github.com/rubygems/rubygems/commit/bf59dcdad1 hsbt (Hiroshi SHIBATA)
04:52 AM Revision 70eeec0c (git): [rubygems/rubygems] Simplify double loop
https://github.com/rubygems/rubygems/commit/630dc02112 nobu (Nobuyoshi Nakada)
04:52 AM Revision 1b27e7aa (git): [rubygems/rubygems] Use `Monitor#synchronize` to ensure to exit
https://github.com/rubygems/rubygems/commit/b424353239 nobu (Nobuyoshi Nakada)

07/24/2023

11:58 PM Revision f72ddd92 (git): [rubygems/rubygems] Bundler: Update bundle-outdated(1) man
Updated output examples to current format since the output format has changed since version 2.2.0.dev
https://github.com/rubygems/rubygems/commit/48d98f906a
obregonia1 (Kentaro Takeyama)
11:23 PM Revision b106cf2e (git): GitHub Actions: fix ENOENT for jobs running in forks
https://github.com/peterzhu2118/ruby/actions/runs/5649652235/job/15304434412
> Errno::ENOENT: No such file or directory @ rb_sysopen -
> ...
Unsure about the root cause but making sure the directory is there seems like a
plausible fix. ...
alanwu (Alan Wu)
08:51 PM Revision cef60e93 (git): YJIT: Fallback send instructions to vm_sendish (#8106)
k0kubun (Takashi Kokubun)
08:51 PM Feature #19783 (Closed): Weak References in the GC
GitHub PR: https://github.com/ruby/ruby/pull/8113
I'm proposing support for weak references in the Ruby garbage collector. This
feature adds a new function called `void rb_gc_mark_weak(VALUE *ptr)` which
marks `*ptr` as weak, meanin...
peterzhu2118 (Peter Zhu)
08:26 PM Feature #19630: [RFC] Deprecate `Kernel#open("|command-here")` due to frequent security issues
The pull request is ready for review: https://github.com/ruby/ruby/pull/7915
mdalessio (Mike Dalessio)
03:01 PM Revision c4e893ce (git): Adjust brace nesting
nobu (Nobuyoshi Nakada)
02:59 PM Revision 1faeb44d (git): Check if macros are defined before using
Assume macros with the same prefix would be defined together. nobu (Nobuyoshi Nakada)
02:57 PM Revision 14d15407 (git): RString NULL ptr check only when RUBY_DEBUG
Since edf01d4e82d8e44ee30ec41fbcb7f802bc8b8c5d, fake string treats
NULL as an empty string.
nobu (Nobuyoshi Nakada)
02:41 PM Revision 1780ad37 (git): Extract magic numbers
nobu (Nobuyoshi Nakada)
12:51 PM Feature #19755 (Closed): Module#class_eval and Binding#eval use caller location by default
Applied in changeset commit:git|43a5c191358699fe8b19314763998cb8ca77ed90.
----------
Use the caller location as default filename for eval family of methods
[Feature #19755]
Before (in /tmp/test.rb):
```ruby
Object.class_eval("p __FIL...
byroot (Jean Boussier)
12:51 PM Revision 43a5c191 (git): Use the caller location as default filename for eval family of methods
[Feature #19755]
Before (in /tmp/test.rb):
```ruby
Object.class_eval("p __FILE__") # => "(eval)"
```
After:
```ruby
Object.class_eval("p __FILE__") # => "(eval at /tmp/test.rb:1)"
```
This makes it much easier to track down generate...
byroot (Jean Boussier)
06:08 AM Revision 14d16bdb (git): [ruby/openssl] Always respect the openssl prefix chosen by truffle/openssl-prefix on TruffleRuby
* See https://github.com/ruby/openssl/issues/650#issuecomment-1645699608
https://github.com/ruby/openssl/commit/ca738e7e13
Eregon (Benoit Daloze)
06:04 AM Revision dd1af4b2 (git): [rubygems/rubygems] Rename local to lockfile and global to system
https://github.com/rubygems/rubygems/commit/456fd05d3a hsbt (Hiroshi SHIBATA)
06:03 AM Revision 34f541ae (git): [rubygems/rubygems] Avoid unnecessary network requests for local gem
https://github.com/rubygems/rubygems/commit/ec5f04f7b1 deivid (David Rodríguez)
06:03 AM Revision 0b0df03b (git): [rubygems/rubygems] Avoid printing using messages when version has not changed
https://github.com/rubygems/rubygems/commit/9635a2fd74 deivid (David Rodríguez)
06:03 AM Revision 8c82b357 (git): [rubygems/rubygems] Exclude Bundler from missing locked dependencies check
Bundler is special since it's not actually locked in the lockfile as a
regular gem (only via `BUNDLED WITH`). So exclude it from that check.
https://github.com/rubygems/rubygems/commit/9f1756ec47
deivid (David Rodríguez)
05:59 AM Revision 0e7536bf (git): [rubygems/rubygems] Prefer squiggly heredocs over custom helper
https://github.com/rubygems/rubygems/commit/258476c38a deivid (David Rodríguez)
05:59 AM Revision 5a43b0dd (git): [rubygems/rubygems] Remove unused module inclusion
https://github.com/rubygems/rubygems/commit/0f58ef6a32 deivid (David Rodríguez)
05:59 AM Revision c31a9cf8 (git): [rubygems/rubygems] Refactor spec helpers for reading lockfiles
https://github.com/rubygems/rubygems/commit/ea2a30ba08 deivid (David Rodríguez)
05:59 AM Revision ebc31741 (git): [rubygems/rubygems] Simplify `bundle lock` specs
https://github.com/rubygems/rubygems/commit/6301d3eece deivid (David Rodríguez)
04:10 AM Bug #19782: Ruby operators precedence inconsistency
sawa (Tsuyoshi Sawada) wrote in #note-1:
> In general, precedence comes into play when an expression is ambiguous. An expression is ambiguous when there is more than one (grammatical) parse. `(a && b) = c` is not a grammatical parse of ...
hurricup (Alexandr Evstigneev)
03:36 AM Bug #19782 (Rejected): Ruby operators precedence inconsistency
jeremyevans0 (Jeremy Evans)
01:12 AM Bug #19782: Ruby operators precedence inconsistency
In general, precedence comes into play when an expression is ambiguous. An expression is ambiguous when there is more than one (grammatical) parse. `(a && b) = c` is not a grammatical parse of `a && b = c`; only `a && (b = c)` is. Hence,... sawa (Tsuyoshi Sawada)

07/23/2023

02:24 PM Revision bcc160b4 (git): [DOC] RDoc for File::Constants (#8103)
burdettelamar (Burdette Lamar)
01:47 PM Revision 4dccb145 (git): tool/merger.rb: Support commit URLs as revisions
nagachika (Tomoyuki Chikanaga)
06:33 AM Bug #19782 (Rejected): Ruby operators precedence inconsistency
Unfortunately I could not find a good documentation regarding ruby operators precedence and associativity, but according to https://ruby-doc.org/3.2.2/syntax/precedence_rdoc.html
`&&` has higher precedence than assignment.
Meaning that...
hurricup (Alexandr Evstigneev)
04:03 AM Bug #19759: Surprising automatic splat with ruby2_keywords_hash
ruby_3_2 3354aacb73c65420a10cb41c0696e62dd1ba279b merged revision(s) 3874381c4483ba7794ac2abf157e265546f9bfa7. nagachika (Tomoyuki Chikanaga)
04:03 AM Bug #19293: The new Time.new(String) API is nice... but we still need a stricter version of this
ruby_3_2 0b3ed6043c9d091d499ca1caed604a983c7e285b merged revision(s) 5d4fff845602872eef072e7611558b5f8762efe0. nagachika (Tomoyuki Chikanaga)
03:20 AM Revision 0b3ed604 (git): merge revision(s) 5d4fff845602872eef072e7611558b5f8762efe0: [Backport #19293]
Tighten Time.new(string) parsing
Disallow:
* Only year-month
* Only year-month-day
* Preceding whitespace
* Trailing whitespace
Fixes [Bug #19293]
---
test/ruby/test_tim...
nagachika (Tomoyuki Chikanaga)
03:01 AM Revision 3354aacb (git): merge revision(s) 3874381c4483ba7794ac2abf157e265546f9bfa7: [Backport #19759]
Fix autosplat conditions to handle ruby2_keywords case
Autosplat should not occur if there are two arguments but second
argument is an array containing a ruby2_keywords splat. Only
autosplat if a single argument ...
nagachika (Tomoyuki Chikanaga)

07/22/2023

05:03 AM Bug #19774: `END {return}` segfaults since in 3.2
ruby_3_2 b97a744a3778abe52fffb051e1460a0a6f7c4a6d merged revision(s) 9c94db7cfc584e982a6449b72e58a1cf25024177,fe4d906f5fbacbe6e9267af3bd3503339bad63a9. nagachika (Tomoyuki Chikanaga)
05:03 AM Bug #19748: `String#byteindex` crashes when `offset` is too large
ruby_3_2 65d294ad019c8ac5bba12e2c9098360bacafc9e3 merged revision(s) bc3ac1872e4523334e3ed04c2bb70a55c4c43f98. nagachika (Tomoyuki Chikanaga)
05:03 AM Bug #19585: Ruby Fails to Build on macOS with --enable-shared and --with-jemalloc
ruby_3_2 35cf3a5f8d01aad07762eb824c3107bee9ae7fdd merged revision(s) 038f9ade3c4d965415e4956561975454cf9eeb21. nagachika (Tomoyuki Chikanaga)
05:02 AM Bug #19532: Handling of 6-byte codepoints in left_adjust_char_head in CESU-8 encoding is broken
ruby_3_2 4e0653db3315e9e7859e38e0995e2b9900471370 merged revision(s) 2c8f2871a8aeff592369a993b1d69557160cfa61. nagachika (Tomoyuki Chikanaga)
05:01 AM Revision b97a744a (git): merge revision(s) 9c94db7cfc584e982a6449b72e58a1cf25024177,fe4d906f5fbacbe6e9267af3bd3503339bad63a9: [Backport #19774]
Add tests for `return` in `BEGIN` and `END` blocks
---
spec/ruby/language/return_spec.rb | 15 +++++++++++++++
test/ruby/test_syntax.rb | 1 +
2 files changed, 16 insertions(+)
[Bug #1...
nagachika (Tomoyuki Chikanaga)
04:39 AM Revision 65d294ad (git): merge revision(s) bc3ac1872e4523334e3ed04c2bb70a55c4c43f98: [Backport #19748]
[Bug #19748] Fix out-of-bound access in `String#byteindex`
---
string.c | 17 +++++++----------
test/ruby/test_string.rb | 3 +++
2 files changed, 10 insertions(+), 10 deletions(-)
nagachika (Tomoyuki Chikanaga)
04:38 AM Bug #19746: `String#index` with regexp and too large offset doesn't clear `$~`
I cannot confident that there's no existing application depends on the current behavior.
I don't backport the changeset.
nagachika (Tomoyuki Chikanaga)
04:32 AM Revision 35cf3a5f (git): merge revision(s) 038f9ade3c4d965415e4956561975454cf9eeb21: [Backport #19585]
Use tools appropriate with CC
To get rid of mysterious errors such as:
```
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: error: libruby.3.3-static.a(/): The end of th...
nagachika (Tomoyuki Chikanaga)
04:31 AM Revision 4e0653db (git): merge revision(s) 2c8f2871a8aeff592369a993b1d69557160cfa61: [Backport #19532]
Fix handling of 6-byte codepoints in left_adjust_char_head in CESU-8
encoding
---
enc/cesu_8.c | 23 +++++++++++++++++++----
test/ruby/enc/test_cesu8.rb | 4 ++++
2 files changed...
nagachika (Tomoyuki Chikanaga)
04:26 AM Bug #19535: Instance variables order is unpredictable on objects with `OBJ_TOO_COMPLEX_SHAPE_ID`
ruby_3_2 fa72ba72f8c64fd0fa87c8f68cbc31f2e7b94b00 merged revision(s) 54dbd8bea8a79bfcdefa471c1717c6cd28022f33. nagachika (Tomoyuki Chikanaga)
04:26 AM Bug #19640: `IO#puts` can generate zero length iov which can cause rb_bug crash.
ruby_3_2 ea89527a76a84741463c304246db2dd3a5df845b merged revision(s) 0b2613f44309bddae45562c9f3a14ed43e56959b. nagachika (Tomoyuki Chikanaga)
04:26 AM Bug #19709: `Thread.join(timeout)` hangs in fiber scheduler.
ruby_3_2 a3911b965f094f07080cf7adb22ee5e2e8555d86 merged revision(s) 0402193723647b8c4f57b1453fe2192ad2788d12. nagachika (Tomoyuki Chikanaga)
04:24 AM Revision fa72ba72 (git): merge revision(s) 54dbd8bea8a79bfcdefa471c1717c6cd28022f33: [Backport #19535]
Use an st table for "too complex" objects
st tables will maintain insertion order so we can marshal dump / load
objects with instance variables in the same order they were set on that
particular instance
...
nagachika (Tomoyuki Chikanaga)
04:16 AM Bug #19743: Ruby's parser seems to ignoring DOT at the end of file just after digits
Since it's obviously a bug, it had been long-standing and fixing it could break executing existing script.
I don't backport it to ruby_3_2 for now. Any opinion?
nagachika (Tomoyuki Chikanaga)
04:08 AM Revision a3911b96 (git): merge revision(s) 0402193723647b8c4f57b1453fe2192ad2788d12: [Backport #19709]
Fix `Thread#join(timeout)` when running inside the fiber scheduler.
(#7903)
---
test/fiber/test_thread.rb | 22 ++++++++++++++++++++++
thread.c | 5 +++++
2 files changed, 27 i...
nagachika (Tomoyuki Chikanaga)
04:07 AM Revision dd04def1 (git): Try to fix NoMethodError on update-deps
k0kubun (Takashi Kokubun)
04:03 AM Revision ea89527a (git): merge revision(s) 0b2613f44309bddae45562c9f3a14ed43e56959b: [Backport #19640]
`rb_io_puts` should not write zero length strings. (#7806)
---
io.c | 40 ++++++++++++++++++++++++----------------
test/fiber/test_io.rb | 28 ++++++++++++++++++++++++++++
2 files change...
nagachika (Tomoyuki Chikanaga)
03:57 AM Revision 7cecd155 (git): Suppress flaky update-deps failures for any win32 files
win32/win32.o was also unstable:
https://github.com/ruby/ruby/actions/runs/5628655900/job/15252762821?pr=8107
At this point, any win32 files seem suspicious. Let's just ignore all
such files.
k0kubun (Takashi Kokubun)
03:44 AM Bug #19781 (Closed): Stack consistency error with tailcall and YJIT enabled
```rb
src = <<-EOS
def apply_one_and_two(&block)
[1, p(1)]
end

def add_one_and_two
apply_one_and_two(&:+)
end
EOS

RubyVM::InstructionSequence.new(
"proc {|_|_.class_eval {#{src}}}",
__FILE__, __FILE__...
k0kubun (Takashi Kokubun)
03:02 AM Bug #19623: Ruby 3.2 MJIT crashes on railsbench
Merged at https://github.com/ruby/ruby/commit/60d75a5665e808e7491ea6bca9c02245852ea495. nagachika (Tomoyuki Chikanaga)
03:02 AM Bug #19625: Ruby 3.2 MJIT never triggers JIT compaction
Merged at https://github.com/ruby/ruby/commit/08bf3bcfb722aff2eb66782c0aec59a145fee185. nagachika (Tomoyuki Chikanaga)
02:57 AM Bug #19025: Ripper cannot parse syntax ok code that has numbered parameters
ruby_3_2 465eb7418d7ed91f5f0c75da77765c7f5ef8354f merged revision(s) 91c004885fc75a93cadf0094fa86ec3bd0ec25f5. nagachika (Tomoyuki Chikanaga)
02:56 AM Bug #19602: `PLATFORM_GET_INC` is broken unless unaligned word access is allowed
ruby_3_2 e65e0b99267c495186d7abb78c2725418761d756 merged revision(s) fac814c2dc31afef272b45392a7389ef0bfa3a4f. nagachika (Tomoyuki Chikanaga)
02:56 AM Bug #19531: ObjectSpace::WeakMap: replaced values still clear the key they were assigned to
ruby_3_2 46b62f44ce30bf234a76114c8249081e47ce3da4 merged revision(s) 3592b24cdc07ed89eecb39161f21fe721a89a5de. nagachika (Tomoyuki Chikanaga)
02:55 AM Revision 465eb741 (git): merge revision(s) 91c004885fc75a93cadf0094fa86ec3bd0ec25f5: [Backport #19025]
[Bug #19025] Numbered parameter names are always local variables
---
parse.y | 2 +-
test/ruby/test_syntax.rb | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
nagachika (Tomoyuki Chikanaga)
02:48 AM Revision e65e0b99 (git): merge revision(s) fac814c2dc31afef272b45392a7389ef0bfa3a4f: [Backport #19602]
Fix `PLATFORM_GET_INC`
On platforms where unaligned word access is not allowed, and if
`sizeof(val)` and `sizeof(type)` differ:
- `val` > `type`, `val` will be a garbage.
- `val` < `type`, outside `val` ...
nagachika (Tomoyuki Chikanaga)
02:44 AM Revision 46b62f44 (git): merge revision(s) 3592b24cdc07ed89eecb39161f21fe721a89a5de: [Backport #19531]
ObjectSpace::WeakMap: clean inverse reference when an entry is
re-assigned
[Bug #19531]
```ruby
wmap[1] = "A"
wmap[1] = "B"
```
In the example above, we need to remove the `"A" ...
nagachika (Tomoyuki Chikanaga)
01:02 AM Feature #19780 (Open): Remove tailcall_optimization support
## Proposal
Remove `tailcall_optimization` support from `RubyVM::InstructionSequence` (make it no-op)
## Motivation
The consensus at [Feature #6602] seems to be that we're not going to enable tailcall optimization by default until w...
k0kubun (Takashi Kokubun)

07/21/2023

07:44 PM Revision 11deab79 (git): Remove unused code in darray.h
peterzhu2118 (Peter Zhu)
05:50 PM Revision 83605bb6 (git): Just assume rustc is in the container
k0kubun (Takashi Kokubun)
05:41 PM Bug #19779 (Closed): `eval "return"` at top level raises `LocalJumpError`
Wondering whether it's intentional behaviour. It seems it's the only difference I've noticed between calling `return` with and without `eval`:
```
ruby -e 'return'
ruby -e 'eval "return"'
(eval):1:in `<main>': unexpected return (Lo...
andrykonchin (Andrew Konchin)
05:19 PM Bug #19778 (Closed): mkmf.rb pkg_config() interaction with RbConfig::CONFIG["cflags"]
(This was first reported at https://github.com/ruby/openssl/issues/650: The extension's build breaks in a strange way if `RbConfig::CONFIG["*flags"]` contains the path of an OpenSSL installation but `pkg-config` returns the path of a dif... rhenium (Kazuki Yamaguchi)
04:42 PM Feature #19777 (Closed): Make `Kernel#lambda` raise when called without a literal block
Since 3.0.0, released in 2020, calling `Kernel#lambda` without a literal block
has been issuing a deprecation warning:
```ruby
Warning[:deprecated] = true
def foo(&b) lambda(&b) end
foo {}
# => test.rb:2: warning: lambda without ...
alanwu (Alan Wu)
03:48 PM Revision 25267fdd (git): [ruby/yarp] Exclude heredoc_nested test for Rubies < 3.3
Ripper's lexemes were slightly different in Ruby 3.2 for Heredocs.
We ignored this complex heredoc test in this case because
Ripper's output has changed
https://github.com/ruby/yarp/commit/59d3d4a899
jemmai (Jemma Issroff)
10:28 AM Feature #19744: Namespace on read
Just a quick comment to Jeremy's statement:
> In regards to the feature in general, looking at my large libraries, all of them use absolute :: references at least occasionally
I use :: quite a lot in my gems as well so I can relate to ...
rubyFeedback (robert heiler)
09:38 AM Revision 22f97355 (git): Use already installed `rustc` if available [ci skip]
nobu (Nobuyoshi Nakada)
08:47 AM Revision 7fdf98ef (git): [rubygems/rubygems] Deprecate Gem::Platform.match
https://github.com/rubygems/rubygems/commit/e3ba3e2225 hsbt (Hiroshi SHIBATA)
07:48 AM Revision f602cb55 (git): [rubygems/rubygems] Boundary check in `Gem::StreamUI#choose_from_list`
https://github.com/rubygems/rubygems/commit/abacb0cb34 nobu (Nobuyoshi Nakada)
05:52 AM Revision 47c7c188 (git): Add comments to id.h and undef finished macros
nobu (Nobuyoshi Nakada)
04:22 AM Feature #19776: Warn bundled gems when it called from `require`
I submit https://github.com/rubygems/rubygems/pull/6831 to RubyGems upstream. hsbt (Hiroshi SHIBATA)

07/20/2023

10:04 PM Revision 8d9a25a6 (git): misc/gdb.py: Allow overriding stack_size [ci skip]
k0kubun (Takashi Kokubun)
08:50 PM Revision 210caa77 (git): More RDoc for Dir.glob (#8088)
burdettelamar (Burdette Lamar)
07:54 PM Revision c4ef3d76 (git): YJIT: Rename exec_instruction to yjit_insns_count (#8102)
k0kubun (Takashi Kokubun)
07:52 PM Revision b71f79dd (git): Add a missing *
Co-authored-by: Alan Wu <[email protected]> k0kubun (Takashi Kokubun)
07:04 PM Revision 1129488f (git): Ignore win32/file.o on update-deps
This job has been so flaky:
https://github.com/ruby/ruby/actions/runs/5614842978/job/15213840097
k0kubun (Takashi Kokubun)
06:55 PM Revision a7127745 (git): Get rid of obsoleted __bp__ references
k0kubun (Takashi Kokubun)
06:52 PM Revision bbf059fb (git): Update default gems list at 134d8741731101b4b115e3d92ac008 [ci skip]
git[bot]
06:51 PM Revision 134d8741 (git): Sync YARP gemspec (#8101)
* Sync YARP gemspec
We were previously not syncing the YARP gemspec over which meant
that the Ruby YARP gem was out of sync.
* Sync YARP node / lex_compat files
jemmai (Jemma Issroff)
06:17 PM Revision 639aa76e (git): Embed struct rmatch into GC slot (#8097)
wks (Kunshan Wang)
06:01 PM Feature #19755: Module#class_eval and Binding#eval use caller location by default
I've merged the PR. Thanks for your work here! schneems (Richard Schneeman)
05:58 PM Revision 460c27dc (git): [ruby/syntax_suggest] Handle new eval source location
See https://bugs.ruby-lang.org/issues/19755
In Ruby 3.3, using `eval` without providing a source location
will now default to `"(eval at #{__FILE__}:#{__LINE__})"`.
https://github.com/ruby/syntax_suggest/commit/8e5076472e
byroot (Jean Boussier)
05:14 PM Revision b41fc9b9 (git): YJIT: Avoid undercounting retired_in_yjit (#8038)
* YJIT: Count the number of failed instructions
* Rename yjit_insns_count to exec_instructions instead
* Hoist out the exec_instruction counter
k0kubun (Takashi Kokubun)
02:58 PM Revision abce8583 (git): [ruby/yarp] Fix heredocs inside %W and %w lists
The problem was that we were treating heredoc bodies as part of the %W
list because we didn't push the scanning cursor past the heredoc after
lexing out the here doc. To fix this, we changed the whitespace
scanning function to quit scan...
tenderlovemaking (Aaron Patterson)
02:53 PM Revision 5c219c1b (git): proc.c: Remove unused parameter [ci skip]
alanwu (Alan Wu)
12:55 PM Revision 76ea8ecb (git): Supress warning that variable may be used uninitialized with ripper building
S_H_ (Shun Hiraoka)
12:38 PM Revision dd8372b3 (git): cvc table entries can move
eightbitraptor (Matt V-H)
09:24 AM Feature #19720: Warning for non-linear Regexps
@matz Given ReDoS are AFAIK the most common (by far) security vulnerability in Ruby, it warrants a reliable way to detect it, fix it and avoid it.
This way seems the best to me.
In fact I think only this approach or something very simi...
Eregon (Benoit Daloze)
07:27 AM Feature #19776: Warn bundled gems when it called from `require`
Isn't it time that upstream should start to encourage that every part of the StdLib should be listed in Gemfile? How long it is the URI gem fixing MEDIUM rated CVE was released and who uses it? Who added it into their Gemfile? Who even n... vo.x (Vit Ondruch)
07:00 AM Revision 62cb739b (git): Update bundled gems list at 2023-07-20
git[bot]

07/19/2023

11:20 PM Revision 419fbc77 (git): [rubygems/rubygems] Clear `YAML` constant if it was undefined previously
https://github.com/rubygems/rubygems/commit/31d0311258 nobu (Nobuyoshi Nakada)
08:15 PM Revision 84b52741 (git): [ruby/yarp] Resync YARP (#8098)
jemmai (Jemma Issroff)
01:31 PM Revision 7380c73a (git): [ruby/reline] Add assertion to auto_indent_proc's parameter, add
Ctrl-d exit test
(https://github.com/ruby/reline/pull/574)
* Add auto_indent_proc's parameter assertion in multiline_repl
* Add rendering test for Ctrl-d exit
https://github.com/ruby/reline/commit/46db71132a
tompng (tomoya ishida)
01:25 PM Revision ca561480 (git): [ruby/reline] Always set ANSI CSI keybindings for Home, End, and
Arrow.
(https://github.com/ruby/reline/pull/569)
https://github.com/ruby/reline/commit/f363a43a45
tompng (tomoya ishida)
10:29 AM Revision ea2fc58d (git): Fix a typo [ci skip]
znz (Kazuhiro NISHIYAMA)
09:03 AM Feature #19351 (Closed): Promote bundled gems at Ruby 3.3
I filed new issue for warning feature: https://bugs.ruby-lang.org/issues/19776
hsbt (Hiroshi SHIBATA)
09:02 AM Feature #19776 (Closed): Warn bundled gems when it called from `require`
We should warn when users try to load default gems that will be promoted bundled gems at next version. We will warn them only under the bundler environment without Gemfile.
* Ruby 3.3:
* Warn for adding bundled gems to be addressed...
hsbt (Hiroshi SHIBATA)
07:12 AM Misc #19772: API naming for YARP compiler
I don't think "YA-" names nice in general, unless for development code name.
As for `YARP.compile`, "a parser compiles code" sounds strange a little to me.
It might be better that `YARP.parse` will return AST and the AST has `compile...
nobu (Nobuyoshi Nakada)
07:03 AM Feature #19775 (Closed): Use the callback `main::const_added`
Since top-level constants are defined under Object, their definition can be hooked by defining `Object.const_added`.
```ruby
def Object.const_added(name)
p name
end
Foo = 1 #=> :Foo
```
mame (Yusuke Endoh)
06:43 AM Feature #19775 (Closed): Use the callback `main::const_added`
In #17881, it was accepted that `Module#const_added` is called when there is a new constant added to the namespace of the module.
Since `main` can also serve as a namespace, it should also be able to use this callback.
```ruby
def c...
UlyssesZhan (Ulysses Zhan)
06:01 AM Feature #19744: Namespace on read
Thanks for providing your ideas.
tagomoris (Satoshi Tagomori) wrote in #note-10:
> a. Lift up all functions to Ruby level method calls on the `glib2` side, then use them on `gobject-introspection`
It's impossible for the `glib2`...
kou (Kouhei Sutou)
05:35 AM Revision 0765b890 (git): Fix `USE_THREAD_CACHE=0`
nobu (Nobuyoshi Nakada)
03:42 AM Revision a3a74771 (git): Add a corner case for `return`
nobu (Nobuyoshi Nakada)
02:50 AM Misc #19679: Migrate Wiki from bugs.ruby-lang.org to ruby/ruby GitHub repository
Thanks Jemma,
I disabled wiki feature of Redmine at last week.
hsbt (Hiroshi SHIBATA)
 

Also available in: Atom