summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-11-29[rubygems/rubygems] Improve naming in git sourcesDavid Rodríguez
The "revision" attribute is actually getting the revision from the Gemfile.lock file. So I think "locked" is a better term here to avoid confusion with the revision checked out in `vendor/cache`. https://github.com/rubygems/rubygems/commit/ca5bdebe1f
2024-11-30Remove a useless condition expressionYusuke Endoh
`len` is always at least 1 here. Notes: Merged: https://github.com/ruby/ruby/pull/12215
2024-11-29prefer ruby_memerror instead卜部昌平
This could be out of GVL Notes: Merged: https://github.com/ruby/ruby/pull/12188
2024-11-29rb_gc_impl_malloc can return NULL卜部昌平
Let there be rooms for each GC implementations how to handle multi threaded situations. They can be totally reentrant, or can have their own mutex, or can rely on rb_thread_call_with_gvl. In any ways the allocator (has been, but now officially is) expected to run properly without a GVL. This means there need be a way for them to inform the interpreter about their allocation failures, without relying on raising exceptions. Let them do so by returning NULL. Notes: Merged: https://github.com/ruby/ruby/pull/12188
2024-11-29Update default gems list at ae85fc72717c5b6d13be101781d41a [ci skip]git
2024-11-29[ruby/set] Bump VERSION to 1.1.1Akinori MUSHA
https://github.com/ruby/set/commit/1c3cded76a
2024-11-29Ensure to close pipes when `TCPSocket.new` finishes processing (#12181)Misaki Shioi
`TCPSocket.new` with HEv2 uses three threads. The last of these threads to exit closed pipes. However, if pipes were open at the end of the main thread, they would leak. This change avoids this by closing pipes at the end of the main thread. Notes: Merged-By: shioimm <shioi.mm@gmail.com>
2024-11-29Allow disable to `fast_fallback` of `TCPSocket.new` (#12210)Misaki Shioi
with `Socket.tcp_fast_fallback=` The functions that `Socket.tcp` had are now also available in `TCPSocket.new`. Notes: Merged-By: shioimm <shioi.mm@gmail.com>
2024-11-29Remove a useless check if fd is negativeYusuke Endoh
If `slave` is negative, neither `dup2(slave,0)` or `close(slave)` should be executed. I believe this check is completely useless. Notes: Merged: https://github.com/ruby/ruby/pull/12207
2024-11-29Remove a useless checkYusuke Endoh
Here `nb` should never be NULL. If it were, the following `nb->buffer_list` would be strange. A follow-up to ddd8da4b6ba3dfcca21ca710e7cef2fa3b9632d7 Notes: Merged: https://github.com/ruby/ruby/pull/12208
2024-11-29[ruby/date] Fix mixed declarations and codeNobuyoshi Nakada
This still support ruby 2.6 which does not require C99. https://github.com/ruby/date/commit/61d849758f
2024-11-29[ruby/date] Suppress compound-token-split-by-macro warningsNobuyoshi Nakada
It was used intentionally. https://github.com/ruby/date/commit/291b40f939
2024-11-29[ruby/time] [DOC] Make RDoc coverage 100%Nobuyoshi Nakada
https://github.com/ruby/time/commit/c668704413
2024-11-29Dont't need to run nmake testHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12205
2024-11-29Use only -j option for test optionHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12205
2024-11-29nmake check is working now with Windows platformHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12205
2024-11-29Remove document file needless for ruby coreNobuyoshi Nakada
This reverts commit 743a31d639d4c96827b1b17f59c829c1ec31abc3, "[ruby/date] [DOC] Make document coverage 100%". This file is only for rdoc coverage in the date gem, and useless when the built-in Time is documented. Notes: Merged: https://github.com/ruby/ruby/pull/12206
2024-11-28YJIT: Add missing prepare before calling str_dupJohn Hawthorn
Notes: Merged: https://github.com/ruby/ruby/pull/12202
2024-11-29Avoid illegal pointerYusuke Endoh
When loading a crafted marshal data of Random, a pointer to an illegal address was created. I don't think there is any harm since the data is normalized before access, but just to be safe, I add a check to make it an error. Notes: Merged: https://github.com/ruby/ruby/pull/12200
2024-11-28Add commit 2da9238 to .git-blame-ignore-revs [ci skip]Peter Zhu
2024-11-28Expand tabs in addr2line.cPeter Zhu
.git-blame-ignore-revs will be updated after this commit is merged. Notes: Merged: https://github.com/ruby/ruby/pull/12184
2024-11-28[rubygems/rubygems] Test with Ruby 3.4David Rodríguez
https://github.com/rubygems/rubygems/commit/23d06195fa
2024-11-28Update default gems list at afea58a0ef07b05846dbb24ca8afbf [ci skip]git
2024-11-28[ruby/reline] Bump version to 0.5.12Mari Imaizumi
(https://github.com/ruby/reline/pull/786) https://github.com/ruby/reline/commit/d4f6741e7e
2024-11-28Ensure to free fast_fallback_getaddrinfo_shared with single family (#12199)Misaki Shioi
With https://github.com/ruby/ruby/pull/12156, the memory of the `struct fast_fallback_getaddrinfo_shared` is now allocated even if there is only one address family. This change will always free it when `TCPSocket.new` finishes. Notes: Merged-By: shioimm <shioi.mm@gmail.com>
2024-11-28[ruby/prism] Fix a copy-paste errorYusuke Endoh
This is not important because of the path of `assert(false)`, but just in case. Coverity Scan found this issue. https://github.com/ruby/prism/commit/7335c62f9d
2024-11-28[ruby/rdoc] Improve how gemspec's files are definedStan Lo
(https://github.com/ruby/rdoc/pull/1212) Currently, the gemspec's files are defined by hand, which is error-prone. For example: https://github.com/ruby/rdoc/pull/1211 This commit uses `Dir.glob` where possible to reduce the risk of that happening again. - Additional files added with this approach: ``` # This should have been added by only captured by this commit lib/rdoc/parser/prism_ruby.rb # These are folders and can be included/ignored either way lib/rdoc/generator/template/darkfish lib/rdoc/generator/template/darkfish/css lib/rdoc/generator/template/darkfish/fonts lib/rdoc/generator/template/darkfish/images lib/rdoc/generator/template/darkfish/js lib/rdoc/generator/template/json_index lib/rdoc/generator/template/json_index/js ``` - Files that are ignored after this change: ``` # They make no difference on documentation generation # Probably can be removed lib/rdoc/generator/template/darkfish/.document lib/rdoc/generator/template/json_index/.document ``` https://github.com/ruby/rdoc/commit/ac2a151f10
2024-11-28`INIT_ANCHOR` no longer needed usuallyNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12198
2024-11-28Initialize `LINK_ANCHOR` totallyNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12198
2024-11-28[DOC] typo fix in NEWS.mdydah
follow up: https://github.com/ruby/ruby/pull/12196/files#r1861730753 Notes: Merged: https://github.com/ruby/ruby/pull/12197
2024-11-28add a NEWS entry about extra rescue/ensure framesKoichi Sasada
from backtraces. Notes: Merged: https://github.com/ruby/ruby/pull/12196
2024-11-28add NEWS entries about Ractor related changes.Koichi Sasada
Notes: Merged: https://github.com/ruby/ruby/pull/12196
2024-11-28Assert that non-empty LINK_ANCHOR does not loopNobuyoshi Nakada
After any `LINK_ELEMENT` sequence is added, `LINK_ANCHOR` must not loop. Notes: Merged: https://github.com/ruby/ruby/pull/12195
2024-11-28Always declared gems that are test failures on Windows to allowed failures listHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12193
2024-11-28Exclude successful gems from TEST_BUNDLED_GEMS_ALLOW_FAILURESHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12193
2024-11-28Skip test-all on nmake test-bundled-gemsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12193
2024-11-28Try to run nmake test-bundled-gems in Windows platformHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12193
2024-11-28Avoid an operation on a pointer after freeYusuke Endoh
A follow-up to ef59175a68c448fe334125824b477a9e1d5629bc. That commit uses `&body->local_table[...]` but `body->local_table` is already freed. I think it is an undefined behavior to calculate a pointer that exceeds the bound by more than 1. This change moves the free of `body->local_table` after the calculation. Coverity Scan found this issue. Notes: Merged: https://github.com/ruby/ruby/pull/12194
2024-11-28Fix a possible leak of a file descriptorYusuke Endoh
The same issue as https://github.com/ruby/prism/pull/3246 Coverity Scan found this issue. Notes: Merged: https://github.com/ruby/ruby/pull/12192
2024-11-28Update bundled gems list at e0b68b2dc93da31f93232fe0b545ba [ci skip]git
2024-11-28Bump up test-unit 3.6.4Hiroshi SHIBATA
Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Notes: Merged: https://github.com/ruby/ruby/pull/12187
2024-11-28Update bundled_gemsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12187
2024-11-28Skip failure tests with Windows platformHiroshi SHIBATA
2024-11-28[ruby/prism] Fix a possible leak of a file descriptorYusuke Endoh
When mmap fails for any reason, the fd must be closed. Coverity Scan found this issue. https://github.com/ruby/prism/commit/c06e9c400f
2024-11-27Fix global-buffer-overflow when outputting C backtracePeter Zhu
fill_lines is passed -1 for offset, which causes it to read the -1 index of traces. This is not valid memory as -1 is reading before the trace global variable in rb_print_backtrace. This code comes from commit 99d1f5f88b9b6de3124e31019902f91e030d334f, where there used to be special handling for the -1 index. We can see this error in ASAN: ==71037==ERROR: AddressSanitizer: global-buffer-overflow on address 0x00010157abf8 at pc 0x00010116f3b8 bp 0x00016f92c3b0 sp 0x00016f92c3a8 READ of size 8 at 0x00010157abf8 thread T0 #0 0x10116f3b4 in debug_info_read addr2line.c:1945 #1 0x10116cc90 in fill_lines addr2line.c:2497 #2 0x101169dbc in rb_dump_backtrace_with_lines addr2line.c:2635 #3 0x100e56788 in rb_print_backtrace vm_dump.c:825 #4 0x100e56db4 in rb_vm_bugreport vm_dump.c:1155 #5 0x100734dc4 in rb_bug_without_die error.c:1085 #6 0x100734ae4 in rb_bug error.c:109 Notes: Merged: https://github.com/ruby/ruby/pull/12185
2024-11-27[ruby/reline] Fix io_gate.encoding raises IOError in ruby <= 3.0tomoya ishida
(https://github.com/ruby/reline/pull/785) https://github.com/ruby/reline/commit/85e20f0031
2024-11-27[ruby/reline] fix/omit test that fail in encoding=US_ASCIItomoya ishida
(https://github.com/ruby/reline/pull/784) https://github.com/ruby/reline/commit/a6d1ac54e6
2024-11-27Fix C level backtrace info on macOS clang 16Peter Zhu
macOS clang 16 generates DWARF5, which have Mach-O section names that are limited to 16 characters, which causes sections with long names to be truncated and not match above. See: https://wiki.dwarfstd.org/Best_Practices.md#Mach-2d-O Notes: Merged: https://github.com/ruby/ruby/pull/12182
2024-11-27Move `Kernel#with_yjit` to `Module#with_yjit`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12178
2024-11-27Make rb_bug_without_die staticPeter Zhu
It's not used outside of error.c. Notes: Merged: https://github.com/ruby/ruby/pull/12183