Releases: ruby/ruby
3.2.2
Security Fixes
What's Changed
- Backport [Bug #19158] for Ruby 3.2 by hsbt · Pull Request #7356
- Bug #19415: Incorrect circularity warning for concurrent requires
- Bug #19400: YJIT fails to boot on ARM64 systems with 64 KiB pages
- Bug #19419: [BUG] try to mark T_NONE object in
ibf_dump_mark
- Bug #19444: YJIT String#+@ miscompilations
- Bug #19445: Segmentation fault with Numeric#step
- Bug #19439: Marshal.load doesn't load Regexp instance variables
- Bug #19459: Is
length
ofIO::Buffer#read
required or optional? - Bug #19464: YJIT miscompiles
BasicObject#__send__
to alias methods ofsend
- Bug #19468: Ruby 3.2: net/http sets UTF-8 encoding for binary responses
- Bug #19469: Crash when resizing generic iv list
- Bug #19161: Cannot compile 3.0.5 or 3.1.3 on Red Hat Enterprise Linux 7
- Bug #19467: Some linear_time regexp does not match in linear time
- Bug #19476: Regexp unexpected partial match
- Bug #19536: Frozen status loss when moving objects
- Bug #19485: Unexpected behavior in squiggly heredocs
- Bug #19471: Regexp::compile does not handle :timeout argument
- Use URI-0.12.1 for Ruby 3.2 by hsbt · Pull Request #7603
- Merge RubyGems-3.4.10 and Bundler-2.4.10 by hsbt · Pull Request #7479
- Merge Time-0.2.2 by hsbt · Pull Request #7623
Note: This list is automatically generated by tool/gen-github-release.rb. Because of this, some commits may be missing.
Full Changelog
3.1.4
Security Fixes
What's Changed
- Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
- Bug #19153: Since 2.7.7 CGI::Cookie raises ArgumentError when cookie domains is prefixed with a dot
- Bug #18629: block args array splatting assigns to higher scope _ var
- Bug #18765: Wrong description introduced by https://github.com/ruby/ruby/pull/4938/files
- Bug #19189: Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime
- Bug #19292: Time object's wday, yday, and isdst returns broken value (and so does to_a) when kwarg in: 'UTC' was given
- Bug #19305: TracePoint#parameters segfaults when certain method creation pattern is used
- Bug #19319: Crash in rb_str_casemap
- Bug #19316: YJIT crash in 3.2.0
- Bug #19284: Integer overflow when using RUBY_GC_HEAP_INIT_SLOTS environment variable
- Bug #19320: Crash during compaction while traversing the stack
- Bug #19389: StringIO gets(..., chomp: true) behaves differently to File/IO.
- Bug #19284: Integer overflow when using RUBY_GC_HEAP_INIT_SLOTS environment variable
- Bug #19398: Memory leak in WeakMap
- Bug #19403: Unable to Build Native Gems on Mac with Ruby 3.1.0+
- Bug #19415: Incorrect circularity warning for concurrent requires
- Bug #19419: [BUG] try to mark T_NONE object in
ibf_dump_mark
- Bug #19445: Segmentation fault with Numeric#step
- Bug #19161: Cannot compile 3.0.5 or 3.1.3 on Red Hat Enterprise Linux 7
- Bug #18989: Backport f229b36087f1b387d77af8f3fa50f9bffd2fd44e to ruby_3_1
- Bug #18748: Range#cover? returns true for beginless range of different type
- Bug #18827:
__ENCODING__
is not set to the source encoding when saving script lines - Bug #19242: Circular cause by Marshal
- Bug #19243: Windows: Dir.home returns string in wrong encoding
- Bug #19115: RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
- Bug #18464: RUBY_INTERNAL_EVENT_NEWOBJ tracepoint causes an interpreter crash when combined with Ractors
- Bug #19529: [BUG] ObjectSpace::WeakMap can segfault after compaction
- Bug #19485: Unexpected behavior in squiggly heredocs
Note: This list is automatically generated by tool/gen-github-release.rb. Because of this, some commits may be missing.
Full Changelog
3.0.6
Security Fixes
What's Changed
- Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
- Rename --jit to --mjit by k0kubun · Pull Request #5248
- Merge URI-0.10.2 for Ruby 3.0 by hsbt · Pull Request #7607
- Bug #19161: Cannot compile 3.0.5 or 3.1.3 on Red Hat Enterprise Linux 7
Note: This list is automatically generated by tool/gen-github-release.rb. Because of this, some commits may be missing.
Full Changelog
2.7.8
Security Fixes
What's Changed
Note: This list is automatically generated by tool/gen-github-release.rb. Because of this, some commits may be missing.
Full Changelog
3.2.1
What's Changed
- Bug #19263: MJIT fails to compile multiple values in a single case in Ruby 3.2.0
- Bug #19273: [Regexp] regexp does not match expected
- Bug #19284: Integer overflow when using RUBY_GC_HEAP_INIT_SLOTS environment variable
- Bug #19292: Time object's wday, yday, and isdst returns broken value (and so does to_a) when kwarg in: 'UTC' was given
- Bug #19336: Backport commit eab7f4623fbf0488e828b75843d70c8e02dc8aa5
- Bug #19296: Time.new's argument check is incomplete
- Bug #19299: YJIT panicked while holding VM lock acquired at ./yjit/src/core.rs:1693. Aborting...
- Bug #19271: irb ignores rbs and debug
- Bug #19316: YJIT crash in 3.2.0
- Bug #19298:
lib/mjit/instruction.rb
was reintroduced by merge mistake - Bug #19305: TracePoint#parameters segfaults when certain method creation pattern is used
- Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- Bug #19262: Segmentation fault on RubyVM::AbstractSyntaxTree.node_id_for_backtrace_location
- Bug #19319: Crash in rb_str_casemap
- Bug #19327: Backport commits 3be2acfafd3b3c6168e2266c7c6561d143d7ae5c and 9726736006b3f74635fd8af05814fe0908e2cf84
- Bug #19356: Backport f7b72462aa27716370c6bea1f2c240983aca9a55
- Bug #19339: Defining ivar on special constants with @ syntax causes segv
- Bug #19320: Crash during compaction while traversing the stack
- Bug #19348: GVL being released earlier than expected when loading iseqs
- Bug #19289: RbConfig::CONFIG["STRIP"] should keep
ruby_abi_version
andruby_abi_version
should always be part of Ruby - Bug #19360: Enabling coverage with
-r
option isn't sufficient to intercept top level script. - Merge the latest stable versions of RubyGems and Bundler to Ruby 3.2.x by hsbt · Pull Request #7061
- Bug #19389: StringIO gets(..., chomp: true) behaves differently to File/IO.
- Bug #19390: Time.new: Assertion Failed: bignum.c:4187:rb_int_parse_cstr:len != 0
- Bug #19379: Regex: "end pattern with unmatched parenthesis" with Ruby 3.2 and interpolation
- Bug #19327: Backport commits 3be2acfafd3b3c6168e2266c7c6561d143d7ae5c and 9726736006b3f74635fd8af05814fe0908e2cf84
- Merge RubyGems 3.4.6 and Bundler 2.4.6 by hsbt · Pull Request #7214
- Bug #19385: YJIT panicked while holding VM lock acquired at ./yjit/src/core.rs:1693. Aborting.
- Bug #19404: Backport request for 3b83b265f11965582d4b9b439eff8a501792ab68
- Bug #19398: Memory leak in WeakMap
- Bug #19399: Ripper::Lexer.parse throws NoMethodError error for some input
- Bug #19403: Unable to Build Native Gems on Mac with Ruby 3.1.0+
Note: This list is automatically generated by tool/gen-github-release.rb. Because of this, some commits may be missing.
Full Changelog
3.2.0
What's Changed
- Bug #18623:
make runnable
does not work - Feature #19183: Add bin/goruby, bin/ruby, and lib/libruby.so.3.2.0 (or similar) to .gitignore
- Feature #18367: Stop the interpreter from escaping error messages
- Bug #19187: Ruby 3.1.3 testsuite fails after timezone 2022g update is applied
- Update YJIT warning, mention need to install rustc by maximecb · Pull Request #6873
- Add debug counters to RubyVM.stat by chrisseaton · Pull Request #6086
- Introduce
IO.new(..., path:)
and promoteFile#path
toIO#path
. by ioquatix · Pull Request #6867 - Bug #19169: Kernel#freeze doesn't propagate to singleton class when the singleton class has prepended modules
- YJIT: implement opt_newarray_min YARV instruction by maximecb · Pull Request #6888
- YJIT: Drop Copy trait from Context by k0kubun · Pull Request #6889
- Bug #19167: Object#inspect does not correctly show NilClass TrueClass and FalseClass stored in instance variables
- YJIT: Filter out 0-exit ops from Top-20 exit ops by k0kubun · Pull Request #6892
- YJIT: implement
getconstant
YARV instruction by maximecb · Pull Request #6884 - YJIT: Split send_iseq_complex_callee exit reasons by k0kubun · Pull Request #6895
- Add spec for fiber storage. by ioquatix · Pull Request #6896
- Bug #19181: lib/unicode-normalize/tables.rb does not get updated even if ALWAYS_UPDATE_UNICODE is set to yes
- Bug #19087: String#to_c supports multiple "_"
- Expose need_major_gc via GC.latest_gc_info by mirek26 · Pull Request #6791
- Bug #19182: ALWAYS_UPDATE_UNICODE=yes downloads all the Unicode files twice when executing make
- MJIT: Compile methods in batches by k0kubun · Pull Request #6900
- Feature #18273: Class#subclasses
- Feature #19104: Introduce the cache-based optimization for Regexp matching
- YJIT: Implement opt_newarray_max instruction by k0kubun · Pull Request #6893
- Make it so YJIT is no longer marked as experimental by maximecb · Pull Request #6909
- YJIT: Generate debug info in release builds by XrXr · Pull Request #6910
- Avoid overwriting revision.h when .git doesn't exist by k0kubun · Pull Request #6915
- Bug #19195: Pattern match pin becomes syntax error if there is newline before closing paren
- YJIT: Change the default mem size to 64MiB by k0kubun · Pull Request #6912
- socket.rb - don't load io/wait by MSP-Greg · Pull Request #6922
- Add
Regexp.linear_time?
by makenowjust · Pull Request #6901 - Fix build when enable_shared is on by jimmyhmiller · Pull Request #6924
- Remove
require 'io/wait'
as it's no longer necessary. by ioquatix · Pull Request #6932 - Bug #19189: Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime
- Feature #19134: ** is not allowed in def foo(...)
- Bug #19234: [3.2.0dev] YJIT code GC can lead to crashes
- Bug #19150: pack/unpack silently ignores unknown directives
- Feature #18033: Time.new to parse a string
- Add tests for
Queue#pop
with fiber scheduler. by ioquatix · Pull Request #6953 - MJIT: Refactor BitField dereference byte and bitmask by Maumagnaguagno · Pull Request #6955
- Is this code ever used? by ioquatix · Pull Request #6957
- YJIT: Make --yjit-stats always visible on --help by k0kubun · Pull Request #6946
- YJIT: Improve the description about --enable-yjit by k0kubun · Pull Request #6947
- YJIT: skip map in print_sorted_exit_counts by Maumagnaguagno · Pull Request #6954
- Bug #19242: Circular cause by Marshal
- Feature #19245: Strict mode for Array#pack that doesn't silently truncate numbers that are too large for the given directive
- MJIT: Refactor Compiler#cast_offset by Maumagnaguagno · Pull Request #6967
- Set up RBS_SKIP_TESTS by soutaro · Pull Request #6862
- Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
- Put RubyVM::MJIT::Compiler under ruby_vm directory by k0kubun · Pull Request #6989
- Clean intermediate source file in
TestMJIT#test_jit_failure
by nobu · Pull Request #6994 - Bump necojackarc/auto-request-review from 0.8.0 to 0.10.0 by dependabot[bot] · Pull Request #7002
- Fix backtrace beyond _singtramp on macOS arm64 by nurse · Pull Request #7015
- MJIT: Export fewer shape functions by k0kubun · Pull Request #7007
- Fix missing handling of offset argument. by ioquatix · Pull Request #7012
- [DOC] Document new methods of IO::Buffer and Fiber::Scheduler by zverok · Pull Request #7016
- MJIT: Cancel all on disastrous situations by k0kubun · Pull Request #7019
Note: This list is automatically generated by tool/gen-github-release.rb. Because of this, some commits may be missing.
Full Changelog
3.2.0.rc1
What's Changed
- YJIT: Remove unused src_ctx from Block by k0kubun · Pull Request #6714
- YJIT: Fix invalidation for c_call and c_return by XrXr · Pull Request #6719
- YJIT: Instrument global allocations on stats build by k0kubun · Pull Request #6712
- Reduce the number of branches in jit_exec by k0kubun · Pull Request #6722
- Bug #19127: Build of 3.2.0-preview3 fails unless Ruby is already installed
- Rename --mjit-min-calls to --mjit-call-threshold by k0kubun · Pull Request #6731
- YJIT: Invalidate redefined methods only through cme by k0kubun · Pull Request #6734
- YJIT: Count getivar side exits by receiver flag changes by k0kubun · Pull Request #6735
- YJIT: Include actual memory region size in stats by k0kubun · Pull Request #6736
- YJIT: Always encode Opnd::Value in 64 bits on x86_64 for GC offsets by k0kubun · Pull Request #6733
- Rewrite Symbol#to_sym and #intern in Ruby by k0kubun · Pull Request #6683
- Let mjit-bindgen use BASERUBY and bundle/inline by k0kubun · Pull Request #6740
- YJIT: Show YJIT build option in RUBY_DESCRIPTION by k0kubun · Pull Request #6738
- YJIT: Shrink the vectors of Block after mutation by k0kubun · Pull Request #6739
- YJIT: Stop wrapping CmePtr with CmeDependency by k0kubun · Pull Request #6747
- YJIT: Add compiled_branch_count stats by k0kubun · Pull Request #6746
- YJIT: Pack BlockId and CodePtr by k0kubun · Pull Request #6748
- YJIT: Shrink version lists after mutation by k0kubun · Pull Request #6749
- Windows: Readlink improvements by larskanis · Pull Request #6745
- YJIT: Fix typo in stats references by k0kubun · Pull Request #6753
- YJIT: Add object shape count to stats by k0kubun · Pull Request #6754
- Add support for
sockaddr_un
on Windows. by ioquatix · Pull Request #6513 - Refactor RB_SPECIAL_CONST_P by k0kubun · Pull Request #6759
- Fix bug involving .send and overwritten methods. by jimmyhmiller · Pull Request #6752
- Bug #19132:
**
を引数に指定すると no anonymous keyword rest parameter になる - YJIT: Improve the failure message on enlarging a branch by k0kubun · Pull Request #6769
- Bug #19016: syntax_suggest is not working with Ruby 3.2.0-preview2
- Feature #19070: Enhance keep_tokens option for RubyVM::AbstractSyntaxTree parsing methods
- Fix typos by ydah · Pull Request #6775
- YJIT: Lower the required Rust version from 1.58.1 to 1.58.0 by k0kubun · Pull Request #6780
- Increment max_iv_count on class based on number of set_iv in initialize by jemmaissroff · Pull Request #6788
- YJIT: Skip padding jumps to side exits on Arm by k0kubun · Pull Request #6790
- Fix YJIT backend to account for unsigned int immediates by jemmaissroff · Pull Request #6789
- YJIT: Simplify code for RB_SPECIAL_CONST_P by k0kubun · Pull Request #6795
- YJIT: Use NonNull pointer for CodePtr by k0kubun · Pull Request #6792
- YJIT: Simplify Insn::CCall to obviate Target::FunPtr by k0kubun · Pull Request #6793
- YJIT: rename
InsnOpnd
=>YARVOpnd
by maximecb · Pull Request #6801 - Misc #19146: Failed to activate YJIT for 3.2.0-dev on macOS Ventura (M1: Apple Silicon)
- Update YJIT section of
NEWS.md
by maximecb · Pull Request #6803 - Bug #18974: Wrong line number in the rescue iseq for the exception matching code
- Bug #18580: Range#include? inconsistency for beginless String ranges
- Feature #18925: Add
FileUtils.ln_sr
to create symbolic links relative to link location - Bug #18931: Inconsistent handling of invalid codepoints in String#lstrip and String#rstrip
- Bug #19145: TestException#test_exception_in_message timeouts
- Bug #18971: Enumerator::Lazy.take(0) leaks first element into next operation
- Bug #19115: RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
- Update bundled_gems by soutaro · Pull Request #6813
- Bundle RBS 2.8.1 by soutaro · Pull Request #6819
- Feature #19134: ** is not allowed in def foo(...)
- MJIT: Make it parsable by Solargraph by k0kubun · Pull Request #6827
- YJIT: Skip checking interrupt_mask by k0kubun · Pull Request #6825
- Feature #17134: Add resolv_timeout to TCPSocket
- Bug #19159: ObjectSpace segfaults
- YJIT: add new counters for deferred compilation and queued blocks by maximecb · Pull Request #6837
- YJIT: Optimize rb_int_equal by k0kubun · Pull Request #6838
- Feature #19138:
SyntaxError#path
for syntax_suggest - Bug #19108: Format routines like pack blindly treat a string as ASCII-encoded
- Introduce
Fiber#storage
for inheritable fiber-scoped variables. by ioquatix · Pull Request #6612 - YJIT: fix 32 and 16 bit register store by jemmaissroff · Pull Request #6840
- Feature #19163: Data object should be frozen
- YJIT: Reorder branches for Fixnum opt_case_dispatch by k0kubun · Pull Request #6841
- Bug #19087: String#to_c supports multiple "_"
- Bug #19164: [3.2.0dev] Freezing an object can prevent removing methods on its class
- YJIT: Respect destination num_bits on STUR by k0kubun · Pull Request #6848
- Clarify the storage argument. by ioquatix · Pull Request #6849
- Feature #6047: read_all: Grow buffer exponentially in generic case
- YJIT: Change the default --yjit-call-threshold to 30 by k0kubun · Pull Request #6850
- YJIT: Make case-when optimization respect === redefinition by XrXr · Pull Request #6846
- Bug #19174: YJIT configure "checking whether rustc works for YJIT... no" in rustc 1.65.0 on x86_64
- YJIT: check that we correctly auto-enable YJIT on Linux by maximecb · Pull Request #6854
- Bug #19173: syntax_suggest segfaults on syntax error when refinement activated
- YJIT: Extract SHAPE_ID_NUM_BITS into a constant by jemmaissroff · Pull Request #6863
- YJIT: Remove --yjit-code-page-size by XrXr · Pull Request #6865
- Bug #19180: rbconfig.rb does not get updated when common.mk is changed
Note: This list is automatically generated by tool/gen-github-release.rb. Because of this, some commits may be missing.
Full Changelog
3.1.3
What's Changed
- Bug #18600: Aliased method visibility issue on Ruby 3.1
- Bug #18627: segmentation fault when doing a lot of redundant Module#include
- Bug #18672: Request to backport "Remove dependency on libcapstone"
- Bug #18673: Anonymous block forwarding fails when combined with keyword arguments
- Bug #18373: Bundled gem (RBS, debug) extensions are not properly built
- Bug #18435: Calling
protected
on ancestor method changes result ofinstance_methods(false)
- Bug #18739: Wrong mid-rule index
- Bug #18670: MatchData#[start, length] pads nil values when negative start is given
- Bug #18631: Range check breaks multiplex backreferences in regular expressions
- Bug #18775: Backport ef525b012a709077ea2797e8642fae0b61234063
- Bug #18990: Pattern matching unexpectedly raises "duplicated key name" error
- Bug #18936: Backport 261753249996d46e00c2549fff2527816bf387db
- Bug #18816: Ractor segfaulting MacOS 12.4 (aarch64 / M1 processor)
- Bug #18902: Thread#value crash if the thread was killed because of a fork
- Bug #18922: Time at 24:00:00 UTC is not normalized
- Bug #18928: Crash in WeakMap when inspecting T_FREE objects
- Bug #18732: [Win32]
File.chardev?
andFile::Stat.chardev?
are not working - Bug #18734: [Win32]
File.sticky?
returnsnil
whileFile::Stat.sticky?
returnsfalse
- Bug #18941: Endless loop with a memory leak in FileUtils::mkpath
- Bug #19014: Backport commits to add the --with-gmp-dir option in the configure script
- Bug #18938: Backport cf7d07570f50ef9c16007019afcff11ba6500d70
- Bug #18435: Calling
protected
on ancestor method changes result ofinstance_methods(false)
- Bug #19038: Corruption of generic_iv_tbl when compacting
- Disable msystem: MINGW64 job on GitHub Actions by k0kubun · Pull Request #6545
- Bug #18909: ARGF.readlines reads more than current file
- Bug #18994: Range#last(n) returns empty for single-element Integer Range
- Bug #19042: Bug: Dir.glob ignores subdirectories in alternation when alternation is preceded by recursive directory pattern
- Bug #19004: Complex can be nested by Complex.polar
- Bug #18964:
rb_econv_append
and the family do not consider the code range - Bug #18380: TestAddressResolve#test_socket_getnameinfo_domain_blocking test failures
- Bug #19101: madvise(free) was broken in 3.1?
- Bug #19116: Array#pack is broken for long strings in buffer
- Bug #19105: mutex: Raise a ThreadError when detecting a fiber deadlock
- Bug #19106: Time - Hour 24 with tzinfo to_s bug
- Bug #19081: Ractor warning shows an internal location
- Bug #18599:
vm->loaded_features_snapshot
became very inefficient in Ruby 3.1
Note: This list is automatically generated by tool/gen-github-release.rb. Because of this, some commits may be missing.
Full Changelog
3.0.5
What's Changed
- Bug #18734: [Win32]
File.sticky?
returnsnil
whileFile::Stat.sticky?
returnsfalse
- Bug #18772: Backport edf01d4e82d8e44ee30ec41fbcb7f802bc8b8c5d
Note: This list is automatically generated by tool/gen-github-release.rb. Because of this, some commits may be missing.
Full Changelog
2.7.7
What's Changed
Note: This list is automatically generated by tool/gen-github-release.rb. Because of this, some commits may be missing.