[#122369] [Ruby Bug#21392] Data classes do not allow overriding #inspect — "austin (Austin Ziegler) via ruby-core" <ruby-core@...>

Issue #21392 has been reported by austin (Austin Ziegler).

8 messages 2025/06/01

[#122411] [Ruby Bug#21396] Set#initialize should call Set#add on items passed in — "tenderlovemaking (Aaron Patterson) via ruby-core" <ruby-core@...>

Issue #21396 has been reported by tenderlovemaking (Aaron Patterson).

12 messages 2025/06/04

[#122506] [Ruby Feature#21435] Kernel#optional as a conditional #then — "Alexander.Senko (Alexander Senko) via ruby-core" <ruby-core@...>

SXNzdWUgIzIxNDM1IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IEFsZXhhbmRlci5TZW5rbyAoQWxleGFu

11 messages 2025/06/10

[#122557] [Ruby Bug#21445] [BUG] push_mark_stack() called for broken object raised since cd9f447be247478d2eb3da985295735cce20cb23 — "yahonda (Yasuo Honda) via ruby-core" <ruby-core@...>

Issue #21445 has been reported by yahonda (Yasuo Honda).

10 messages 2025/06/19

[#122615] [Ruby Misc#21458] Test 'make install'? — "MSP-Greg (Greg L) via ruby-core" <ruby-core@...>

Issue #21458 has been reported by MSP-Greg (Greg L).

11 messages 2025/06/28

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

From: "byroot (Jean Boussier) via ruby-core" <ruby-core@...>
Date: 2025-06-02 13:02:09 UTC
List: ruby-core #122380
Issue #21370 has been updated by byroot (Jean Boussier).

Status changed from Open to Closed

Fixed in ff222ac27afe712ef6ec2bb74c81cdde1a1fa176 (not sure why the bot didn't catch it).

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

* Author: byroot (Jean Boussier)
* Status: Closed
* Backport: 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED
----------------------------------------
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