[#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:122761] [Ruby Bug#21356] Error when accessing local variable named "default" with Binding#local_variable_get

From: "k0kubun (Takashi Kokubun) via ruby-core" <ruby-core@...>
Date: 2025-07-14 21:23:01 UTC
List: ruby-core #122761
Issue #21356 has been updated by k0kubun (Takashi Kokubun).

Backport changed from 3.2: REQUIRED, 3.3: DONTNEED, 3.4: REQUIRED to 3.2: R=
EQUIRED, 3.3: DONTNEED, 3.4: DONTNEED

Same here; the behavior was added in Ruby 3.5 and we don't even have the mo=
dified function in Ruby 3.4. I mark it "DONTNEED" for ruby_3_4 as well.

----------------------------------------
Bug #21356: Error when accessing local variable named "default" with Bindin=
g#local_variable_get
https://bugs.ruby-lang.org/issues/21356#change-114040

* Author: richardboehme (Richard B=F6hme)
* Status: Closed
* ruby -v: ruby 3.5.0dev (2025-05-21T06:12:18Z master f6cbf499bc) +PRISM [x=
86_64-linux]
* Backport: 3.2: REQUIRED, 3.3: DONTNEED, 3.4: DONTNEED
----------------------------------------
On Ruby master when using `Binding#local_variable_get` with the name `:defa=
ult` it raises the following error:

```
'Binding#local_variable_get': numbered parameter 'default' is not a local v=
ariable (NameError)
```

I saw that this error was introduced in #21049 but it seems like the check =
for whether the passed variable name is a numbered parameter does not work =
for the `:default` symbol.=20

I think this might be an off-by-one error in the `rb_numparam_id_p` functio=
n in proc.c, where instead of adding 9 (the maximum number of numbered para=
meters) to tNUMPARAM_1 we currently add 10 which then includes the id of de=
fault as well? Compiling with this change (see attached diff) fixed the iss=
ue but I'm not sure if it might break other things.

---Files--------------------------------
patch.diff (384 Bytes)


--=20
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.rub=
y-lang.org/


In This Thread

Prev Next