[#122643] [Ruby Bug#21498] Windows - Ruby Overrides C Library APIs thus breaking them — "cfis (Charlie Savage) via ruby-core" <ruby-core@...>

Issue #21498 has been reported by cfis (Charlie Savage).

9 messages 2025/07/02

[#122658] [Ruby Feature#21501] Include native filenames in backtraces as sources for native methods — "ivoanjo (Ivo Anjo) via ruby-core" <ruby-core@...>

Issue #21501 has been reported by ivoanjo (Ivo Anjo).

10 messages 2025/07/05

[#122665] [Ruby Bug#21503] \p{Word} does not match on \p{Join_Control} while docs say it does — "procmarco (Marco Concetto Rudilosso) via ruby-core" <ruby-core@...>

SXNzdWUgIzIxNTAzIGhhcyBiZWVuIHJlcG9ydGVkIGJ5IHByb2NtYXJjbyAoTWFyY28gQ29uY2V0

8 messages 2025/07/07

[#122734] [Ruby Bug#21511] Use-after-free of the execution context after the fiber object carrying it is freed in GC — "tuonigou (tianyang sun) via ruby-core" <ruby-core@...>

Issue #21511 has been reported by tuonigou (tianyang sun).

10 messages 2025/07/14

[#122797] [Ruby Feature#21515] Add `&return` as sugar for `x=my_calculation; return x if x` — "nhorton (Noah Horton) via ruby-core" <ruby-core@...>

Issue #21515 has been reported by nhorton (Noah Horton).

13 messages 2025/07/16

[#122842] [Ruby Feature#21518] Statistical helpers to `Enumerable` — "Amitleshed (Amit Leshed) via ruby-core" <ruby-core@...>

SXNzdWUgIzIxNTE4IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IEFtaXRsZXNoZWQgKEFtaXQgTGVzaGVk

12 messages 2025/07/23

[#122847] [Ruby Feature#21520] Feature Proposal: Enumerator::Lazy#peek — "nuzair46 (Nuzair Rasheed) via ruby-core" <ruby-core@...>

SXNzdWUgIzIxNTIwIGhhcyBiZWVuIHJlcG9ydGVkIGJ5IG51emFpcjQ2IChOdXphaXIgUmFzaGVl

12 messages 2025/07/24

[ruby-core:122750] [Ruby Bug#21370] `it` can cause ISeq serialization failure

From: "k0kubun (Takashi Kokubun) via ruby-core" <ruby-core@...>
Date: 2025-07-14 20:54:38 UTC
List: ruby-core #122750
Issue #21370 has been updated by k0kubun (Takashi Kokubun).

Backport changed from 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED to 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONE

ruby_3_4 commit:acb19e8707093593e967b6af03d92da5c570ffc6 merged revision(s) commit:ff222ac27afe712ef6ec2bb74c81cdde1a1fa176.

----------------------------------------
Bug #21370: `it` can cause ISeq serialization failure
https://bugs.ruby-lang.org/issues/21370#change-114029

* Author: byroot (Jean Boussier)
* Status: Closed
* Backport: 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONE
----------------------------------------
Originally reported at: https://github.com/rails/rails/issues/55108

```ruby
iseq = RubyVM::InstructionSequence.compile(<<~'RUBY')
  [1].each do
  rescue => e
    puts it
  end
RUBY

iseq.to_binary # CRASH
```

```
miniruby(sigsegv) (null):0
miniruby(RB_FL_ANY_RAW+0x20) [0x1010ac504] internal/fl_type.h:507
miniruby(rbimpl_rstring_getmem+0x20) [0x101090674] internal/core/rstring.h:393
miniruby(rb_str_cmp+0x4c) [0x10109920c] string.c:4541
miniruby(outer_variable_cmp+0x3c) [0x100e43b64] compile.c:13381
miniruby(cmp_bsd_qsort+0x3c) [0x1010fe810] util.c:239
miniruby(ruby_qsort+0x5c) [0x1010fe7a8] util.c:248
miniruby(ibf_dump_outer_variables+0x150) [0x100e43708] compile.c:13402
miniruby(ibf_dump_iseq_each+0x19c) [0x100e423cc] compile.c:13527
miniruby(ibf_dump_iseq_list_i+0x38) [0x100e420fc] compile.c:13862
miniruby(apply_functor+0x40) [0x10107bad8] st.c:1644
```

It is crashing while trying to sort outer variables, and `it` is anonymous.




-- 
https://bugs.ruby-lang.org/
______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/


In This Thread